@@ -270,8 +270,8 @@ struct LumiStabilityTask {
270270 nOrbitsPerTF = 32 ; // 128 in 2022, 32 in 2023
271271 }
272272 int runNumber = bcs.iteratorAt (0 ).runNumber ();
273- int64_t tsSOR = 0 ;
274- int64_t tsEOR = 1 ;
273+ int64_t tsSOR;
274+ int64_t tsEOR;
275275 // std::string histName = "hOrbitFDDVertexCoinc_" + std::to_string(runNumber);
276276 if (runNumber != lastRunNumber && executionCounter < 1 ) {
277277 tsSOR = 0 ;
@@ -358,6 +358,7 @@ struct LumiStabilityTask {
358358 // histos.add("hOrbitFT0vertex", "", kTH1F, {axisOrbits});
359359 // histos.add("hOrbitFV0Central", "", kTH1F, {axisOrbits});
360360 }
361+ // std::cout << "****************** tsSOR: " << (tsSOR) * 1.e-3 << " ************************* " << std::endl;
361362
362363 for (auto const & bc : bcs) {
363364 if (bc.timestamp () == 0 ) {
@@ -460,7 +461,10 @@ struct LumiStabilityTask {
460461 histos.fill (HIST (" FDD/bcVertexTrigger" ), localBC);
461462 histos.fill (HIST (" FDD/hCounts" ), 1 );
462463 histos.fill (HIST (" hOrbitFDDVertex" ), orbit - minOrbit);
463- histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1000 ); // Converting ms into seconds
464+ // std::cout << "****************** timestamp - tsSOR: " << (bc.timestamp() - tsSOR) * 1000 << " ************************* " << std::endl;
465+ // std::cout << "****************** timestamp: " << (bc.timestamp()) * 1000 << " ************************* " << std::endl; //1660925892880000
466+ // std::cout << "****************** tsSOR: " << (tsSOR) * 1000 << " ************************* " << std::endl;
467+ histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
464468
465469 if (bcPatternB[localBC]) {
466470 histos.fill (HIST (" FDD/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
@@ -753,6 +757,7 @@ struct LumiStabilityTask {
753757 if (vertex) {
754758 histos.fill (HIST (" FT0/bcVertexTrigger" ), localBC);
755759 histos.fill (HIST (" hOrbitFT0vertex" ), orbit - minOrbit);
760+ histos.fill (HIST (" FT0/hTimeForRate" ), (bc.timestamp () - tsSOR) * 1 .e -3 ); // Converting ms into seconds
756761
757762 if (bcPatternA[localBC]) {
758763 histos.fill (HIST (" FT0/timeACbcA" ), ft0.timeA (), ft0.timeC ());
0 commit comments