Skip to content

Commit bdaf24f

Browse files
committed
[PWGJE] fixes for phi exclusion of jet finder
1 parent 5baf289 commit bdaf24f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

PWGJE/JetFinders/jetFinder.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ struct JetFinderTask {
142142
jetFinder.phiMin = -1.0 * M_PI;
143143
jetFinder.phiMax = 2.0 * M_PI;
144144
}
145-
if (phiExclusionMin != 999.0 && phiExclusionMax != 999.0 && phiExclusionMin >= phiExclusionMax) {
146-
throw std::runtime_error("Invalid phi exclusion range: require phiExclusionMin < phiExclusionMax when both are set.");
147-
}
148-
if (phiExclusionMin < 999.0) {
145+
146+
if (phiExclusionMin < 998.0) {
149147
jetFinder.phiExclusionMin = phiExclusionMin;
150-
}
151-
if (phiExclusionMax > -999.0) {
152148
jetFinder.phiExclusionMax = phiExclusionMax;
149+
if (phiExclusionMin >= phiExclusionMax) {
150+
throw std::runtime_error("Invalid phi exclusion range: require phiExclusionMin < phiExclusionMax when both are set.");
151+
}
153152
}
153+
154154
jetFinder.jetPhiMin = jetPhiMin;
155155
jetFinder.jetPhiMax = jetPhiMax;
156156
if (jetPhiMin < -98.0) {

0 commit comments

Comments
 (0)