Skip to content

Commit 3f3f16b

Browse files
authored
[PWGCF] FemtoUniverse: Add flag to choose cent. or mult. to fill col table (#13416)
1 parent d41749a commit 3f3f16b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ struct FemtoUniverseProducerTask {
160160
Configurable<bool> confEvIsVertexITSTPC{"confEvIsVertexITSTPC", true, "Require kIsVertexITSTPC selection on Events"};
161161
Configurable<int> confTPCOccupancyMin{"confTPCOccupancyMin", 0, "Minimum value for TPC Occupancy selection"};
162162
Configurable<int> confTPCOccupancyMax{"confTPCOccupancyMax", 500, "Maximum value for TPC Occupancy selection"};
163+
Configurable<bool> confIsCent{"confIsCent", true, "Centrality or multiplicity selection"};
163164
} ConfGeneral;
164165
Filter customCollCentFilter = (aod::cent::centFT0C > ConfGeneral.confCentFT0Min) &&
165166
(aod::cent::centFT0C < ConfGeneral.confCentFT0Max);
@@ -2541,9 +2542,15 @@ struct FemtoUniverseProducerTask {
25412542
auto bc = col.bc_as<aod::BCsWithTimestamps>();
25422543
getMagneticFieldTesla(bc);
25432544
const auto ir = mRateFetcher.fetch(ccdb.service, bc.timestamp(), mRunNumber, "ZNC hadronic") * 1.e-3; // fetch IR
2544-
2545+
bool colcheck = false;
25452546
// fill the tables
2546-
const auto colcheck = fillCollisionsCentRun3<true>(col);
2547+
2548+
if (ConfGeneral.confIsCent) {
2549+
colcheck = fillCollisionsCentRun3<true>(col);
2550+
} else {
2551+
colcheck = fillCollisions<true>(col, groupedTracks);
2552+
}
2553+
25472554
if (colcheck) {
25482555
fillCollisionsCentRun3ColExtra<true>(col, ir);
25492556
fillTracks<true>(groupedTracks);

0 commit comments

Comments
 (0)