Skip to content

Commit 9002cef

Browse files
committed
Fixing shadowed variables
1 parent 7d04daf commit 9002cef

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

PWGDQ/Core/HistogramsLibrary.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,11 +1351,11 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
13511351
4.0, 5.0, 6.5, 8.0, 10.0, 12.0, 15.0, 20.0,
13521352
30.0, 40.0, 60.0, 80.0, 100.0};
13531353

1354-
std::array<double, 501> massBins{};
1354+
std::array<double, 501> alice3MassBins{};
13551355
for (int i = 0; i < 501; i++) {
1356-
massBins[i] = 0.01 * (i);
1356+
alice3MassBins[i] = 0.01 * (i);
13571357
}
1358-
hm->AddHistogram(histClass, "Mass_PtLong", "", false, 500, massBins.data(), VarManager::kMass, 20, pTBins.data(), VarManager::kPt);
1358+
hm->AddHistogram(histClass, "Mass_PtLong", "", false, 500, alice3MassBins.data(), VarManager::kMass, 20, pTBins.data(), VarManager::kPt);
13591359
}
13601360
if (subGroupStr.Contains("dielectron-polarization-he-pbpb")) {
13611361
std::array<int, 5> varsHEpbpb = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kCosThetaHE, VarManager::kPhiHE};
@@ -2769,7 +2769,7 @@ void o2::aod::dqhistograms::AddHistogramsFromJSON(HistogramManager* hm, const ch
27692769
nBins = new int[nDimensions];
27702770
xmin = new double[nDimensions];
27712771
xmax = new double[nDimensions];
2772-
int iDim = 0;
2772+
iDim = 0;
27732773
for (auto& v : hist.FindMember("nBins")->value.GetArray()) {
27742774
nBins[iDim++] = v.GetInt();
27752775
LOG(debug) << "nBins " << iDim << ": " << nBins[iDim - 1];
@@ -2785,7 +2785,7 @@ void o2::aod::dqhistograms::AddHistogramsFromJSON(HistogramManager* hm, const ch
27852785
LOG(debug) << "xmax " << iDim << ": " << xmax[iDim - 1];
27862786
}
27872787
} else {
2788-
int iDim = 0;
2788+
iDim = 0;
27892789
binLimits = new TArrayD[nDimensions];
27902790
for (auto& v : hist.FindMember("binLimits")->value.GetArray()) {
27912791
auto* lims = new double[v.GetArray().Size()];
@@ -2801,7 +2801,7 @@ void o2::aod::dqhistograms::AddHistogramsFromJSON(HistogramManager* hm, const ch
28012801
TString* axLabels = nullptr;
28022802
if (hist.HasMember("axLabels")) {
28032803
axLabels = new TString[hist.FindMember("axLabels")->value.GetArray().Size()];
2804-
int iDim = 0;
2804+
iDim = 0;
28052805
for (auto& v : hist.FindMember("axLabels")->value.GetArray()) {
28062806
axLabels[iDim++] = v.GetString();
28072807
}

0 commit comments

Comments
 (0)