Skip to content

Commit 0b9a2bc

Browse files
committed
Feat: fix linter warnings
1 parent a556d6b commit 0b9a2bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PWGCF/Femto/Core/closePairRejection.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ struct ConfCprTrrackCascade : o2::framework::ConfigurableGroup {
109109
};
110110

111111
// tpc radii for computing phistar
112-
constexpr int kNradii = 9;
113-
constexpr std::array<float, kNradii> kTpcRadius = {85., 105., 125., 145., 165., 185., 205., 225., 245.}; // in cm
112+
constexpr int Nradii = 9;
113+
constexpr std::array<float, Nradii> TpcRadii = {85., 105., 125., 145., 165., 185., 205., 225., 245.}; // in cm
114114

115115
// directory names
116116
constexpr char PrefixTrackTrackSe[] = "CPR_TrackTrack/SE/";
@@ -222,9 +222,9 @@ class CloseTrackRejection
222222
mDphistar.fill(0.f);
223223

224224
mDeta = track1.eta() - track2.eta();
225-
for (size_t i = 0; i < kTpcRadius.size(); i++) {
226-
auto phistar1 = utils::dphistar(mMagField, kTpcRadius[i], mChargeAbsTrack1 * track1.signedPt(), track1.phi());
227-
auto phistar2 = utils::dphistar(mMagField, kTpcRadius[i], mChargeAbsTrack2 * track2.signedPt(), track2.phi());
225+
for (size_t i = 0; i < TpcRadii.size(); i++) {
226+
auto phistar1 = utils::dphistar(mMagField, TpcRadii[i], mChargeAbsTrack1 * track1.signedPt(), track1.phi());
227+
auto phistar2 = utils::dphistar(mMagField, TpcRadii[i], mChargeAbsTrack2 * track2.signedPt(), track2.phi());
228228
if (phistar1 && phistar2) {
229229
// if the calculation for one phistar fails, keep the default value, which is 0
230230
// this makes it more likelier for the pair to be rejected sind the averave will be biased towards lower values
@@ -273,7 +273,7 @@ class CloseTrackRejection
273273

274274
float mAverageDphistar = 0.f;
275275
float mDeta = 0.f;
276-
std::array<float, kNradii> mDphistar = {0.f};
276+
std::array<float, Nradii> mDphistar = {0.f};
277277

278278
bool mPlotOnly = true;
279279
};

0 commit comments

Comments
 (0)