Skip to content

Commit 2b7c01b

Browse files
authored
Add pt cut for nonHFe
1 parent ea16846 commit 2b7c01b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

PWGHF/HFL/TableProducer/electronSelectionWithTpcEmcal.cxx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,20 +282,23 @@ struct HfElectronSelectionWithTpcEmcal {
282282
if (!selAssoTracks(pTrack)) {
283283
continue;
284284
}
285-
int PDGe1 = kElectron;
286-
int PDGe2 = kElectron;
285+
if (electron.pt() <= pTrack.pt()) {
286+
continue;
287+
}
288+
int pdgE1 = kElectron;
289+
int pdgE2 = kElectron;
287290
if (electron.sign() > 0) {
288-
PDGe1 = kPositron;
291+
pdgE1 = kPositron;
289292
}
290293

291294
if (pTrack.sign() > 0) {
292-
PDGe2 = kPositron;
295+
pdgE2 = kPositron;
293296
}
294297

295298
KFPTrack kfpTrack = createKFPTrackFromTrack(electron);
296299
KFPTrack kfpAssociatedTrack = createKFPTrackFromTrack(pTrack);
297-
KFParticle KFTrack(kfpTrack, PDGe1);
298-
KFParticle kfAssociatedTrack(kfpAssociatedTrack, PDGe2);
300+
KFParticle KFTrack(kfpTrack, pdgE1);
301+
KFParticle kfAssociatedTrack(kfpAssociatedTrack, pdgE2);
299302
const KFParticle* electronPairs[2] = {&KFTrack, &kfAssociatedTrack};
300303
KFNonHfe.SetConstructMethod(2);
301304
KFNonHfe.Construct(electronPairs, 2);
@@ -598,6 +601,7 @@ struct HfElectronSelectionWithTpcEmcal {
598601
registry.fill(HIST("hEtaeEmbTrkPt"), particleMc.pt());
599602
}
600603
}
604+
std::cout << " collision id" << mcCollision.globalIndex() << " coll id " << particleMc.mcCollisionId() << std::endl;
601605
HfGenElectronSel(mcCollision.globalIndex(), particleMc.globalIndex(), particleMc.eta(), particleMc.phi(), particleMc.pt(), isNonHfe);
602606
}
603607
}

0 commit comments

Comments
 (0)