@@ -249,8 +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 ;
252+ int64_t tsSOR;
253+ int64_t tsEOR;
254254 // std::string histName = "hOrbitFDDVertexCoinc_" + std::to_string(runNumber);
255255 if (runNumber != lastRunNumber && executionCounter < 1 ) {
256256 tsSOR = 0 ;
@@ -339,6 +339,7 @@ struct LumiStabilityTask {
339339 // histos.add("hOrbitFT0vertex", "", kTH1F, {axisOrbits});
340340 // histos.add("hOrbitFV0Central", "", kTH1F, {axisOrbits});
341341 }
342+ // std::cout << "****************** tsSOR: " << (tsSOR) * 1.e-3 << " ************************* " << std::endl;
342343
343344 for (auto const & fdd : fdds) {
344345 auto bc = fdd.bc_as <BCsWithTimestamps>();
@@ -376,7 +377,10 @@ struct LumiStabilityTask {
376377 histos.fill (HIST (" FDD/bcVertexTrigger" ), localBC);
377378 histos.fill (HIST (" FDD/hCounts" ), 1 );
378379 histos.fill (HIST (" hOrbitFDDVertex" ), orbit - minOrbit);
379- histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1000 ); // Converting ms into seconds
380+ // std::cout << "****************** timestamp - tsSOR: " << (bc.timestamp() - tsSOR) * 1000 << " ************************* " << std::endl;
381+ // std::cout << "****************** timestamp: " << (bc.timestamp()) * 1000 << " ************************* " << std::endl; //1660925892880000
382+ // std::cout << "****************** tsSOR: " << (tsSOR) * 1000 << " ************************* " << std::endl;
383+ histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
380384
381385 if (bcPatternB[localBC]) {
382386 histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
@@ -668,6 +672,7 @@ struct LumiStabilityTask {
668672 if (vertex) {
669673 histos.fill (HIST (" FT0/bcVertexTrigger" ), localBC);
670674 histos.fill (HIST (" hOrbitFT0vertex" ), orbit - minOrbit);
675+ histos.fill (HIST (" FT0/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
671676
672677 if (bcPatternA[localBC]) {
673678 histos.fill (HIST (" FT0/timeACbcA" ), ft0.timeA (), ft0.timeC ());
0 commit comments