Skip to content

Commit ad615e7

Browse files
committed
fix o2linter
1 parent 7a27f7b commit ad615e7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PWGLF/Tasks/QC/lfITSTPCMatchingSecondaryTracksQA.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ struct LfITSTPCMatchingSecondaryTracksQA {
218218
bool passedProtonSelection(const protonTrack& track)
219219
{
220220
// Switch between TPC and TOF analysis
221-
static constexpr double ptThreshold = 0.6;
221+
static constexpr double PtThreshold = 0.6;
222222

223223
// TPC Selection
224-
if (track.pt() < ptThreshold && (track.tpcNSigmaPr() < nsigmaTPCmin || track.tpcNSigmaPr() > nsigmaTPCmax))
224+
if (track.pt() < PtThreshold && (track.tpcNSigmaPr() < nsigmaTPCmin || track.tpcNSigmaPr() > nsigmaTPCmax))
225225
return false;
226226

227227
// TOF Selection
228-
if (track.pt() > ptThreshold && (track.tpcNSigmaPr() < nsigmaTPCmin || track.tpcNSigmaPr() > nsigmaTPCmax || track.tofNSigmaPr() < nsigmaTOFmin || track.tofNSigmaPr() > nsigmaTOFmax))
228+
if (track.pt() > PtThreshold && (track.tpcNSigmaPr() < nsigmaTPCmin || track.tpcNSigmaPr() > nsigmaTPCmax || track.tofNSigmaPr() < nsigmaTOFmin || track.tofNSigmaPr() > nsigmaTOFmax))
229229
return false;
230230
return true;
231231
}
@@ -239,11 +239,11 @@ struct LfITSTPCMatchingSecondaryTracksQA {
239239
return false;
240240
if (track.itsChi2NCl() > maxChi2ITS)
241241
return false;
242-
static constexpr int nItsLayers = 7;
242+
static constexpr int NitsLayers = 7;
243243

244244
auto requiredItsHit = static_cast<std::vector<float>>(requiredHit);
245245
if (requireItsHits) {
246-
for (int i = 0; i < nItsLayers; i++) {
246+
for (int i = 0; i < NitsLayers; i++) {
247247
if (requiredItsHit[i] > 0 && !hasHitOnITSlayer(track.itsClusterMap(), i)) {
248248
return false;
249249
}
@@ -263,14 +263,14 @@ struct LfITSTPCMatchingSecondaryTracksQA {
263263
if (track.itsChi2NCl() > maxChi2ITS)
264264
return false;
265265
*/
266-
static constexpr int nItsLayers = 7;
266+
static constexpr int NitsLayers = 7;
267267

268268
if (track.itsNCls() < minITSnCls)
269269
return false;
270270

271271
auto requiredItsHit = static_cast<std::vector<float>>(requiredHit);
272272
if (requireItsHits) {
273-
for (int i = 0; i < nItsLayers; i++) {
273+
for (int i = 0; i < NitsLayers; i++) {
274274
if (requiredItsHit[i] > 0 && !hasHitOnITSlayer(track.itsClusterMap(), i)) {
275275
return false;
276276
}

0 commit comments

Comments
 (0)