Skip to content

Commit 63b6f97

Browse files
committed
Remove unsafe reserve in charm FemtoDream producers
1 parent 9a7b3f2 commit 63b6f97

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGHF/HFC/TableProducer/producerCharmHadronsTrackFemtoDream.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,18 +253,18 @@ struct HfProducerCharmHadronsTrackFemtoDream {
253253
trackRegistry.add("AnalysisQA/CutCounter", "; Bit; Counter", kTH1F, {{cutBits + 1, -0.5, cutBits + 0.5}});
254254

255255
// event QA histograms
256-
constexpr int kEventTypes = PairSelected + 1;
257-
std::string labels[kEventTypes];
256+
constexpr int EventTypes = PairSelected + 1;
257+
std::string labels[EventTypes];
258258
labels[Event::All] = "All events";
259259
labels[Event::RejEveSel] = "rejected by event selection";
260260
labels[Event::RejNoTracksAndCharm] = "rejected by no tracks and charm";
261261
labels[Event::TrackSelected] = "with tracks ";
262262
labels[Event::CharmSelected] = "with charm hadrons ";
263263
labels[Event::PairSelected] = "with pairs";
264264

265-
static const AxisSpec axisEvents = {kEventTypes, 0.5, kEventTypes + 0.5, ""};
265+
static const AxisSpec axisEvents = {EventTypes, 0.5, EventTypes + 0.5, ""};
266266
qaRegistry.add("hEventQA", "Events;;entries", HistType::kTH1F, {axisEvents});
267-
for (int iBin = 0; iBin < kEventTypes; iBin++) {
267+
for (int iBin = 0; iBin < EventTypes; iBin++) {
268268
qaRegistry.get<TH1>(HIST("hEventQA"))->GetXaxis()->SetBinLabel(iBin + 1, labels[iBin].data());
269269
}
270270

0 commit comments

Comments
 (0)