Skip to content

Commit 169476c

Browse files
NucleiTask - Fix unused variable bug
1 parent 5079132 commit 169476c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

PWGLF/Tasks/Nuspex/lfNucleiBATask.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ struct lfNucleiBATask {
271271

272272
static constexpr int NumMotherList = sizeof(PdgMotherList) / sizeof(PdgMotherList[0]);
273273

274-
static constexpr const char* kMotherNames[NumMotherList] = {"#pi^{+}", "K^{+}", "K^{0}_{S}", "n", "p", "#Lambda", "d", "He3", "t", "^{3}_{#Lambda}H", "He4"};
274+
static constexpr const char* MotherNames[NumMotherList] = {"#pi^{+}", "K^{+}", "K^{0}_{S}", "n", "p", "#Lambda", "d", "He3", "t", "^{3}_{#Lambda}H", "He4"};
275275

276-
static constexpr int kMaxNumMom = 2; // X: 0..4, overflow=5
276+
static constexpr int MaxNumMom = 2; // X: 0..4, overflow=5
277277

278278
template <typename TrackType>
279279
float averageClusterSizeTrk(const TrackType& track)
@@ -1092,7 +1092,7 @@ struct lfNucleiBATask {
10921092
ayPdgPr->SetBinLabel(1, "undef.");
10931093
ayPdgPr->SetBinLabel(2, "other");
10941094
for (int i = 0; i < NumMotherList; i++) {
1095-
ayPdgPr->SetBinLabel(i + 3, kMotherNames[i]);
1095+
ayPdgPr->SetBinLabel(i + 3, MotherNames[i]);
10961096
}
10971097

10981098
histos.add<TH2>("tracks/proton/dca/before/hDCAxyVsPtantiProtonTrue", "DCAxy vs Pt (#bar{p}); #it{p}_{T} (GeV/#it{c}); DCAxy (cm)", HistType::kTH2F, {{ptAxis}, {dcaxyAxis}});
@@ -1164,7 +1164,7 @@ struct lfNucleiBATask {
11641164
ayPdgDe->SetBinLabel(1, "undef.");
11651165
ayPdgDe->SetBinLabel(2, "other");
11661166
for (int i = 0; i < NumMotherList; i++) {
1167-
ayPdgDe->SetBinLabel(i + 3, kMotherNames[i]);
1167+
ayPdgDe->SetBinLabel(i + 3, MotherNames[i]);
11681168
}
11691169

11701170
histos.add<TH2>("tracks/deuteron/dca/before/hDCAxyVsPtantiDeuteronTrue", "DCAxy vs Pt (#bar{d}); #it{p}_{T} (GeV/#it{c}); DCAxy (cm)", HistType::kTH2F, {{ptAxis}, {dcaxyAxis}});
@@ -1339,7 +1339,7 @@ struct lfNucleiBATask {
13391339
ayPdgHe->SetBinLabel(1, "undef.");
13401340
ayPdgHe->SetBinLabel(2, "other");
13411341
for (int i = 0; i < NumMotherList; i++) {
1342-
ayPdgHe->SetBinLabel(i + 3, kMotherNames[i]);
1342+
ayPdgHe->SetBinLabel(i + 3, MotherNames[i]);
13431343
}
13441344

13451345
histos.add<TH2>("tracks/helium/dca/before/hDCAxyVsPtantiHeliumTrue", "DCAxy vs Pt (#bar{He}); #it{p}_{T} (GeV/#it{c}); DCAxy (cm)", HistType::kTH2F, {{ptZHeAxis}, {dcaxyAxis}});
@@ -3369,8 +3369,8 @@ struct lfNucleiBATask {
33693369
[[maybe_unused]] int firstMotherId = -1;
33703370
[[maybe_unused]] int firstMotherPdg = -1;
33713371
[[maybe_unused]] float firstMotherPt = -1.f;
3372-
[[maybe_unused]] int pdgMomList[kMaxNumMom];
3373-
[[maybe_unused]] float ptMomList[kMaxNumMom];
3372+
[[maybe_unused]] int pdgMomList[MaxNumMom];
3373+
[[maybe_unused]] float ptMomList[MaxNumMom];
33743374
[[maybe_unused]] int nSaved = 0;
33753375

33763376
if constexpr (IsFilteredData) {
@@ -3412,7 +3412,7 @@ struct lfNucleiBATask {
34123412
firstMotherPdg = pdgMom;
34133413
firstMotherPt = ptMom;
34143414
}
3415-
if (nSaved < kMaxNumMom) {
3415+
if (nSaved < MaxNumMom) {
34163416
pdgMomList[nSaved] = pdgMom;
34173417
ptMomList[nSaved] = ptMom;
34183418
nSaved++;

0 commit comments

Comments
 (0)