Skip to content

Commit 5a38aa8

Browse files
committed
Add filling scheme information to lumi stability task
1 parent afa75fc commit 5a38aa8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PWGMM/Lumi/Tasks/lumiStabilityPP.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ struct LumiStabilityPP {
115115
parameters::GRPLHCIFData* mLHCIFdata = nullptr;
116116
int runNumber{-1};
117117
ctpRateFetcher mRateFetcher;
118+
std::string injectionScheme;
118119

119120
HistogramRegistry registry{"registry"};
120121

@@ -125,6 +126,7 @@ struct LumiStabilityPP {
125126
std::map<int, std::shared_ptr<TH1>> histTfPerMin;
126127
std::map<int, std::shared_ptr<TH1>> histBcHasFT0;
127128
std::map<int, std::shared_ptr<TH1>> histBcHasFDD;
129+
std::map<int, std::shared_ptr<TH1>> histFillingScheme;
128130

129131
static constexpr std::string_view NBCsVsTimeHistNames[NTriggerAliases][NBCCategories] =
130132
{{"AllBCs/BC_A/nBCsVsTime", "AllBCs/BC_B/nBCsVsTime", "AllBCs/BC_C/nBCsVsTime", "AllBCs/BC_E/nBCsVsTime", "AllBCs/BC_L/nBCsVsTime", "AllBCs/BC_SL/nBCsVsTime"},
@@ -138,7 +140,7 @@ struct LumiStabilityPP {
138140
{"FT0CE/BC_A/nBCsVsBCID", "FT0CE/BC_B/nBCsVsBCID", "FT0CE/BC_C/nBCsVsBCID", "FT0CE/BC_E/nBCsVsBCID", "FT0CE/BC_L/nBCsVsBCID", "FT0CE/BC_SL/nBCsVsBCID"},
139141
{"FDD/BC_A/nBCsVsBCID", "FDD/BC_B/nBCsVsBCID", "FDD/BC_C/nBCsVsBCID", "FDD/BC_E/nBCsVsBCID", "FDD/BC_L/nBCsVsBCID", "FDD/BC_SL/nBCsVsBCID"}};
140142

141-
const AxisSpec timeAxis{1440, 0., 1440., "#bf{t-t_{SOF} (min)}"}, bcIDAxis{nBCsPerOrbit, -0.5, static_cast<float>(nBCsPerOrbit) - 0.5, "#bf{BC ID in orbit}"};
143+
const AxisSpec timeAxis{2880, 0., 2880., "#bf{t-t_{SOF} (min)}"}, bcIDAxis{nBCsPerOrbit, -0.5, static_cast<float>(nBCsPerOrbit) - 0.5, "#bf{BC ID in orbit}"};
142144

143145
int64_t bcSOR;
144146
int nBCsPerTF;
@@ -155,6 +157,7 @@ struct LumiStabilityPP {
155157
histNBcsVsTime[runNumber] = registry.add<TH1>(Form("%d/FT0Vtx_EvSel/nBCsVsTime", runNumber), "Time of TVX triggered BCs since the start of fill;;#bf{#it{N}_{BC}}", HistType::kTH1D, {timeAxis});
156158
histNBcsVsBcId[runNumber] = registry.add<TH1>(Form("%d/nBCsVsBCID", runNumber), "Time of TVX triggered BCs since the start of fill;#bf{t-t_{SOF} (min)};#bf{#it{N}_{BC}}", HistType::kTH1D, {bcIDAxis});
157159
histTfPerMin[runNumber] = registry.add<TH1>(Form("%d/TFsPerMinute", runNumber), "TFs seen in this minute (to account for failed jobs);#bf{t-t_{SOF} (min)};#bf{#it{N}_{TFs}}", HistType::kTH1D, {timeAxis});
160+
histFillingScheme[runNumber] = registry.add<TH1>(Form("%d/FillingScheme", runNumber), "Filling Scheme;Filling Scheme;", HistType::kTH1D, {{1, 0, 1}});
158161

159162
histBcHasFT0[runNumber] = registry.add<TH2>(Form("%d/FITQA/BCHasFT0", runNumber), "Does the BC have FT0?;BC has FT0;TVX triggered according to CTP;#bf{#it{N}_{BC}}", HistType::kTH2D, {{2, -0.5, 1.5}, {2, -0.5, 1.5}});
160163
histBcHasFT0[runNumber]->GetYaxis()->SetBinLabel(1, "No CTP trigger");
@@ -196,6 +199,8 @@ struct LumiStabilityPP {
196199
LOG(info) << "LHCIF data fetched for run " << runNumber << " and timestamp " << timeStamp;
197200
createHistograms();
198201

202+
histFillingScheme[runNumber]->Fill(mLHCIFdata->getInjectionScheme().c_str(), 0);
203+
199204
beamPatternA = mLHCIFdata->getBunchFilling().getBeamPattern(0);
200205
beamPatternC = mLHCIFdata->getBunchFilling().getBeamPattern(1);
201206
bcPatternA = beamPatternA & ~beamPatternC;

0 commit comments

Comments
 (0)