Skip to content

Commit

Permalink
Custom orbit shifts for runs <=LHC22m
Browse files Browse the repository at this point in the history
  • Loading branch information
ekryshen authored and shahor02 committed Oct 15, 2024
1 parent ce79769 commit 415a7b5
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions DataFormats/Parameters/src/AggregatedRunInfo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "DataFormatsParameters/GRPECSObject.h"
#include "CommonConstants/LHCConstants.h"
#include "Framework/Logger.h"
#include <map>

using namespace o2::parameters;

Expand Down Expand Up @@ -57,6 +58,80 @@ o2::parameters::AggregatedRunInfo AggregatedRunInfo::buildAggregatedRunInfo(int
// adjust to the nearest TF edge to satisfy condition (orbitSOR % nOrbitsPerTF == 0)
orbitSOR = (orbitSOR / nOrbitsPerTF + 1) * nOrbitsPerTF; // +1 to choose the safe boundary ... towards run middle
orbitEOR = orbitEOR / nOrbitsPerTF * nOrbitsPerTF;
// temporary map of orbit shifts for runs <=LHC22m (while waiting for complete run list from CTP/Calib/FirstRunOrbit)
std::map<int, int> mapOrbitShift;
mapOrbitShift[517619] = 109;
mapOrbitShift[517620] = 109;
mapOrbitShift[517623] = 109;
mapOrbitShift[517677] = 127;
mapOrbitShift[517678] = 127;
mapOrbitShift[517679] = 127;
mapOrbitShift[517685] = 127;
mapOrbitShift[517690] = 127;
mapOrbitShift[517693] = 127;
mapOrbitShift[517737] = 127;
mapOrbitShift[517748] = 127;
mapOrbitShift[517751] = 127;
mapOrbitShift[517753] = 127;
mapOrbitShift[517758] = 127;
mapOrbitShift[517767] = 127;
mapOrbitShift[518541] = 40;
mapOrbitShift[518543] = 92;
mapOrbitShift[518546] = 124;
mapOrbitShift[518547] = 47;
mapOrbitShift[519041] = 59;
mapOrbitShift[519043] = 59;
mapOrbitShift[519045] = 59;
mapOrbitShift[519497] = 86;
mapOrbitShift[519498] = 86;
mapOrbitShift[519499] = 86;
mapOrbitShift[519502] = 86;
mapOrbitShift[519503] = 86;
mapOrbitShift[519504] = 86;
mapOrbitShift[519506] = 86;
mapOrbitShift[519507] = 86;
mapOrbitShift[519903] = 62;
mapOrbitShift[519904] = 62;
mapOrbitShift[519905] = 62;
mapOrbitShift[519906] = 62;
mapOrbitShift[520259] = 76;
mapOrbitShift[520294] = 76;
mapOrbitShift[520471] = 46;
mapOrbitShift[520472] = 46;
mapOrbitShift[520473] = 46;
mapOrbitShift[523142] = 127;
mapOrbitShift[523148] = 127;
mapOrbitShift[523182] = 127;
mapOrbitShift[523186] = 127;
mapOrbitShift[523298] = 28;
mapOrbitShift[523306] = 28;
mapOrbitShift[523308] = 28;
mapOrbitShift[523309] = 28;
mapOrbitShift[523397] = 110;
mapOrbitShift[523399] = 110;
mapOrbitShift[523401] = 110;
mapOrbitShift[523441] = 117;
mapOrbitShift[523541] = 103;
mapOrbitShift[523559] = 103;
mapOrbitShift[523669] = 39;
mapOrbitShift[523671] = 39;
mapOrbitShift[523677] = 39;
mapOrbitShift[523728] = 113;
mapOrbitShift[523731] = 113;
mapOrbitShift[523779] = 41;
mapOrbitShift[523783] = 41;
mapOrbitShift[523786] = 41;
mapOrbitShift[523788] = 41;
mapOrbitShift[523789] = 41;
mapOrbitShift[523792] = 41;
mapOrbitShift[523797] = 41;
mapOrbitShift[523821] = 36;
mapOrbitShift[523897] = 38;
if (mapOrbitShift.find(runnumber) != mapOrbitShift.end()) {
orbitSOR += mapOrbitShift[runnumber];
orbitEOR += mapOrbitShift[runnumber];
}

if (ctfFirstRunOrbitVec && ctfFirstRunOrbitVec->size() >= 3) { // if we have CTP first run orbit available, we should use it
int64_t creation_timeIGNORED = (*ctfFirstRunOrbitVec)[0]; // do not use CTP start of run time!
int64_t ctp_run_number = (*ctfFirstRunOrbitVec)[1];
Expand Down

0 comments on commit 415a7b5

Please sign in to comment.