Skip to content

Commit 0da286b

Browse files
authored
add adjustments for orbit shifts for some other MCs created with MC-prod-v12
1 parent fe47e4f commit 0da286b

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

‎DataFormats/Parameters/src/AggregatedRunInfo.cxx‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,26 @@ void AggregatedRunInfo::adjust_from_MC(o2::ccdb::CCDBManagerInstance& ccdb,
133133
}
134134

135135
// adjust SOR for some MC productions, where the ITS "ramp-up shift" of SOR was not a multiple of NOrbitsPerTF.
136-
// (some MC productions are affected, before the problem was fixed on Oct 2, 2026)
137-
if (lpm_prod_tag == "LHC26h3") {
136+
// (several MC productions are affected, before the problem was fixed on Oct 2, 2026)
137+
static constexpr std::string_view validTags[] = {
138+
"LHC26i10_Plus10",
139+
"LHC26i10_Minus10",
140+
"LHC26h3_nodelta",
141+
"LHC26a5a_gp_v12",
142+
"LHC26h3",
143+
"LHC26e8",
144+
"LHC26f3",
145+
"EP26d1",
146+
"LHC26c12",
147+
"LHC26b10",
148+
"LHC26a7"};
149+
150+
if (std::ranges::find(validTags, lpm_prod_tag) != std::end(validTags)) {
138151
// apply the SOR adjustment for this specific MC production
139-
const int nOrbitsCorrection = 2; // a shift (number of orbits) for correction
152+
int nOrbitsCorrection = 4; // a shift (number of orbits for correction) if orbitsPerTF=32 or 8
153+
if (orbitsPerTF == 6) {
154+
nOrbitsCorrection = 2; // correction if orbitsPerTF=6, e.g. Pb-Pb MC LHC26h3
155+
}
140156
orbitSOR += nOrbitsCorrection;
141157
sor += nOrbitsCorrection * o2::constants::lhc::LHCOrbitMUS * 1000;
142158
LOG(warn) << "AggregatedRunInfo.adjust_from_MC(): Applying SOR adjustment by " << nOrbitsCorrection << " orbits for MC production " << lpm_prod_tag << " and run number " << run_number;

0 commit comments

Comments
 (0)