Skip to content

Commit 92bf261

Browse files
fgrosaalibuild
andauthored
[PWGLF,PWGMM] Fix units of rate for mu (#14976)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 3666fcf commit 92bf261

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

PWGMM/Lumi/Tasks/lumiStabilityPP.cxx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ struct LumiStabilityPP {
190190
histBcVsTime[iTrigger][iBCCategory][runNumber] = registry.add<TH1>(Form("%d/%s", runNumber, std::string(NBCsVsTimeHistNames[iTrigger][iBCCategory]).c_str()), "Time of triggered BCs since the start of fill;#bf{t-t_{SOF} (min)};#bf{#it{N}_{BC}}", HistType::kTH1D, {timeAxis});
191191
histBcVsBcId[iTrigger][iBCCategory][runNumber] = registry.add<TH1>(Form("%d/%s", runNumber, std::string(NBCsVsBCIDHistNames[iTrigger][iBCCategory]).c_str()), "BC ID of triggered BCs;#bf{BC ID in orbit};#bf{#it{N}_{BC}}", HistType::kTH1D, {bcIDAxis});
192192
if (iBCCategory != BCSL) { // we do not do it for superleading because it is not easy to define the number of inspected BCs
193-
histMu[iTrigger][iBCCategory][runNumber] = registry.add<TH1>(Form("%d/%s", runNumber, std::string(MuHistNames[iTrigger][iBCCategory]).c_str()), "pile-up #mu of different triggers;#mu;counts", HistType::kTH1D, {{500, 0., 0.1}});
193+
histMu[iTrigger][iBCCategory][runNumber] = registry.add<TH1>(Form("%d/%s", runNumber, std::string(MuHistNames[iTrigger][iBCCategory]).c_str()), "pile-up #mu of different triggers;#mu;counts", HistType::kTH1D, {{1000, 0., 0.2}});
194194
}
195195
}
196196
}
@@ -329,7 +329,13 @@ struct LumiStabilityPP {
329329

330330
if (isTriggerTVX) {
331331
histNBcsVsTime[runNumber]->Fill(timeSinceSOF);
332-
histInteractionRate[runNumber]->Fill(mRateFetcher.fetch(ccdb.service, bc.timestamp(), bc.runNumber(), std::string("T0VTX"), true) * 1.e-3); // kHz
332+
double rate{-1.};
333+
int runVdM23Start{542757};
334+
int runVdM23Stop{542768};
335+
if (runNumber < runVdM23Start && runNumber > runVdM23Stop) {
336+
rate = mRateFetcher.fetch(ccdb.service, bc.timestamp(), bc.runNumber(), std::string("T0VTX"), true) * 1.e-3; // kHz
337+
}
338+
histInteractionRate[runNumber]->Fill(rate);
333339
}
334340

335341
int64_t globalBC = bc.globalBC();
@@ -430,7 +436,7 @@ struct LumiStabilityPP {
430436
histNBcsVsBcId[runNumber]->Fill(localBC);
431437
}
432438
// fill histogram for mu
433-
float deltaTime = timeStopSinceSOF - timeStartSinceSOF;
439+
float deltaTime = (timeStopSinceSOF - timeStartSinceSOF) * 60.; // convert back to seconds
434440
for (int iTrigger{0}; iTrigger < NTriggerAliases; ++iTrigger) {
435441
for (int iBCCategory{0}; iBCCategory < NBCCategories; ++iBCCategory) {
436442
if (iBCCategory == BCSL) { // we do not do it for superleading because it is not easy to define the number of inspected BCs

0 commit comments

Comments
 (0)