Skip to content

Commit dcd9dcb

Browse files
committed
Adding TPC crossed rows check in efficiency process
1 parent 9692f1f commit dcd9dcb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

PWGHF/HFC/TableProducer/correlatorDsHadronsReduced.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ struct HfCorrelatorDsHadronsReduced {
116116
registry.fill(HIST("hEtaVsPtCand"), candidate.etaCand(), candidate.ptCand());
117117
entryDsCandRecoInfo(candidate.invMassDs(), candidate.ptCand(), candidate.bdtScorePrompt(), candidate.bdtScoreBkg());
118118
for (const auto& track : tracksThisColl) {
119+
// Removing Ds daughters by checking track indices
120+
if ((candidate.prong0Id() == track.originTrackId()) || (candidate.prong1Id() == track.originTrackId()) || (candidate.prong2Id() == track.originTrackId())) {
121+
continue;
122+
}
119123
registry.fill(HIST("hTracksPoolBin"), poolBin);
120124
registry.fill(HIST("hPhiVsPtPartAssoc"), RecoDecay::constrainAngle(track.phiAssocTrack(), -PIHalf), candidate.ptCand(), track.ptAssocTrack());
121125
registry.fill(HIST("hEtaVsPtPartAssoc"), track.etaAssocTrack(), candidate.ptCand(), track.ptAssocTrack());

PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ struct HfTaskCorrelationDsHadrons {
910910

911911
// reconstructed track loop
912912
for (const auto& track : groupedTracks) {
913-
if (!track.isGlobalTrackWoDCA()) {
913+
if (!track.isGlobalTrackWoDCA() || track.tpcNClsCrossedRows() < nTpcCrossedRaws) {
914914
continue;
915915
}
916916
if (track.has_mcParticle()) {

0 commit comments

Comments
 (0)