Skip to content

Commit 0f15fa0

Browse files
author
Sawan Sawan
committed
added event selections for heavy/light ion
1 parent 66e060d commit 0f15fa0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

PWGLF/Tasks/Resonances/kstarqa.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ struct Kstarqa {
8989
Configurable<int> cSelectMultEstimator{"cSelectMultEstimator", 0, "Select multiplicity estimator: 0 - FT0M, 1 - FT0A, 2 - FT0C"};
9090
Configurable<bool> applyRecMotherRapidity{"applyRecMotherRapidity", true, "Apply rapidity cut on reconstructed mother track"};
9191
Configurable<bool> applypTdepPID{"applypTdepPID", false, "Apply pT dependent PID"};
92+
Configurable<bool> ispileupGoodvtxCut{"ispileupGoodvtxCut", true, "kNoSameBunchPileup, kIsGoodZvtxFT0vsPV cuts"};
93+
Configurable<bool> allLayersGoodITS{"allLayersGoodITS", true, "Require all ITS layers to be good"};
9294

9395
// Configurables for track selections
9496
Configurable<int> rotationalCut{"rotationalCut", 10, "Cut value (Rotation angle pi - pi/cut and pi + pi/cut)"};
@@ -247,6 +249,12 @@ struct Kstarqa {
247249
if (rctCut.requireRCTFlagChecker && !rctChecker(collision)) {
248250
return false;
249251
}
252+
if (ispileupGoodvtxCut && (!collision.selection_bit(aod::evsel::kNoSameBunchPileup) || !collision.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV))) {
253+
return false;
254+
}
255+
if (allLayersGoodITS && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) {
256+
return false;
257+
}
250258
return true;
251259
}
252260

0 commit comments

Comments
 (0)