Skip to content

Commit c442a7f

Browse files
committed
new changes,
1 parent abee8a4 commit c442a7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PWGMM/Lumi/Tasks/lumiStability.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)