Skip to content

Commit b1df0b7

Browse files
committed
new changes, histo for rate calculus added
1 parent 42fd6f6 commit b1df0b7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

PWGMM/Lumi/Tasks/lumiStability.cxx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {
@@ -465,7 +466,10 @@ struct LumiStabilityTask {
465466
histos.fill(HIST("FDD/bcVertexTrigger"), localBC);
466467
histos.fill(HIST("FDD/hCounts"), 1);
467468
histos.fill(HIST("hOrbitFDDVertex"), orbit - minOrbit);
468-
histos.fill(HIST("FDD/hTimeForRate"), (bc.timestamp() - tsSOR) * 1000); // Converting ms into seconds
469+
// std::cout << "****************** timestamp - tsSOR: " << (bc.timestamp() - tsSOR) * 1000 << " ************************* " << std::endl;
470+
// std::cout << "****************** timestamp: " << (bc.timestamp()) * 1000 << " ************************* " << std::endl; //1660925892880000
471+
// std::cout << "****************** tsSOR: " << (tsSOR) * 1000 << " ************************* " << std::endl;
472+
histos.fill(HIST("FDD/hTimeForRate"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
469473

470474
if (bcPatternB[localBC]) {
471475
histos.fill(HIST("FDD/hTimeForRate"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
@@ -758,6 +762,7 @@ struct LumiStabilityTask {
758762
if (vertex) {
759763
histos.fill(HIST("FT0/bcVertexTrigger"), localBC);
760764
histos.fill(HIST("hOrbitFT0vertex"), orbit - minOrbit);
765+
histos.fill(HIST("FT0/hTimeForRate"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
761766

762767
if (bcPatternA[localBC]) {
763768
histos.fill(HIST("FT0/timeACbcA"), ft0.timeA(), ft0.timeC());

0 commit comments

Comments
 (0)