Skip to content

Commit f4391ee

Browse files
committed
change the name of const variable and move them in function
1 parent 94fbaf6 commit f4391ee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PWGJE/Tasks/jetTaggerHFQA.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ struct JetTaggerHFQA {
113113
ConfigurableAxis binSigmaLxyz{"binSigmaLxyz", {100, 0., 0.1}, ""};
114114

115115
int numberOfJetFlavourSpecies = 6;
116-
float kUnsetJetAreaFraction = -98.0;
117-
float kUnsetConstituentPtMin = -98.0;
118-
float kUnsetConstituentPtMax = 9998.0;
119116
std::vector<int> eventSelectionBits;
120117
int trackSelection = -1;
121118

@@ -449,14 +446,17 @@ struct JetTaggerHFQA {
449446
template <typename T, typename U>
450447
bool isAcceptedJet(U const& jet)
451448
{
452-
if (jetAreaFractionMin > kUnsetJetAreaFraction) {
449+
const float noJetAreaFractionFilter = -98.0;
450+
const float noConstituentPtMinFilter = -98.0;
451+
const float noConstituentPtMaxFilter = 9998.0;
452+
if (jetAreaFractionMin > noJetAreaFractionFilter) {
453453
if (jet.area() < jetAreaFractionMin * o2::constants::math::PI * (jet.r() / 100.0) * (jet.r() / 100.0)) {
454454
return false;
455455
}
456456
}
457457
bool checkConstituentPt = true;
458-
bool checkConstituentMinPt = (leadingConstituentPtMin > kUnsetConstituentPtMin);
459-
bool checkConstituentMaxPt = (leadingConstituentPtMax < kUnsetConstituentPtMax);
458+
bool checkConstituentMinPt = (leadingConstituentPtMin > noConstituentPtMinFilter);
459+
bool checkConstituentMaxPt = (leadingConstituentPtMax < noConstituentPtMaxFilter);
460460
if (!checkConstituentMinPt && !checkConstituentMaxPt) {
461461
checkConstituentPt = false;
462462
}

0 commit comments

Comments
 (0)