2828
2929#include " Common/Core/RecoDecay.h"
3030
31+ #include " PWGHF/Core/DecayChannels.h"
3132#include " PWGHF/DataModel/CandidateReconstructionTables.h"
3233
3334namespace hf_mc_gen
@@ -109,7 +110,7 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
109110 // D± → π± K∓ π±
110111 if (flag == 0 ) {
111112 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kDPlus , std::array{+kPiPlus , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
112- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType ::DplusToPiKPi) ;
113+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel ::DplusToPiKPi;
113114 }
114115 }
115116
@@ -119,11 +120,11 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
119120 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kDS , std::array{+kKPlus , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
120121 // DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
121122 // TODO: move to different and explicit flags
122- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType::DsToKKPi) ;
123+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel::DsToPiKK ;
123124 } else if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kDPlus , std::array{+kKPlus , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
124125 // DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
125126 // TODO: move to different and explicit flags
126- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType::DsToKKPi) ;
127+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel::DplusToPiKK ;
127128 isDplus = true ;
128129 }
129130 if (flag != 0 ) {
@@ -134,9 +135,9 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
134135 arrPDGDaugh[jProng] = std::abs (daughJ.pdgCode ());
135136 }
136137 if ((arrPDGDaugh[0 ] == arrPDGResonantDPhiPi[0 ] && arrPDGDaugh[1 ] == arrPDGResonantDPhiPi[1 ]) || (arrPDGDaugh[0 ] == arrPDGResonantDPhiPi[1 ] && arrPDGDaugh[1 ] == arrPDGResonantDPhiPi[0 ])) {
137- channel = isDplus ? o2::aod ::hf_cand_3prong::DecayChannelDToKKPi ::DplusToPhiPi : o2::aod ::hf_cand_3prong::DecayChannelDToKKPi ::DsToPhiPi;
138+ channel = isDplus ? o2::hf_decay ::hf_cand_3prong::DecayChannel ::DplusToPhiPi : o2::hf_decay ::hf_cand_3prong::DecayChannel ::DsToPhiPi;
138139 } else if ((arrPDGDaugh[0 ] == arrPDGResonantDKstarK[0 ] && arrPDGDaugh[1 ] == arrPDGResonantDKstarK[1 ]) || (arrPDGDaugh[0 ] == arrPDGResonantDKstarK[1 ] && arrPDGDaugh[1 ] == arrPDGResonantDKstarK[0 ])) {
139- channel = isDplus ? o2::aod ::hf_cand_3prong::DecayChannelDToKKPi ::DplusToK0starK : o2::aod ::hf_cand_3prong::DecayChannelDToKKPi ::DsToK0starK;
140+ channel = isDplus ? o2::hf_decay ::hf_cand_3prong::DecayChannel ::DplusToK0starK : o2::hf_decay ::hf_cand_3prong::DecayChannel ::DsToK0starK;
140141 }
141142 }
142143 }
@@ -145,14 +146,14 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
145146 // D*± → D0(bar) π±
146147 if (flag == 0 ) {
147148 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kDStar , std::array{+kPiPlus , +kPiPlus , -kKPlus }, true , &sign, 2 )) {
148- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DstarToPiKPiBkg) ;
149+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel::DstarToPiKPi ;
149150 }
150151 }
151152
152153 // Λc± → p± K∓ π±
153154 if (flag == 0 ) {
154155 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kLambdaCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
155- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType ::LcToPKPi) ;
156+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel ::LcToPKPi;
156157
157158 // Flagging the different Λc± → p± K∓ π± decay channels
158159 RecoDecay::getDaughters (particle, &arrDaughIndex, std::array{0 }, 1 );
@@ -175,7 +176,7 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
175176 // Ξc± → p± K∓ π±
176177 if (flag == 0 ) {
177178 if (RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kXiCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
178- flag = sign * ( 1 << o2::aod ::hf_cand_3prong::DecayType ::XicToPKPi) ;
179+ flag = sign * o2::hf_decay ::hf_cand_3prong::DecayChannel ::XicToPKPi;
179180 }
180181 }
181182
0 commit comments