@@ -249,6 +249,8 @@ struct LumiStabilityTask {
249249 nOrbitsPerTF = 32 ; // 128 in 2022, 32 in 2023
250250 }
251251 int runNumber = bcs.iteratorAt (0 ).runNumber ();
252+ int64_t tsSOR = 0 ;
253+ int64_t tsEOR = 1 ;
252254 // std::string histName = "hOrbitFDDVertexCoinc_" + std::to_string(runNumber);
253255 if (runNumber != lastRunNumber && executionCounter < 1 ) {
254256 tsSOR = 0 ;
@@ -295,7 +297,7 @@ struct LumiStabilityTask {
295297 }
296298 }
297299
298- /* EventSelectionParams* par = ccdb->getForTimeStamp<EventSelectionParams>("EventSelection/EventSelectionParams", ts);
300+ EventSelectionParams* par = ccdb->getForTimeStamp <EventSelectionParams>(" EventSelection/EventSelectionParams" , ts);
299301 // access orbit-reset timestamp
300302 auto ctpx = ccdb->getForTimeStamp <std::vector<int64_t >>(" CTP/Calib/OrbitReset" , ts);
301303 int64_t tsOrbitReset = (*ctpx)[0 ]; // us
@@ -374,6 +376,7 @@ struct LumiStabilityTask {
374376 histos.fill (HIST (" FDD/bcVertexTrigger" ), localBC);
375377 histos.fill (HIST (" FDD/hCounts" ), 1 );
376378 histos.fill (HIST (" hOrbitFDDVertex" ), orbit - minOrbit);
379+ histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1000 ); // Converting ms into seconds
377380
378381 if (bcPatternB[localBC]) {
379382 histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
0 commit comments