Skip to content

Commit 5a8fc52

Browse files
authored
[PWGJE,EMCAL-670] emcalCorrectionTask: add basic track selection for … (#9493)
1 parent 9387d6e commit 5a8fc52

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PWGJE/TableProducer/emcalCorrectionTask.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ struct EmcalCorrectionTask {
9595
Configurable<bool> useWeightExotic{"useWeightExotic", false, "States if weights should be used for exotic cell cut"};
9696
Configurable<bool> isMC{"isMC", false, "States if run over MC"};
9797
Configurable<bool> applyCellTimeCorrection{"applyCellTimeCorrection", true, "apply a correction to the cell time for data and MC: Shift both average cell times to 0 and smear MC time distribution to fit data better"};
98+
Configurable<float> trackMinPt{"trackMinPt", 0.3, "Minimum pT for tracks to perform track matching, to reduce computing time. Tracks below a certain pT will be loopers anyway."};
9899

99100
// Require EMCAL cells (CALO type 1)
100101
Filter emccellfilter = aod::calo::caloType == selectedCellType;
@@ -784,6 +785,14 @@ struct EmcalCorrectionTask {
784785
if (!track.isGlobalTrack()) { // only global tracks
785786
continue;
786787
}
788+
// Tracks that do not point to the EMCal/DCal/PHOS get default values of -999
789+
// This way we can cut out tracks that do not point to the EMCal+DCal
790+
if (track.trackEtaEmcal() < -900 || track.trackPhiEmcal() < -900) {
791+
continue;
792+
}
793+
if (trackMinPt > 0 && track.pt() < trackMinPt) {
794+
continue;
795+
}
787796
nTrack++;
788797
trackPhi.emplace_back(TVector2::Phi_0_2pi(track.trackPhiEmcal()));
789798
trackEta.emplace_back(track.trackEtaEmcal());

0 commit comments

Comments
 (0)