Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions PWGHF/Utils/utilsMcGen.h
Original file line numberDiff line numberDiff line change
Expand Up@@ -219,7 +219,7 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
// D± → π± K∓ π±
if (flag == 0) {
if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kDPlus, std::array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2)) {
flag = sign * (1 << o2::aod::hf_cand_3prong::DecayType::DplusToPiKPi);
flag = sign * o2::hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKPi;
}
}

Expand All@@ -229,11 +229,11 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kDS, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2)) {
// DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
// TODO: move to different and explicit flags
flag = sign * (1 << o2::aod::hf_cand_3prong::DecayType::DsToKKPi);
flag = sign * o2::hf_decay::hf_cand_3prong::DecayChannelMain::DsToPiKK;
} else if (RecoDecay::isMatchedMCGen(mcParticles, particle, Pdg::kDPlus, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2)) {
// DecayType::DsToKKPi is used to flag both Ds± → K± K∓ π± and D± → K± K∓ π±
// TODO: move to different and explicit flags
flag = sign * (1 << o2::aod::hf_cand_3prong::DecayType::DsToKKPi);
flag = sign * o2::hf_decay::hf_cand_3prong::DecayChannelMain::DplusToPiKK;
isDplus = true;
}
if (flag != 0) {
Expand All@@ -244,9 +244,9 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
arrPDGDaugh[jProng] = std::abs(daughJ.pdgCode());
}
if ((arrPDGDaugh[0] == arrPDGResonantDPhiPi[0] && arrPDGDaugh[1] == arrPDGResonantDPhiPi[1]) || (arrPDGDaugh[0] == arrPDGResonantDPhiPi[1] && arrPDGDaugh[1] == arrPDGResonantDPhiPi[0])) {
channel = isDplus ? o2::aod::hf_cand_3prong::DecayChannelDToKKPi::DplusToPhiPi : o2::aod::hf_cand_3prong::DecayChannelDToKKPi::DsToPhiPi;
channel = isDplus ? o2::hf_decay::hf_cand_3prong::DecayChannelResonant::DplusToPhiPi : o2::hf_decay::hf_cand_3prong::DecayChannelResonant::DsToPhiPi;
} else if ((arrPDGDaugh[0] == arrPDGResonantDKstarK[0] && arrPDGDaugh[1] == arrPDGResonantDKstarK[1]) || (arrPDGDaugh[0] == arrPDGResonantDKstarK[1] && arrPDGDaugh[1] == arrPDGResonantDKstarK[0])) {
channel = isDplus ? o2::aod::hf_cand_3prong::DecayChannelDToKKPi::DplusToK0starK : o2::aod::hf_cand_3prong::DecayChannelDToKKPi::DsToK0starK;
channel = isDplus ? o2::hf_decay::hf_cand_3prong::DecayChannelResonant::DplusToKstar0K : o2::hf_decay::hf_cand_3prong::DecayChannelResonant::DsToKstar0K;
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions PWGHF/Utils/utilsMcMatching.h
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,16 +57,16 @@ namespace hf_cand_3prong

// D±
static const std::unordered_map<DecayChannelMain, const std::vector<int>> daughtersDplusMain{
{DecayChannelMain::DplusToPiKPi, {+kKMinus, +kKPlus, +kPiPlus}},
{DecayChannelMain::DplusToPiKK, {+kKMinus, +kPiPlus, +kPiPlus}},
{DecayChannelMain::DplusToPiKPi, {+kKMinus, +kPiPlus, +kPiPlus}},
{DecayChannelMain::DplusToPiKK, {+kKMinus, +kKPlus, +kPiPlus}},
{DecayChannelMain::DplusToPiKPiPi0, {+kKMinus, +kPiPlus, +kPiPlus, +kPi0}},
{DecayChannelMain::DplusToPiPiPi, {+kPiMinus, +kPiPlus, +kPiPlus}},
};

static const std::unordered_map<DecayChannelResonant, const std::array<int, 2>> daughtersDplusResonant{
{DecayChannelResonant::DplusToPhiPi, {+o2::constants::physics::kPhi, +kPiPlus}},
{DecayChannelResonant::DplusToKstar0K, {-o2::constants::physics::kK0Star892, +kKPlus}},
{DecayChannelResonant::DplusToKstar1430_0K, {+10311, +kKPlus}},
{DecayChannelResonant::DplusToKstar1430_0K, {-10311, +kKPlus}},
{DecayChannelResonant::DplusToRho0Pi, {+kRho770_0, +kPiPlus}},
{DecayChannelResonant::DplusToF2_1270Pi, {+225, +kPiPlus}},
};
Expand DownExpand Up@@ -110,7 +110,7 @@ static const std::unordered_map<DecayChannelResonant, const std::array<int, 2>>
{DecayChannelResonant::DstarToD0ToKstarPi, {-o2::constants::physics::kKPlusStar892, +kPiPlus}},
{DecayChannelResonant::DstarToDplusToPhiPi, {+o2::constants::physics::kPhi, +kPiPlus}},
{DecayChannelResonant::DstarToDplusToKstar0K, {-o2::constants::physics::kK0Star892, +kKPlus}},
{DecayChannelResonant::DstarToDplusToKstar1430_0K, {+10311, +kKPlus}},
{DecayChannelResonant::DstarToDplusToKstar1430_0K, {-10311, +kKPlus}},
{DecayChannelResonant::DstarToDplusToRho0Pi, {+kRho770_0, +kPiPlus}},
{DecayChannelResonant::DstarToDplusToF2_1270Pi, {+225, +kPiPlus}},
};
Expand All@@ -123,7 +123,7 @@ static const std::unordered_map<DecayChannelMain, const std::vector<int>> daught
{DecayChannelMain::LcToPKK, {+kProton, +kKMinus, +kKPlus}}};

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