Skip to content

Commit 7a25f14

Browse files
authored
FemtoUniverse: Add flags for event selection cuts with centrality
1 parent ab79e71 commit 7a25f14

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ struct FemtoUniverseProducerTask {
158158
Configurable<bool> confEvNoSameBunchPileup{"confEvNoSameBunchPileup", true, "Require kNoSameBunchPileup selection on Events."};
159159
Configurable<bool> confIsUsePileUp{"confIsUsePileUp", true, "Required for choosing whether to run the pile-up cuts"};
160160
Configurable<bool> confEvIsVertexITSTPC{"confEvIsVertexITSTPC", true, "Require kIsVertexITSTPC selection on Events"};
161+
Configurable<bool> confIsGoodITSLayersAll{"confIsGoodITSLayersAll", true, "Require IsGoodITSLayersAll selection on Events."};
162+
Configurable<bool> confNoCollInRofStandard{"confNoCollInRofStandard", true, "Require NoCollInRofStandard selection on Events."};
163+
Configurable<bool> confNoHighMultCollInPrevRof{"confNoHighMultCollInPrevRof", true, "Require NoHighMultCollInPrevRof selection on Events."};
164+
Configurable<bool> confNoCollInTimeRangeStandard{"confNoCollInTimeRangeStandard", true, "Require NoCollInTimeRangeStandard selection on Events."};
161165
Configurable<int> confTPCOccupancyMin{"confTPCOccupancyMin", 0, "Minimum value for TPC Occupancy selection"};
162166
Configurable<int> confTPCOccupancyMax{"confTPCOccupancyMax", 500, "Maximum value for TPC Occupancy selection"};
163167
Configurable<bool> confIsCent{"confIsCent", true, "Centrality or multiplicity selection"};
@@ -1117,12 +1121,13 @@ struct FemtoUniverseProducerTask {
11171121
if (!colCuts.isSelectedRun3(col) || (occupancy < ConfGeneral.confTPCOccupancyMin || occupancy > ConfGeneral.confTPCOccupancyMax)) {
11181122
return false;
11191123
} else {
1120-
if (col.selection_bit(aod::evsel::kNoSameBunchPileup) &&
1121-
col.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV) &&
1122-
col.selection_bit(aod::evsel::kIsGoodITSLayersAll) &&
1123-
col.selection_bit(aod::evsel::kNoCollInRofStandard) &&
1124-
col.selection_bit(aod::evsel::kNoHighMultCollInPrevRof) &&
1125-
col.selection_bit(aod::evsel::kNoCollInTimeRangeStandard)) {
1124+
if ((!ConfGeneral.confEvNoSameBunchPileup || col.selection_bit(aod::evsel::kNoSameBunchPileup)) &&
1125+
(!ConfGeneral.confEvIsGoodZvtxFT0vsPV || col.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) &&
1126+
(!ConfGeneral.confIsGoodITSLayersAll || col.selection_bit(aod::evsel::kIsGoodITSLayersAll)) &&
1127+
(!ConfGeneral.confNoCollInRofStandard || col.selection_bit(aod::evsel::kNoCollInRofStandard)) &&
1128+
(!ConfGeneral.confNoHighMultCollInPrevRof || col.selection_bit(aod::evsel::kNoHighMultCollInPrevRof)) &&
1129+
(!ConfGeneral.confEvIsVertexITSTPC || col.selection_bit(aod::evsel::kIsVertexITSTPC)) &&
1130+
(!ConfGeneral.confNoCollInTimeRangeStandard || col.selection_bit(aod::evsel::kNoCollInTimeRangeStandard))) {
11261131
outputCollision(vtxZ, cent, multNtr, 2, mMagField);
11271132
return true;
11281133
} else {

0 commit comments

Comments
 (0)