Skip to content

Commit 27847a8

Browse files
committed
Add super leading and fill time information
1 parent 834f881 commit 27847a8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

PWGMM/Lumi/Tasks/lumiStabilityPP.cxx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ struct LumiStabilityPP {
127127
std::map<int, std::shared_ptr<TH1>> histBcHasFT0;
128128
std::map<int, std::shared_ptr<TH1>> histBcHasFDD;
129129
std::map<int, std::shared_ptr<TH1>> histFillingScheme;
130+
std::map<int, std::shared_ptr<TH1>> histFillTime;
130131

131132
static constexpr std::string_view NBCsVsTimeHistNames[NTriggerAliases][NBCCategories] =
132133
{{"AllBCs/BC_A/nBCsVsTime", "AllBCs/BC_B/nBCsVsTime", "AllBCs/BC_C/nBCsVsTime", "AllBCs/BC_E/nBCsVsTime", "AllBCs/BC_L/nBCsVsTime", "AllBCs/BC_SL/nBCsVsTime"},
@@ -158,6 +159,7 @@ struct LumiStabilityPP {
158159
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});
159160
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});
160161
histFillingScheme[runNumber] = registry.add<TH1>(Form("%d/FillingScheme", runNumber), "Filling Scheme;Filling Scheme;", HistType::kTH1D, {{1, 0, 1}});
162+
histFillTime[runNumber] = registry.add<TH1>(Form("%d/FillTime", runNumber), "Fill time;Fill time;", HistType::kTH1D, {{1, 0, 1}});
161163

162164
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}});
163165
histBcHasFT0[runNumber]->GetYaxis()->SetBinLabel(1, "No CTP trigger");
@@ -200,6 +202,7 @@ struct LumiStabilityPP {
200202
createHistograms();
201203

202204
histFillingScheme[runNumber]->Fill(mLHCIFdata->getInjectionScheme().c_str(), 0);
205+
histFillTime[runNumber]->Fill(0.5, mLHCIFdata->getFillNumberTime());
203206

204207
beamPatternA = mLHCIFdata->getBunchFilling().getBeamPattern(0);
205208
beamPatternC = mLHCIFdata->getBunchFilling().getBeamPattern(1);
@@ -302,8 +305,8 @@ struct LumiStabilityPP {
302305
histBcHasFDD[runNumber]->Fill(bc.has_fdd(), ctpInputMask.test(15));
303306

304307
for (int iTrigger{0}; iTrigger < NTriggerAliases; ++iTrigger) {
305-
for (int iBCCategory{0}; iBCCategory < NBCCategories; ++iBCCategory) { // Don't do SL BCs here
306-
if ((iBCCategory == BCA && doBCA) || (iBCCategory == BCB && doBCB) || (iBCCategory == BCC && doBCC) || (iBCCategory == BCE && doBCE) || (iBCCategory == BCL && doBCL)) {
308+
for (int iBCCategory{0}; iBCCategory < NBCCategories; ++iBCCategory) {
309+
if ((iBCCategory == BCA && doBCA) || (iBCCategory == BCB && doBCB) || (iBCCategory == BCC && doBCC) || (iBCCategory == BCE && doBCE) || (iBCCategory == BCL && doBCL) || (iBCCategory == BCSL && doBCSL)) {
307310
if (iTrigger == AllBCs) {
308311
if (iBCCategory == BCA && bcPatternA[localBC])
309312
fillHistograms<AllBCs, BCA>(timeSinceSOF, localBC);
@@ -343,6 +346,8 @@ struct LumiStabilityPP {
343346
fillHistograms<FT0CE, BCE>(timeSinceSOF, localBC);
344347
if (iBCCategory == BCL && bcPatternL[localBC])
345348
fillHistograms<FT0CE, BCL>(timeSinceSOF, localBC);
349+
if (iBCCategory == BCSL && isSuperLeadingBc)
350+
fillHistograms<FT0CE, BCSL>(timeSinceSOF, localBC);
346351
}
347352
if (iTrigger == FDD && ctpInputMask.test(15)) {
348353
if (iBCCategory == BCA && bcPatternA[localBC])

0 commit comments

Comments
 (0)