Skip to content

Commit 4624d53

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

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

PWGJE/Tasks/bjetTaggingGnn.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ using namespace o2;
5353
using namespace o2::framework;
5454
using namespace o2::framework::expressions;
5555

56-
namespace BjetTaggingGnnEvtSel
56+
namespace bjet_tagging_gnn_evtsel
5757
{
5858
enum class EvtSelFlag : uint8_t {
5959
kNone = 0,
@@ -116,8 +116,8 @@ enum class EvtSel {
116116
INELgt0,
117117
INELgt0rec
118118
};
119-
}; // namespace BjetTaggingGnnEvtSel
120-
using namespace BjetTaggingGnnEvtSel;
119+
}; // namespace bjet_tagging_gnn_evtsel
120+
using namespace bjet_tagging_gnn_evtsel;
121121

122122
struct BjetTaggingGnn {
123123

@@ -518,14 +518,14 @@ struct BjetTaggingGnn {
518518
template <typename AnyTracks, typename AnalysisJet>
519519
bool isAcceptedJet(AnalysisJet const& jet)
520520
{
521-
if (jetAreaFractionMin > -98.0) {
521+
if (jetAreaFractionMin > -98.0) { // o2-linter: disable=magic-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);
528-
bool checkConstituentMaxPt = (leadingConstituentPtMax < 9998.0);
527+
bool checkConstituentMinPt = (leadingConstituentPtMin > -98.0); // o2-linter: disable=magic-number
528+
bool checkConstituentMaxPt = (leadingConstituentPtMax < 9998.0); // o2-linter: disable=magic-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) {
703+
if (std::abs(p->Charge()) >= 3) { // o2-linter: disable=magic-number
704704
if (std::abs(mcparticle.eta()) < 1)
705705
return true;
706706
}

0 commit comments

Comments
 (0)