Skip to content

Commit bc1cc43

Browse files
committed
Fix typo
1 parent 27b13d0 commit bc1cc43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGHF/D2H/TableProducer/dataCreatorJpsiHadReduced.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ struct HfDataCreatorJpsiHadReduced {
252252
}
253253

254254
// Set up the histogram registry
255-
constexpr int NumBinsEvents = 2 + aod::SelectionStep::RecoPID;
256-
std::string labels[NumBinsEvents];
255+
constexpr int NumBinsSelections = 2 + aod::SelectionStep::RecoPID;
256+
std::string labels[NumBinsSelections];
257257
labels[0] = "No selection";
258258
labels[1 + aod::SelectionStep::RecoSkims] = "Skims selection";
259259
labels[1 + aod::SelectionStep::RecoTopol] = "Skims & Topological selections";
260260
labels[1 + aod::SelectionStep::RecoPID] = "Skims & Topological & PID selections";
261-
static const AxisSpec axisSelections = {NumBinsEvents, 0.5, NumBinsEvents + 0.5, ""};
261+
static const AxisSpec axisSelections = {NumBinsSelections, 0.5, NumBinsSelections + 0.5, ""};
262262
registry.add("hSelectionsJpsi", "J/Psi selection;;#it{p}_{T} (GeV/#it{c})", {HistType::kTH2F, {axisSelections, {(std::vector<double>)binsPt, "#it{p}_{T} (GeV/#it{c})"}}});
263-
for (int iBin = 0; iBin < NumBinsEvents; ++iBin) {
263+
for (int iBin = 0; iBin < NumBinsSelections; ++iBin) {
264264
registry.get<TH2>(HIST("hSelectionsJpsi"))->GetXaxis()->SetBinLabel(iBin + 1, labels[iBin].data());
265265
}
266266

0 commit comments

Comments
 (0)