Skip to content

Commit 41d1ebe

Browse files
authored
[PWGEM] Reject all quarkonia in the HF cocktail (#11145)
1 parent ae207c0 commit 41d1ebe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

PWGEM/Dilepton/Tasks/lmeeHFCocktail.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,14 @@ struct lmeehfcocktailprefilter {
209209
}
210210

211211
int mother_pdg = mcParticles.iteratorAt(p.mothersIds()[0]).pdgCode();
212-
bool direct_charm_mother = abs(mother_pdg) < 1e+9 && (std::to_string(mother_pdg)[std::to_string(mother_pdg).length() - 3] == '4' || std::to_string(mother_pdg)[std::to_string(mother_pdg).length() - 4] == '4');
213-
if (abs(mother_pdg) == 443) {
214-
direct_charm_mother = false; // we don't want JPsi here
215-
}
212+
// Mother is an open-charm hadon (meson or baryon) expected to decay semi-leptonicly
213+
bool direct_charm_mother = ((std::abs(mother_pdg) >= 400) && (std::abs(mother_pdg) <= 439)) || ((std::abs(mother_pdg) >= 4000) && (std::abs(mother_pdg) <= 4399));
216214
int cHadronId = -1;
217215
if (direct_charm_mother) {
218216
cHadronId = p.mothersIds()[0];
219217
}
220-
bool direct_beauty_mother = abs(mother_pdg) < 1e+9 && (std::to_string(mother_pdg)[std::to_string(mother_pdg).length() - 3] == '5' || std::to_string(mother_pdg)[std::to_string(mother_pdg).length() - 4] == '5');
218+
// Mother is an open-beuaty hadron (meson or baryon) expected to decay semi-leptonicly
219+
bool direct_beauty_mother = ((std::abs(mother_pdg) >= 500) && (std::abs(mother_pdg) <= 549)) || ((std::abs(mother_pdg) >= 5000) && (std::abs(mother_pdg) <= 5499));
221220
int bHadronId = IsFromBeauty(p, mcParticles);
222221

223222
int bQuarkId = -1;

0 commit comments

Comments
 (0)