2525
2626#include " Common/Core/RecoDecay.h"
2727
28+ #include " PWGHF/Core/DecayChannels.h"
2829#include " PWGHF/DataModel/CandidateReconstructionTables.h"
2930
3031namespace hf_mc_gen
@@ -106,7 +107,7 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
106107 // D± → π± K∓ π±
107108 if (flag == 0 ) {
108109 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kDPlus , std::array{+kPiPlus , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
109- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType ::DplusToPiKPi) ;
110+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel ::DplusToPiKPi;
110111 }
111112 }
112113
@@ -116,11 +117,11 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
116117 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kDS , std::array{+kKPlus , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
117118 // DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
118119 // TODO: move to different and explicit flags
119- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType::DsToKKPi) ;
120+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel::DsToPiKK ;
120121 } else if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kDPlus , std::array{+kKPlus , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
121122 // DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
122123 // TODO: move to different and explicit flags
123- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType::DsToKKPi) ;
124+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel::DplusToPiKK ;
124125 isDplus = true ;
125126 }
126127 if (flag != 0 ) {
@@ -131,9 +132,9 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
131132 arrPDGDaugh[jProng] = std::abs (daughJ.pdgCode ());
132133 }
133134 if ((arrPDGDaugh[0 ] == arrPDGResonantDPhiPi[0 ] && arrPDGDaugh[1 ] == arrPDGResonantDPhiPi[1 ]) || (arrPDGDaugh[0 ] == arrPDGResonantDPhiPi[1 ] && arrPDGDaugh[1 ] == arrPDGResonantDPhiPi[0 ])) {
134- channel = isDplus ? o2::aod ::hf_cand_3prong::DecayChannelDToKKPi ::DplusToPhiPi : o2::aod ::hf_cand_3prong::DecayChannelDToKKPi ::DsToPhiPi;
135+ channel = isDplus ? o2::hf_decay ::hf_cand_3prong::DecayChannel ::DplusToPhiPi : o2::hf_decay ::hf_cand_3prong::DecayChannel ::DsToPhiPi;
135136 } else if ((arrPDGDaugh[0 ] == arrPDGResonantDKstarK[0 ] && arrPDGDaugh[1 ] == arrPDGResonantDKstarK[1 ]) || (arrPDGDaugh[0 ] == arrPDGResonantDKstarK[1 ] && arrPDGDaugh[1 ] == arrPDGResonantDKstarK[0 ])) {
136- channel = isDplus ? o2::aod ::hf_cand_3prong::DecayChannelDToKKPi ::DplusToK0starK : o2::aod ::hf_cand_3prong::DecayChannelDToKKPi ::DsToK0starK;
137+ channel = isDplus ? o2::hf_decay ::hf_cand_3prong::DecayChannel ::DplusToK0starK : o2::hf_decay ::hf_cand_3prong::DecayChannel ::DsToK0starK;
137138 }
138139 }
139140 }
@@ -142,14 +143,14 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
142143 // D*± → D0(bar) π±
143144 if (flag == 0 ) {
144145 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kDStar , std::array{+kPiPlus , +kPiPlus , -kKPlus }, true , &sign, 2 )) {
145- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DstarToPiKPiBkg) ;
146+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel::DstarToPiKPi ;
146147 }
147148 }
148149
149150 // Λc± → p± K∓ π±
150151 if (flag == 0 ) {
151152 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kLambdaCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
152- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType ::LcToPKPi) ;
153+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel ::LcToPKPi;
153154
154155 // Flagging the different Λc± → p± K∓ π± decay channels
155156 RecoDecay::getDaughters (particle, &arrDaughIndex, std::array{0 }, 1 );
@@ -172,7 +173,7 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
172173 // Ξc± → p± K∓ π±
173174 if (flag == 0 ) {
174175 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kXiCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
175- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType ::XicToPKPi) ;
176+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel ::XicToPKPi;
176177 }
177178 }
178179
0 commit comments