Skip to content

Commit 74ff42c

Browse files
[PWGHF] Fix issues in correlated bkg matching (#11712)
1 parent 9db231f commit 74ff42c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

PWGHF/Utils/utilsMcGen.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
219219
// D± → π± K∓ π±
220220
if (flag == 0) {
221221
if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kDPlus, std::array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2)) {
222-
flag = sign * (1 << o2::aod::hf_cand_3prong::DecayType::DplusToPiKPi);
222+
flag = sign * o2::hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi;
223223
}
224224
}
225225

@@ -229,11 +229,11 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
229229
if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kDS, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2)) {
230230
// DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
231231
// TODO: move to different and explicit flags
232-
flag = sign * (1 << o2::aod::hf_cand_3prong::DecayType::DsToKKPi);
232+
flag = sign * o2::hf_decay::hf_cand_3prong::DecayChannelMain::DsToPiKK;
233233
} else if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kDPlus, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2)) {
234234
// DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
235235
// TODO: move to different and explicit flags
236-
flag = sign * (1 << o2::aod::hf_cand_3prong::DecayType::DsToKKPi);
236+
flag = sign * o2::hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKK;
237237
isDplus = true;
238238
}
239239
if (flag != 0) {
@@ -244,9 +244,9 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
244244
arrPDGDaugh[jProng] = std::abs(daughJ.pdgCode());
245245
}
246246
if ((arrPDGDaugh[0] == arrPDGResonantDPhiPi[0] && arrPDGDaugh[1] == arrPDGResonantDPhiPi[1]) || (arrPDGDaugh[0] == arrPDGResonantDPhiPi[1] && arrPDGDaugh[1] == arrPDGResonantDPhiPi[0])) {
247-
channel = isDplus ? o2::aod::hf_cand_3prong::DecayChannelDToKKPi::DplusToPhiPi : o2::aod::hf_cand_3prong::DecayChannelDToKKPi::DsToPhiPi;
247+
channel = isDplus ? o2::hf_decay::hf_cand_3prong::DecayChannelResonant::DplusToPhiPi : o2::hf_decay::hf_cand_3prong::DecayChannelResonant::DsToPhiPi;
248248
} else if ((arrPDGDaugh[0] == arrPDGResonantDKstarK[0] && arrPDGDaugh[1] == arrPDGResonantDKstarK[1]) || (arrPDGDaugh[0] == arrPDGResonantDKstarK[1] && arrPDGDaugh[1] == arrPDGResonantDKstarK[0])) {
249-
channel = isDplus ? o2::aod::hf_cand_3prong::DecayChannelDToKKPi::DplusToK0starK : o2::aod::hf_cand_3prong::DecayChannelDToKKPi::DsToK0starK;
249+
channel = isDplus ? o2::hf_decay::hf_cand_3prong::DecayChannelResonant::DplusToKstar0K : o2::hf_decay::hf_cand_3prong::DecayChannelResonant::DsToKstar0K;
250250
}
251251
}
252252
}

PWGHF/Utils/utilsMcMatching.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ namespace hf_cand_3prong
5757

5858
//
5959
static const std::unordered_map<DecayChannelMain, const std::vector<int>> daughtersDplusMain{
60-
{DecayChannelMain::DplusToPiKPi, {+kKMinus, +kKPlus, +kPiPlus}},
61-
{DecayChannelMain::DplusToPiKK, {+kKMinus, +kPiPlus, +kPiPlus}},
60+
{DecayChannelMain::DplusToPiKPi, {+kKMinus, +kPiPlus, +kPiPlus}},
61+
{DecayChannelMain::DplusToPiKK, {+kKMinus, +kKPlus, +kPiPlus}},
6262
{DecayChannelMain::DplusToPiKPiPi0, {+kKMinus, +kPiPlus, +kPiPlus, +kPi0}},
6363
{DecayChannelMain::DplusToPiPiPi, {+kPiMinus, +kPiPlus, +kPiPlus}},
6464
};
6565

6666
static const std::unordered_map<DecayChannelResonant, const std::array<int, 2>> daughtersDplusResonant{
6767
{DecayChannelResonant::DplusToPhiPi, {+o2::constants::physics::kPhi, +kPiPlus}},
6868
{DecayChannelResonant::DplusToKstar0K, {-o2::constants::physics::kK0Star892, +kKPlus}},
69-
{DecayChannelResonant::DplusToKstar1430_0K, {+10311, +kKPlus}},
69+
{DecayChannelResonant::DplusToKstar1430_0K, {-10311, +kKPlus}},
7070
{DecayChannelResonant::DplusToRho0Pi, {+kRho770_0, +kPiPlus}},
7171
{DecayChannelResonant::DplusToF2_1270Pi, {+225, +kPiPlus}},
7272
};
@@ -110,7 +110,7 @@ static const std::unordered_map<DecayChannelResonant, const std::array<int, 2>>
110110
{DecayChannelResonant::DstarToD0ToKstarPi, {-o2::constants::physics::kKPlusStar892, +kPiPlus}},
111111
{DecayChannelResonant::DstarToDplusToPhiPi, {+o2::constants::physics::kPhi, +kPiPlus}},
112112
{DecayChannelResonant::DstarToDplusToKstar0K, {-o2::constants::physics::kK0Star892, +kKPlus}},
113-
{DecayChannelResonant::DstarToDplusToKstar1430_0K, {+10311, +kKPlus}},
113+
{DecayChannelResonant::DstarToDplusToKstar1430_0K, {-10311, +kKPlus}},
114114
{DecayChannelResonant::DstarToDplusToRho0Pi, {+kRho770_0, +kPiPlus}},
115115
{DecayChannelResonant::DstarToDplusToF2_1270Pi, {+225, +kPiPlus}},
116116
};
@@ -123,7 +123,7 @@ static const std::unordered_map<DecayChannelMain, const std::vector<int>> daught
123123
{DecayChannelMain::LcToPKK, {+kProton, +kKMinus, +kKPlus}}};
124124

125125
static const std::unordered_map<DecayChannelResonant, const std::array<int, 2>> daughtersLcResonant{
126-
{DecayChannelResonant::LcToPKstar0, {+o2::constants::physics::kK0Star892, +kProton}},
126+
{DecayChannelResonant::LcToPKstar0, {-o2::constants::physics::kK0Star892, +kProton}},
127127
{DecayChannelResonant::LcToDeltaplusplusK, {+2224, +kKMinus}},
128128
{DecayChannelResonant::LcToL1520Pi, {+102134, +kPiPlus}},
129129
};

0 commit comments

Comments
 (0)