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
6 changes: 3 additions & 3 deletions EventFiltering/PWGHF/HFFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1010,13 +1010,13 @@ struct HfFilter { // Main struct for HF triggers
int8_t origin = 0;

// D± → π± K∓ π±
auto indexRec = RecoDecay::getMatchedMCRec(particlesMC, arrayDaughters, pdg::Code::kDPlus, array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign);
auto indexRec = RecoDecay::getMatchedMCRec(particlesMC, arrayDaughters, pdg::Code::kDPlus, array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2);
if (indexRec >= 0) {
channel = kDplus;
}
if (indexRec < 0) {
// Ds± → K± K∓ π±
indexRec = RecoDecay::getMatchedMCRec(particlesMC, arrayDaughters, 431, array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign); // TODO: replace hard coded pdg code
indexRec = RecoDecay::getMatchedMCRec(particlesMC, arrayDaughters, 431, array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2); // TODO: replace hard coded pdg code
if (indexRec >= 0) {
channel = kDs;
}
Expand All @@ -1030,7 +1030,7 @@ struct HfFilter { // Main struct for HF triggers
}
if (indexRec < 0) {
// Ξc± → p± K∓ π±
indexRec = RecoDecay::getMatchedMCRec(particlesMC, arrayDaughters, pdg::Code::kXiCPlus, array{+kProton, -kKPlus, +kPiPlus}, true, &sign);
indexRec = RecoDecay::getMatchedMCRec(particlesMC, arrayDaughters, pdg::Code::kXiCPlus, array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2);
if (indexRec >= 0) {
channel = kXic;
}
Expand Down
2 changes: 1 addition & 1 deletion EventFiltering/PWGHF/HFFilterQC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct HfFilterQc { // Main struct for HF trigger QC
return;
} else {
int8_t sign = 0;
if (RecoDecay::isMatchedMCGen(particlesMC, particle, pdgCodes[I], std::get<I>(pdgDau), true, &sign)) {
if (RecoDecay::isMatchedMCGen(particlesMC, particle, pdgCodes[I], std::get<I>(pdgDau), true, &sign, 2)) {
nParticles[I]++;
hPtDistr[0]->Fill(static_cast<double>(I), static_cast<double>(particle.pt()));
for (auto iTrig = 0; iTrig < kNtriggersHF; ++iTrig) {
Expand Down