Skip to content

Commit 8323a65

Browse files
EventFiltering[PWGHF]: Standardise scalers (#5561)
* EventFiltering[PWGHF]: Standardise scalers * remove the titles beyond second bin
1 parent 057549e commit 8323a65

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

EventFiltering/PWGHF/HFFilter.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ struct HfFilter { // Main struct for HF triggers
179179

180180
hProcessedEvents = registry.add<TH1>("fProcessedEvents", "HF - event filtered;;counts", HistType::kTH1F, {{kNtriggersHF + 2, -0.5, +kNtriggersHF + 1.5}});
181181
for (auto iBin = 0; iBin < kNtriggersHF + 2; ++iBin) {
182-
hProcessedEvents->GetXaxis()->SetBinLabel(iBin + 1, eventTitles[iBin].data());
182+
if (iBin < 2)
183+
hProcessedEvents->GetXaxis()->SetBinLabel(iBin + 1, eventTitles[iBin].data());
184+
else
185+
hProcessedEvents->GetXaxis()->SetBinLabel(iBin + 1, Form("o2::aod::filtering::%s::columnLabel()", hfTriggerNames[iBin - 2].data()));
183186
}
184187

185188
if (activateQA) {

EventFiltering/PWGHF/HFFilterHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ enum V0Species {
123123
static const std::array<std::string, kNCharmParticles> charmParticleNames{"D0", "Dplus", "Ds", "Lc", "Xic"};
124124
static const std::array<std::string, kNBeautyParticles> beautyParticleNames{"Bplus", "B0toDStar", "B0", "Bs", "Lb", "Xib"};
125125
static const std::array<int, kNCharmParticles> pdgCodesCharm{421, 411, 431, 4122, 4232};
126-
static const std::array<std::string, kNtriggersHF + 2> eventTitles = {"all", "rejected", "w/ high-#it{p}_{T} 2p charm", "w/ high-#it{p}_{T} 3p charm", "w/ 3p beauty", "w/ 4p beauty", "w/ 2p femto", "w/ 3p femto", "w/ 2p double charm", "w/ 3p double charm", "w/ 2p and 3p double charm", "w/ 2p + V0", "w/ 3p + V0", "w/ charm baryon"};
126+
static const std::array<std::string, 2> eventTitles = {"all", "rejected"};
127127
static const std::array<std::string, kNtriggersHF> hfTriggerNames{"kHighPt2P", "kHighPt3P", "kBeauty3P", "kBeauty4P", "kFemto2P", "kFemto3P", "kDoubleCharm2P", "kDoubleCharm3P", "kDoubleCharmMix", "kV0Charm2P", "kV0Charm3P", "kCharmBarToXiBach"};
128128
static const std::array<std::string, kNV0> v0Labels{"#gamma", "K_{S}^{0}", "#Lambda", "#bar{#Lambda}"};
129129
static const std::array<std::string, kNV0> v0Names{"Photon", "K0S", "Lambda", "AntiLambda"};

0 commit comments

Comments
 (0)