Skip to content

Commit d4348b6

Browse files
authored
Update correlatorDplusHadrons.cxx
1 parent 86b5cfd commit d4348b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,13 @@ struct HfCorrelatorDplusHadrons {
494494
if (!track.isGlobalTrackWoDCA()) {
495495
continue;
496496
}
497+
// Removing Dplus daughters for which |eta|>0.8
498+
double etaDaugh1 = RecoDecay::eta(std::array{candidate.pxProng0(), candidate.pyProng0(), candidate.pzProng0()});
499+
double etaDaugh2 = RecoDecay::eta(std::array{candidate.pxProng1(), candidate.pyProng1(), candidate.pzProng1()});
500+
double etaDaugh3 = RecoDecay::eta(std::array{candidate.pxProng2(), candidate.pyProng2(), candidate.pzProng2()});
501+
if (std::abs(etaDaugh1) >= kEtaDaughtersMax || std::abs(etaDaugh2) >= kEtaDaughtersMax || std::abs(etaDaugh3) >= kEtaDaughtersMax) {
502+
continue;
503+
}
497504
// Removing Dplus daughters by checking track indices
498505
if (removeDaughters) {
499506
if ((candidate.prong0Id() == track.globalIndex()) || (candidate.prong1Id() == track.globalIndex()) || (candidate.prong2Id() == track.globalIndex())) {

0 commit comments

Comments
 (0)