Skip to content

Commit 37ae7ee

Browse files
authored
SOR adjustment for some MC productions with ITS ramp-up offset (#15897)
Adjust SOR for specific MC production 'LHC26h3' by applying a correction to orbitSOR and sor, which was produced before the fix for the ITS ramp-up offset AliceO2Group/O2DPG#2489 was implemented
1 parent d2496bd commit 37ae7ee

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎DataFormats/Parameters/src/AggregatedRunInfo.cxx‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ void AggregatedRunInfo::adjust_from_MC(o2::ccdb::CCDBManagerInstance& ccdb,
131131
} else {
132132
LOG(warn) << "No OrbitsPerTF information found for MC production " << lpm_prod_tag << " and run number " << run_number;
133133
}
134+
135+
// 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") {
138+
// apply the SOR adjustment for this specific MC production
139+
const int nOrbitsCorrection = 2; // a shift (number of orbits) for correction
140+
orbitSOR += nOrbitsCorrection;
141+
sor += nOrbitsCorrection * o2::constants::lhc::LHCOrbitMUS * 1000;
142+
LOG(warn) << "AggregatedRunInfo.adjust_from_MC(): Applying SOR adjustment by " << nOrbitsCorrection << " orbits for MC production " << lpm_prod_tag << " and run number " << run_number;
143+
}
134144
}
135145

136146
AggregatedRunInfo AggregatedRunInfo::buildAggregatedRunInfo(o2::ccdb::CCDBManagerInstance& ccdb, int run_number, std::string const& lpm_prod_tag, std::string const& username)

0 commit comments

Comments
 (0)