Skip to content

Commit f5abc56

Browse files
committed
Implement Mattia and Vit comments
1 parent b704ca4 commit f5abc56

File tree

2 files changed

+117
-121
lines changed

2 files changed

+117
-121
lines changed

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ using namespace o2::hf_evsel;
6060
using namespace o2::hf_trkcandsel;
6161
using namespace o2::aod::hf_cand_3prong;
6262
using namespace o2::hf_decay::hf_cand_3prong;
63-
using namespace o2::hf_corrbkg;
6463
using namespace o2::hf_centrality;
6564
using namespace o2::hf_occupancy;
6665
using namespace o2::constants::physics;
6766
using namespace o2::framework;
6867
using namespace o2::framework::expressions;
6968
using namespace o2::aod::pid_tpc_tof_utils;
69+
using namespace o2::hf_corrbkg;
7070

7171
/// Reconstruction of heavy-flavour 3-prong decay candidates
7272
struct HfCandidateCreator3Prong {
@@ -853,7 +853,7 @@ struct HfCandidateCreator3ProngExpressions {
853853
Configurable<bool> matchKinkedDecayTopology{"matchKinkedDecayTopology", false, "Match also candidates with tracks that decay with kinked topology"};
854854
Configurable<bool> matchInteractionsWithMaterial{"matchInteractionsWithMaterial", false, "Match also candidates with tracks that interact with material"};
855855
Configurable<bool> matchCorrBkgs{"matchCorrBkgs", false, "Match correlated background candidates"};
856-
Configurable<std::vector<int>> mothersCorrBkgsPdgs{"mothersCorrBkgsPdgs", {411, 413, 431, 4122, 4232}, "PDG codes of the mother particles of correlated background candidates"};
856+
Configurable<std::vector<int>> mothersCorrBkgsPdgs{"mothersCorrBkgsPdgs", {Pdg::kDPlus, Pdg::kDS, Pdg::kDStar, Pdg::kLambdaCPlus, Pdg::kXiCPlus}, "PDG codes of the mother particles of correlated background candidates"};
857857

858858
constexpr static std::size_t NDaughtersResonant{2u};
859859

@@ -1049,7 +1049,7 @@ struct HfCandidateCreator3ProngExpressions {
10491049
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2);
10501050
}
10511051
if (indexRec > -1) {
1052-
flag = sign * hf_cand_3prong::DecayChannelMain::DplusToPiKPi;
1052+
flag = sign * DecayChannelMain::DplusToPiKPi;
10531053
}
10541054
}
10551055

@@ -1078,7 +1078,7 @@ struct HfCandidateCreator3ProngExpressions {
10781078
}
10791079
}
10801080
if (indexRec > -1) {
1081-
flag = sign * (isDplus ? hf_cand_3prong::DecayChannelMain::DplusToPiKK : hf_cand_3prong::DecayChannelMain::DsToPiKK);
1081+
flag = sign * (isDplus ? DecayChannelMain::DplusToPiKK : DecayChannelMain::DsToPiKK);
10821082
if (arrayDaughters[0].has_mcParticle()) {
10831083
swapping = int8_t(std::abs(arrayDaughters[0].mcParticle().pdgCode()) == kPiPlus);
10841084
}
@@ -1089,9 +1089,9 @@ struct HfCandidateCreator3ProngExpressions {
10891089
arrPDGDaugh[iProng] = std::abs(daughI.pdgCode());
10901090
}
10911091
if ((arrPDGDaugh[0] == arrPDGResonantDPhiPi[0] && arrPDGDaugh[1] == arrPDGResonantDPhiPi[1]) || (arrPDGDaugh[0] == arrPDGResonantDPhiPi[1] && arrPDGDaugh[1] == arrPDGResonantDPhiPi[0])) {
1092-
channel = isDplus ? hf_cand_3prong::DecayChannelResonant::DplusToPhiPi : hf_cand_3prong::DecayChannelResonant::DsToPhiPi;
1092+
channel = isDplus ? DecayChannelResonant::DplusToPhiPi : DecayChannelResonant::DsToPhiPi;
10931093
} else if ((arrPDGDaugh[0] == arrPDGResonantDKstarK[0] && arrPDGDaugh[1] == arrPDGResonantDKstarK[1]) || (arrPDGDaugh[0] == arrPDGResonantDKstarK[1] && arrPDGDaugh[1] == arrPDGResonantDKstarK[0])) {
1094-
channel = isDplus ? hf_cand_3prong::DecayChannelResonant::DplusToKstar0K : hf_cand_3prong::DecayChannelResonant::DsToKstar0K;
1094+
channel = isDplus ? DecayChannelResonant::DplusToKstar0K : DecayChannelResonant::DsToKstar0K;
10951095
}
10961096
}
10971097
}
@@ -1105,7 +1105,7 @@ struct HfCandidateCreator3ProngExpressions {
11051105
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDStar, std::array{+kPiPlus, +kPiPlus, -kKPlus}, true, &sign, 2);
11061106
}
11071107
if (indexRec > -1) {
1108-
flag = sign * hf_cand_3prong::DecayChannelMain::DstarToPiKPi;
1108+
flag = sign * DecayChannelMain::DstarToPiKPi;
11091109
channel = 1;
11101110
}
11111111
}
@@ -1122,7 +1122,7 @@ struct HfCandidateCreator3ProngExpressions {
11221122
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2);
11231123
}
11241124
if (indexRec > -1) {
1125-
flag = sign * hf_cand_3prong::DecayChannelMain::LcToPKPi;
1125+
flag = sign * DecayChannelMain::LcToPKPi;
11261126

11271127
// Flagging the different Λc± → p± K∓ π± decay channels
11281128
if (arrayDaughters[0].has_mcParticle()) {
@@ -1157,7 +1157,7 @@ struct HfCandidateCreator3ProngExpressions {
11571157
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kXiCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2);
11581158
}
11591159
if (indexRec > -1) {
1160-
flag = sign * hf_cand_3prong::DecayChannelMain::XicToPKPi;
1160+
flag = sign * DecayChannelMain::XicToPKPi;
11611161
if (arrayDaughters[0].has_mcParticle()) {
11621162
swapping = int8_t(std::abs(arrayDaughters[0].mcParticle().pdgCode()) == kPiPlus);
11631163
}

0 commit comments

Comments
 (0)