Skip to content

Commit 5e8a259

Browse files
committed
fix O2 linter
1 parent c88372b commit 5e8a259

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

PWGCF/FemtoUniverse/Core/FemtoUniverseParticleHisto.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -371,26 +371,26 @@ class FemtoUniverseParticleHisto
371371
if (mHistogramRegistry) {
372372
if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kTrack) {
373373
if (confPDG == mConfPDGCodePart[0]) {
374-
PDGbin = 0;
374+
binPDG = 0;
375375
} else if (confPDG == mConfPDGCodePart[1]) {
376-
PDGbin = 1;
376+
binPDG = 1;
377377
} else if (confPDG == mConfPDGCodePart[2]) {
378-
PDGbin = 2;
378+
binPDG = 2; // o2-linter: disable=pdg/explicit-code
379379
} else {
380-
PDGbin = 3;
380+
binPDG = 3; // o2-linter: disable=pdg/explicit-code
381381
}
382382
if (std::abs(pdgcode) == 211) {
383383
mHistogramRegistry->fill(histFolder + HIST("_MC/hMisidentification"),
384-
PDGbin, 0, part.pt());
384+
binPDG, 0, part.pt());
385385
} else if (std::abs(pdgcode) == 321) {
386386
mHistogramRegistry->fill(histFolder + HIST("_MC/hMisidentification"),
387-
PDGbin, 1, part.pt());
387+
binPDG, 1, part.pt());
388388
} else if (std::abs(pdgcode) == 2212) {
389389
mHistogramRegistry->fill(histFolder + HIST("_MC/hMisidentification"),
390-
PDGbin, 2, part.pt());
390+
binPDG, 2, part.pt());
391391
} else {
392392
mHistogramRegistry->fill(histFolder + HIST("_MC/hMisidentification"),
393-
PDGbin, 3, part.pt());
393+
binPDG, 3, part.pt());
394394
}
395395
}
396396
} else {
@@ -462,7 +462,7 @@ class FemtoUniverseParticleHisto
462462
static constexpr std::string_view mFolderSuffix[5] = {"", "_one", "_two", "_pos", "_neg"}; ///< Suffix for the folder name in case of analyses of pairs of the same kind (T-T, V-V, C-C) // o2-linter: disable=name/constexpr-constant
463463
int mConfPDGCodePart[4] = {211, 321, 2212, 9999}; ///< PDG code as per analysis
464464
int mPDG = 0; ///< PDG code of the selected particle
465-
int PDGbin = 0;
465+
int binPDG = 0;
466466
};
467467
} // namespace o2::analysis::femto_universe
468468

0 commit comments

Comments
 (0)