Skip to content

Commit 5f4eef6

Browse files
author
Changhwan Choi
committed
Added o2-linter disable=
1 parent 4624d53 commit 5f4eef6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGJE/Tasks/bjetTaggingGnn.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,14 +518,14 @@ struct BjetTaggingGnn {
518518
template <typename AnyTracks, typename AnalysisJet>
519519
bool isAcceptedJet(AnalysisJet const& jet)
520520
{
521-
if (jetAreaFractionMin > -98.0) { // o2-linter: disable=magic-number
521+
if (jetAreaFractionMin > -98.0) { // o2-linter: disable=magic-number (arbitrary large negative number)
522522
if (jet.area() < jetAreaFractionMin * M_PI * (jet.r() / 100.0) * (jet.r() / 100.0)) {
523523
return false;
524524
}
525525
}
526526
bool checkConstituentPt = true;
527-
bool checkConstituentMinPt = (leadingConstituentPtMin > -98.0); // o2-linter: disable=magic-number
528-
bool checkConstituentMaxPt = (leadingConstituentPtMax < 9998.0); // o2-linter: disable=magic-number
527+
bool checkConstituentMinPt = (leadingConstituentPtMin > -98.0); // o2-linter: disable=magic-number (arbitrary large negative number)
528+
bool checkConstituentMaxPt = (leadingConstituentPtMax < 9998.0); // o2-linter: disable=magic-number (arbitrary large number)
529529
if (!checkConstituentMinPt && !checkConstituentMaxPt) {
530530
checkConstituentPt = false;
531531
}
@@ -700,7 +700,7 @@ struct BjetTaggingGnn {
700700
continue;
701701
auto p = pdg->GetParticle(mcparticle.pdgCode());
702702
if (p != nullptr) {
703-
if (std::abs(p->Charge()) >= 3) { // o2-linter: disable=magic-number
703+
if (std::abs(p->Charge()) >= 3) { // o2-linter: disable=magic-number (constant number of particles)
704704
if (std::abs(mcparticle.eta()) < 1)
705705
return true;
706706
}

0 commit comments

Comments
 (0)