Skip to content

Commit e15728e

Browse files
Fix histgrams for PID
1 parent 759139e commit e15728e

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

PWGJE/Tasks/jetShape.cxx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)