Skip to content

Commit e87aed6

Browse files
committed
extra convention fixes
1 parent a1d5ed9 commit e87aed6

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

PWGHF/HFC/TableProducer/correlatorDMesonPairs.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ struct HfCorrelatorDMesonPairs {
284284
hfMlResponse.init();
285285
}
286286

287-
auto vbins = (std::vector<double>)binsPt;
288-
constexpr int kNBinsSelStatus = 25;
289-
std::array<std::string, kNBinsSelStatus> labels;
287+
auto vbins = static_cast<std::vector<double>>(binsPt);
288+
constexpr int NBinsSelStatus = 25;
289+
std::array<std::string, NBinsSelStatus> labels;
290290

291291
labels[0] = "total # of Selected pairs";
292292
// Cand1 analysis
@@ -318,17 +318,17 @@ struct HfCorrelatorDMesonPairs {
318318
labels[23] = "# of True D+Dbar Pairs";
319319
labels[24] = "# of True Dbar+D Pairs";
320320

321-
AxisSpec const axisSelStatus = {kNBinsSelStatus, 0.5, kNBinsSelStatus + 0.5, ""};
321+
AxisSpec const axisSelStatus = {NBinsSelStatus, 0.5, NBinsSelStatus + 0.5, ""};
322322
registry.add("hSelectionStatus", "D Meson candidates;selection status;entries", HistType::kTH1F, {axisSelStatus});
323323
registry.add("hSelectionStatusMcGen", "D Meson candidates MC Gen;selection status;entries", HistType::kTH1F, {axisSelStatus});
324324

325-
for (int iBin = 0; iBin < kNBinsSelStatus; iBin++) {
325+
for (int iBin = 0; iBin < NBinsSelStatus; iBin++) {
326326
registry.get<TH1>(HIST("hSelectionStatus"))->GetXaxis()->SetBinLabel(iBin + 1, labels[iBin].data());
327327
registry.get<TH1>(HIST("hSelectionStatusMcGen"))->GetXaxis()->SetBinLabel(iBin + 1, labels[iBin].data());
328328
}
329329

330-
constexpr int kNBinsMatching = 8;
331-
std::array<std::string, kNBinsMatching> labelsMatching;
330+
constexpr int NBinsMatching = 8;
331+
std::array<std::string, NBinsMatching> labelsMatching;
332332
// Cand1 analysis
333333
labelsMatching[0] = "total # of Cand 1";
334334
labelsMatching[1] = "# of matched D Cand 1";
@@ -340,17 +340,17 @@ struct HfCorrelatorDMesonPairs {
340340
labelsMatching[6] = "# of matched Dbar Cand 2";
341341
labelsMatching[7] = "# of unmatched Cand 2";
342342

343-
AxisSpec const axisMatching = {kNBinsMatching, 0.5, kNBinsMatching + 0.5, ""};
343+
AxisSpec const axisMatching = {NBinsMatching, 0.5, NBinsMatching + 0.5, ""};
344344
registry.add("hMatchingMcRec", "D Meson candidates; MC matching status;entries", HistType::kTH1F, {axisMatching});
345345
registry.add("hMatchingMcGen", "D Meson candidates; MC matching status;entries", HistType::kTH1F, {axisMatching});
346346

347-
for (int iBin = 0; iBin < kNBinsMatching; iBin++) {
347+
for (int iBin = 0; iBin < NBinsMatching; iBin++) {
348348
registry.get<TH1>(HIST("hMatchingMcRec"))->GetXaxis()->SetBinLabel(iBin + 1, labelsMatching[iBin].data());
349349
registry.get<TH1>(HIST("hMatchingMcGen"))->GetXaxis()->SetBinLabel(iBin + 1, labelsMatching[iBin].data());
350350
}
351351

352-
constexpr int kNBinsSinglePart = 6;
353-
std::array<std::string, kNBinsSinglePart> labelsSinglePart;
352+
constexpr int NBinsSinglePart = 6;
353+
std::array<std::string, NBinsSinglePart> labelsSinglePart;
354354
// Candidate analysis
355355
labelsSinglePart[0] = "total # of Candidates";
356356
labelsSinglePart[1] = "# of selected D";
@@ -359,11 +359,11 @@ struct HfCorrelatorDMesonPairs {
359359
labelsSinglePart[4] = "# of true D";
360360
labelsSinglePart[5] = "# of true Dbar";
361361

362-
AxisSpec const axisSinglePart = {kNBinsSinglePart, 0.5, kNBinsSinglePart + 0.5, ""};
362+
AxisSpec const axisSinglePart = {NBinsSinglePart, 0.5, NBinsSinglePart + 0.5, ""};
363363
registry.add("hStatusSinglePart", "D Meson candidates; MC matching status;entries", HistType::kTH1F, {axisSinglePart});
364364
registry.add("hStatusSinglePartMcGen", "D Meson candidates; MC matching status;entries", HistType::kTH1F, {axisSinglePart});
365365

366-
for (int iBin = 0; iBin < kNBinsSinglePart; iBin++) {
366+
for (int iBin = 0; iBin < NBinsSinglePart; iBin++) {
367367
registry.get<TH1>(HIST("hStatusSinglePart"))->GetXaxis()->SetBinLabel(iBin + 1, labelsSinglePart[iBin].data());
368368
registry.get<TH1>(HIST("hStatusSinglePartMcGen"))->GetXaxis()->SetBinLabel(iBin + 1, labelsSinglePart[iBin].data());
369369
}

0 commit comments

Comments
 (0)