Skip to content

Commit cf0658d

Browse files
authored
Update correlatorDplusHadrons.cxx
1 parent a9c4e4b commit cf0658d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,13 @@ struct HfCorrelatorDplusHadrons {
433433
if (std::abs(HfHelper::yDplus(candidate)) >= yCandMax || candidate.pt() <= ptCandMin || candidate.pt() >= ptCandMax) {
434434
continue;
435435
}
436+
// Remove D+ candidates for which at least one daughter has |eta| > 0.8
437+
double etaDaugh1 = RecoDecay::eta(std::array{candidate.pxProng0(), candidate.pyProng0(), candidate.pzProng0()});
438+
double etaDaugh2 = RecoDecay::eta(std::array{candidate.pxProng1(), candidate.pyProng1(), candidate.pzProng1()});
439+
double etaDaugh3 = RecoDecay::eta(std::array{candidate.pxProng2(), candidate.pyProng2(), candidate.pzProng2()});
440+
if (std::abs(etaDaugh1) >= kEtaDaughtersMax || std::abs(etaDaugh2) >= kEtaDaughtersMax || std::abs(etaDaugh3) >= kEtaDaughtersMax) {
441+
continue;
442+
}
436443
// efficiency weight determination
437444
int const effBinD = o2::analysis::findBin(binsPtEfficiencyD, candidate.pt());
438445
double efficiencyWeightD = 1.;
@@ -494,14 +501,7 @@ struct HfCorrelatorDplusHadrons {
494501
if (!track.isGlobalTrackWoDCA()) {
495502
continue;
496503
}
497-
// Remove D+ candidates for which at least one daughter has |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-
}
504-
// Removing Dplus daughters by checking track indices
504+
// Removing Dplus daughters by checking track indices
505505
if (removeDaughters) {
506506
if ((candidate.prong0Id() == track.globalIndex()) || (candidate.prong1Id() == track.globalIndex()) || (candidate.prong2Id() == track.globalIndex())) {
507507
continue;

0 commit comments

Comments
 (0)