Skip to content

Commit 035dee7

Browse files
committed
Add protection for rate fetcher for VdM scan 2023 runs
1 parent 282aaca commit 035dee7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

PWGMM/Lumi/Tasks/lumiStabilityPP.cxx

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

0 commit comments

Comments
 (0)