Skip to content

Commit d1907e3

Browse files
committed
a solution for histo acces
1 parent 6f8b4c2 commit d1907e3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

PWGMM/Lumi/Tasks/lumiStability.cxx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ struct LumiStabilityTask {
295295
}
296296
}
297297

298-
EventSelectionParams* par = ccdb->getForTimeStamp<EventSelectionParams>("EventSelection/EventSelectionParams", ts);
298+
/*EventSelectionParams* par = ccdb->getForTimeStamp<EventSelectionParams>("EventSelection/EventSelectionParams", ts);
299299
// access orbit-reset timestamp
300300
auto ctpx = ccdb->getForTimeStamp<std::vector<int64_t>>("CTP/Calib/OrbitReset", ts);
301301
int64_t tsOrbitReset = (*ctpx)[0]; // us
@@ -326,6 +326,7 @@ struct LumiStabilityTask {
326326
hTsValues->GetXaxis()->SetBinLabel(2, "tsEOR");
327327
hTsValues->SetBinContent(1, tsSOR / 1000); // seconds
328328
hTsValues->SetBinContent(2, tsEOR / 1000); // seconds
329+
std::cout << "<<<<<<<<<<<<<<<<<<<<<<<<< Orbits per second: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << nOrbits << std::endl;*/
329330
}
330331

331332
// create orbit-axis histograms on the fly with binning based on info from GRP if GRP is available
@@ -337,6 +338,8 @@ struct LumiStabilityTask {
337338
// histos.add("hOrbitFV0Central", "", kTH1F, {axisOrbits});
338339
}
339340

341+
342+
340343
for (auto const& fdd : fdds) {
341344
auto bc = fdd.bc_as<BCsWithTimestamps>();
342345
if (bc.timestamp() == 0) {
@@ -372,7 +375,7 @@ struct LumiStabilityTask {
372375
if (vertex) {
373376
histos.fill(HIST("FDD/bcVertexTrigger"), localBC);
374377
histos.fill(HIST("FDD/hCounts"), 1);
375-
// histos.fill(HIST("hOrbitFDDVertex"), orbit - minOrbit);
378+
histos.fill(HIST("hOrbitFDDVertex"), orbit - minOrbit);
376379

377380
if (bcPatternB[localBC]) {
378381
histos.fill(HIST("FDD/hTimeForRate"), (bc.timestamp() - tsSOR) * 1.e-3); // Converting ms into seconds
@@ -663,7 +666,7 @@ struct LumiStabilityTask {
663666
histos.fill(HIST("FT0/hCounts"), 0);
664667
if (vertex) {
665668
histos.fill(HIST("FT0/bcVertexTrigger"), localBC);
666-
// histos.fill(HIST("hOrbitFT0vertex"), orbit - minOrbit);
669+
histos.fill(HIST("hOrbitFT0vertex"), orbit - minOrbit);
667670

668671
if (bcPatternA[localBC]) {
669672
histos.fill(HIST("FT0/timeACbcA"), ft0.timeA(), ft0.timeC());
@@ -819,7 +822,7 @@ struct LumiStabilityTask {
819822
}
820823

821824
if (aCen) {
822-
// histos.fill(HIST("hOrbitFV0Central"), orbit - minOrbit);
825+
histos.fill(HIST("hOrbitFV0Central"), orbit - minOrbit);
823826
histos.fill(HIST("FV0/bcCenTrigger"), localBC);
824827

825828
if (bcPatternA[localBC]) {

0 commit comments

Comments
 (0)