From 40ad8befedc03c2877b2072a8272fbcec1ef74f4 Mon Sep 17 00:00:00 2001 From: Igor Altsybeev Date: Mon, 5 Oct 2026 14:56:13 +0200 Subject: [PATCH] SOR adjustment for some MC productions with ITS ramp-up offset 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 https://github.com/AliceO2Group/O2DPG/pull/2489 was implemented --- DataFormats/Parameters/src/AggregatedRunInfo.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/DataFormats/Parameters/src/AggregatedRunInfo.cxx b/DataFormats/Parameters/src/AggregatedRunInfo.cxx index 40402a33af68b..7040f43670f33 100644 --- a/DataFormats/Parameters/src/AggregatedRunInfo.cxx +++ b/DataFormats/Parameters/src/AggregatedRunInfo.cxx @@ -131,6 +131,16 @@ void AggregatedRunInfo::adjust_from_MC(o2::ccdb::CCDBManagerInstance& ccdb, } else { LOG(warn) << "No OrbitsPerTF information found for MC production " << lpm_prod_tag << " and run number " << run_number; } + + // adjust SOR for some MC productions, where the ITS "ramp-up shift" of SOR was not a multiple of NOrbitsPerTF. + // (some MC productions are affected, before the problem was fixed on Oct 2, 2026) + if (lpm_prod_tag == "LHC26h3") { + // apply the SOR adjustment for this specific MC production + const int nOrbitsCorrection = 2; // a shift (number of orbits) for correction + orbitSOR += nOrbitsCorrection; + sor += nOrbitsCorrection * o2::constants::lhc::LHCOrbitMUS * 1000; + LOG(warn) << "AggregatedRunInfo.adjust_from_MC(): Applying SOR adjustment by " << nOrbitsCorrection << " orbits for MC production " << lpm_prod_tag << " and run number " << run_number; + } } AggregatedRunInfo AggregatedRunInfo::buildAggregatedRunInfo(o2::ccdb::CCDBManagerInstance& ccdb, int run_number, std::string const& lpm_prod_tag, std::string const& username)