File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,17 +100,22 @@ struct JetShapeTask {
100100 template <typename T, typename U>
101101 bool isAcceptedJet (U const & jet)
102102 {
103- if (jetAreaFractionMin > -98.0 ) {
103+ static constexpr double kJetAreaFractonMinValue = -98.0
104+ if (jetAreaFractionMin > kJetAreaFractonMinValue ) {
104105 if (jet.area () < jetAreaFractionMin * o2::constants::math::PI * (jet.r () / 100.0 ) * (jet.r () / 100.0 )) {
105106 return false ;
106107 }
107108 if (jet.area () < o2::constants::math::PIHalf * (jet.r () / 100.0 ) * (jet.r () / 100.0 )) {
108109 return false ;
109110 }
110111 }
112+
113+ static constexpr double kLeadingConstituentPtMinThreshold = 5.0 ;
114+ static constexpr double kLeadingConstituentPtMaxThreshold = 9998.0 ;
115+
111116 bool checkConstituentPt = true ;
112- bool checkConstituentMinPt = (leadingConstituentPtMin > 5 );
113- bool checkConstituentMaxPt = (leadingConstituentPtMax < 9998.0 );
117+ bool checkConstituentMinPt = (leadingConstituentPtMin > kLeadingConstituentPtMinThreshold );
118+ bool checkConstituentMaxPt = (leadingConstituentPtMax < kLeadingConstituentPtMaxThreshold );
114119 if (!checkConstituentMinPt && !checkConstituentMaxPt) {
115120 checkConstituentPt = false ;
116121 }
You can’t perform that action at this time.
0 commit comments