Skip to content

Commit a0bfdd9

Browse files
authored
[PWGLF] add new QC and SLBC histograms (#14222)
1 parent 0bb965f commit a0bfdd9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

PWGMM/Lumi/Tasks/lumiStabilityLightIons.cxx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ struct LumiStabilityLightIons {
6666
Configurable<bool> cfgDoBCL{"cfgDoBCL", false, "Create and fill histograms for leading BCs of type B"};
6767
Configurable<bool> cfgDoBCSL{"cfgDoBCSL", false, "Create and fill histograms for super-leading BCs (no preceding FT0/FDD activity) of type B"};
6868

69+
Configurable<bool> cfgRequireZDCTriggerForZDCQA{"cfgRequireZDCTriggerForZDCQA", false, "Require ZDC trigger (1ZNC or 1ZNA) for filling QA histograms"};
70+
Configurable<bool> cfgRequireTVXTriggerForZDCQA{"cfgRequireTVXTriggerForZDCQA", false, "Require FT0 vertex trigger for filling ZDC QA histograms"};
71+
6972
Configurable<bool> cfgRequireNoT0ForSLBC{"cfgRequireNoT0ForSLBC", false, "Require no T0 signal for definition of super leading BC (otherwise only no FDD)"};
7073

7174
Configurable<int> cfgEmptyBCsBeforeLeadingBC{"cfgEmptyBCsBeforeLeadingBC", 5, "Minimum number of empty BCs before a leading BC to identify it as such"};
@@ -138,7 +141,7 @@ struct LumiStabilityLightIons {
138141
mHistManager.add(Form("%s", std::string(NBCsVsBCIDHistNames[iTrigger][iBCCategory]).c_str()), "BC ID of triggered BCs;#bf{BC ID in orbit};#bf{#it{N}_{BC}}", HistType::kTH1D, {bcIDAxis});
139142
}
140143
}
141-
if (cfgDoBCSL && (iTrigger == kFT0Vtx || iTrigger == kFDD)) { // only for FT0Vtx and FDD fill super-leading BC histograms
144+
if (cfgDoBCSL && (iTrigger == kFT0Vtx || iTrigger == kFDD || iTrigger == kAllBCs)) { // only for FT0Vtx and FDD fill super-leading BC histograms
142145
mHistManager.add(Form("%s", std::string(NBCsVsTimeHistNames[iTrigger][5]).c_str()), "Time of triggered BCs since the start of fill;#bf{t-t_{SOF} (min)};#bf{#it{N}_{BC}}", HistType::kTH1D, {timeAxis});
143146
mHistManager.add(Form("%s", std::string(NBCsVsBCIDHistNames[iTrigger][5]).c_str()), "BC ID of triggered BCs;#bf{BC ID in orbit};#bf{#it{N}_{BC}}", HistType::kTH1D, {bcIDAxis});
144147
}
@@ -250,6 +253,10 @@ struct LumiStabilityLightIons {
250253
for (const auto& bc : bcs) {
251254

252255
std::bitset<64> ctpInputMask(bc.inputMask());
256+
if (cfgRequireTVXTriggerForZDCQA && !(ctpInputMask.test(2)))
257+
continue;
258+
if (cfgRequireZDCTriggerForZDCQA && !(ctpInputMask.test(25)))
259+
continue;
253260

254261
bool zdcHit = !bc.has_zdc() ? 0 : ((bc.zdc().energyCommonZNC() > -1 && std::abs(bc.zdc().timeZNC()) < 1E5) ? 1 : 0);
255262
mHistManager.fill(HIST("ZDCQA/BCHasZDC"), zdcHit, ctpInputMask.test(25) ? 1 : 0);
@@ -311,6 +318,8 @@ struct LumiStabilityLightIons {
311318
if (!bcPatternB[localBC])
312319
continue;
313320

321+
fillHistograms<kAllBCs, kBCSL>(timeSinceSOF, localBC);
322+
314323
if (ctpInputMask.test(2))
315324
fillHistograms<kFT0Vtx, kBCSL>(timeSinceSOF, localBC);
316325
if (ctpInputMask.test(15))

0 commit comments

Comments
 (0)