Skip to content

Commit 0fc2e1a

Browse files
jikim1290junleekim
and
junleekim
authored
[PWGCF] adding configurable for occupancy selection range (AliceO2Group#8657)
Co-authored-by: junleekim <[email protected]>
1 parent e5caee5 commit 0fc2e1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PWGCF/TableProducer/filterCorrelations.cxx

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ struct FilterCF {
6060
O2_DEFINE_CONFIGURABLE(cfgCutMCEta, float, 0.8f, "Eta range for particles")
6161
O2_DEFINE_CONFIGURABLE(cfgVerbosity, int, 1, "Verbosity level (0 = major, 1 = per collision)")
6262
O2_DEFINE_CONFIGURABLE(cfgTrigger, int, 7, "Trigger choice: (0 = none, 7 = sel7, 8 = sel8, 9 = sel8 + kNoSameBunchPileup + kIsGoodZvtxFT0vsPV, 10 = sel8 before April, 2024, 11 = sel8 for MC, 12 = sel8 with low occupancy cut)")
63+
O2_DEFINE_CONFIGURABLE(cfgMinOcc, int, 0, "minimum occupancy selection")
64+
O2_DEFINE_CONFIGURABLE(cfgMaxOcc, int, 3000, "maximum occupancy selection")
6365
O2_DEFINE_CONFIGURABLE(cfgCollisionFlags, uint16_t, aod::collision::CollisionFlagsRun2::Run2VertexerTracks, "Request collision flags if non-zero (0 = off, 1 = Run2VertexerTracks)")
6466
O2_DEFINE_CONFIGURABLE(cfgTransientTables, bool, false, "Output transient tables for collision and track IDs")
6567
O2_DEFINE_CONFIGURABLE(cfgTrackSelection, int, 0, "Type of track selection (0 = Run 2/3 without systematics | 1 = Run 3 with systematics)")
@@ -111,7 +113,7 @@ struct FilterCF {
111113
return isMultSelected && collision.selection_bit(aod::evsel::kIsTriggerTVX) && collision.selection_bit(aod::evsel::kNoTimeFrameBorder);
112114
} else if (cfgTrigger == 12) { // relevant only for Pb-Pb with occupancy cuts and rejection of the collisions which have other events nearby
113115
int occupancy = collision.trackOccupancyInTimeRange();
114-
if (occupancy >= 0 && occupancy < 500)
116+
if (occupancy >= cfgMinOcc && occupancy < cfgMaxOcc)
115117
return isMultSelected && collision.sel8() && collision.selection_bit(aod::evsel::kNoSameBunchPileup) && collision.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV) && collision.selection_bit(aod::evsel::kNoCollInTimeRangeStandard);
116118
else
117119
return false;

0 commit comments

Comments
 (0)