Skip to content

Commit d51e4a9

Browse files
authored
configurable to set NumberOfOrbitsPerTF manually (e.g. for MC PbPb)
1 parent 5ae8731 commit d51e4a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Common/TableProducer/eventSelection.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ struct BcSelectionTask {
6969
Configurable<int> confTimeFrameEndBorderMargin{"TimeFrameEndBorderMargin", -1, "Number of bcs to cut at the end of the Time Frame. Take from CCDB if -1"}; // o2-linter: disable=name/configurable (temporary fix)
7070
Configurable<bool> confCheckRunDurationLimits{"checkRunDurationLimits", false, "Check if the BCs are within the run duration limits"}; // o2-linter: disable=name/configurable (temporary fix)
7171
Configurable<std::vector<int>> maxInactiveChipsPerLayer{"maxInactiveChipsPerLayer", {8, 8, 8, 111, 111, 195, 195}, "Maximum allowed number of inactive ITS chips per layer"};
72+
Configurable<int> confNumberOfOrbitsPerTF{"NumberOfOrbitsPerTF", -1, "Number of orbits per Time Frame. Take from CCDB if -1"}; // o2-linter: disable=name/configurable (temporary fix)
7273

7374
int lastRun = -1;
7475
int64_t lastTF = -1;
@@ -271,7 +272,7 @@ struct BcSelectionTask {
271272
// first bc of the first orbit
272273
bcSOR = runInfo.orbitSOR * nBCsPerOrbit;
273274
// duration of TF in bcs
274-
nBCsPerTF = runInfo.orbitsPerTF * nBCsPerOrbit;
275+
nBCsPerTF = confNumberOfOrbitsPerTF < 0 ? runInfo.orbitsPerTF * nBCsPerOrbit : confNumberOfOrbitsPerTF * nBCsPerOrbit;
275276
}
276277

277278
// timestamp of the middle of the run used to access run-wise CCDB entries
@@ -506,6 +507,7 @@ struct EventSelectionTask {
506507
Configurable<float> confFT0CamplCutVetoOnCollInROF{"FT0CamplPerCollCutVetoOnCollInROF", 5000, "Max allowed FT0C amplitude for each nearby collision inside this ITS ROF"}; // o2-linter: disable=name/configurable (temporary fix)
507508
Configurable<float> confEpsilonVzDiffVetoInROF{"EpsilonVzDiffVetoInROF", 0.3, "Minumum distance to nearby collisions along z inside this ITS ROF, cm"}; // o2-linter: disable=name/configurable (temporary fix)
508509
Configurable<bool> confUseWeightsForOccupancyVariable{"UseWeightsForOccupancyEstimator", 1, "Use or not the delta-time weights for the occupancy estimator"}; // o2-linter: disable=name/configurable (temporary fix)
510+
Configurable<int> confNumberOfOrbitsPerTF{"NumberOfOrbitsPerTF", -1, "Number of orbits per Time Frame. Take from CCDB if -1"}; // o2-linter: disable=name/configurable (temporary fix)
509511

510512
Partition<FullTracks> tracklets = (aod::track::trackType == static_cast<uint8_t>(o2::aod::track::TrackTypeEnum::Run2Tracklet));
511513

@@ -697,7 +699,7 @@ struct EventSelectionTask {
697699
// first bc of the first orbit
698700
bcSOR = runInfo.orbitSOR * nBCsPerOrbit;
699701
// duration of TF in bcs
700-
nBCsPerTF = runInfo.orbitsPerTF * nBCsPerOrbit;
702+
nBCsPerTF = confNumberOfOrbitsPerTF < 0 ? runInfo.orbitsPerTF * nBCsPerOrbit : confNumberOfOrbitsPerTF * nBCsPerOrbit;
701703
// colliding bc pattern
702704
int64_t ts = bcs.iteratorAt(0).timestamp();
703705
auto grplhcif = ccdb->getForTimeStamp<o2::parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", ts);

0 commit comments

Comments
 (0)