Skip to content

Commit 3000f69

Browse files
committed
Fix units of rate for mu
1 parent 2df18fa commit 3000f69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGMM/Lumi/Tasks/lumiStabilityPP.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ struct LumiStabilityPP {
112112
std::bitset<o2::constants::lhc::LHCMaxBunches> beamPatternA, beamPatternC;
113113
std::bitset<o2::constants::lhc::LHCMaxBunches> bcPatternA, bcPatternC, bcPatternB, bcPatternE, bcPatternL;
114114
const int nBCsPerOrbit = o2::constants::lhc::LHCMaxBunches;
115+
const double secToMin = ;
115116

116117
o2::framework::Service<o2::ccdb::BasicCCDBManager> ccdb;
117118
parameters::GRPLHCIFData* mLHCIFdata = nullptr;
@@ -190,7 +191,7 @@ struct LumiStabilityPP {
190191
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});
191192
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});
192193
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}});
194+
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}});
194195
}
195196
}
196197
}
@@ -430,7 +431,7 @@ struct LumiStabilityPP {
430431
histNBcsVsBcId[runNumber]->Fill(localBC);
431432
}
432433
// fill histogram for mu
433-
float deltaTime = timeStopSinceSOF - timeStartSinceSOF;
434+
float deltaTime = (timeStopSinceSOF - timeStartSinceSOF) * 60.; // convert back to seconds
434435
for (int iTrigger{0}; iTrigger < NTriggerAliases; ++iTrigger) {
435436
for (int iBCCategory{0}; iBCCategory < NBCCategories; ++iBCCategory) {
436437
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)