Skip to content

Commit cb528f2

Browse files
committed
[PWGJE] phi exclusion less confusing defaults
1 parent 30aba7f commit cb528f2

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

PWGJE/JetFinders/jetFinder.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ struct JetFinderTask {
7272
o2::framework::Configurable<float> trackEtaMax{"trackEtaMax", 0.9, "maximum track eta"};
7373
o2::framework::Configurable<float> trackPhiMin{"trackPhiMin", -999, "minimum track phi"};
7474
o2::framework::Configurable<float> trackPhiMax{"trackPhiMax", 999, "maximum track phi"};
75-
o2::framework::Configurable<float> phiExclusionMin{"phiExclusionMin", 999, "minimum of phi exclusion region which is applied for tracks and for jets (jetR is added to the exclusion region for jets)"};
76-
o2::framework::Configurable<float> phiExclusionMax{"phiExclusionMax", -999, "maximum of phi exclusion region which is applied for tracks and for jets (jetR is added to the exclusion region for jets)"};
75+
o2::framework::Configurable<float> phiExclusionMin{"phiExclusionMin", -999, "minimum of phi exclusion region which is applied for tracks and for jets (jetR is added to the exclusion region for jets)"};
76+
o2::framework::Configurable<float> phiExclusionMax{"phiExclusionMax", 999, "maximum of phi exclusion region which is applied for tracks and for jets (jetR is added to the exclusion region for jets)"};
7777
o2::framework::Configurable<std::string> trackSelections{"trackSelections", "globalTracks", "set track selections"};
7878
o2::framework::Configurable<std::string> particleSelections{"particleSelections", "PhysicalPrimary", "set particle selections"};
7979

@@ -143,12 +143,16 @@ struct JetFinderTask {
143143
jetFinder.phiMax = 2.0 * M_PI;
144144
}
145145

146-
if (phiExclusionMin < 998.0) {
146+
if (phiExclusionMin > -998.0) {
147147
jetFinder.phiExclusionMin = phiExclusionMin;
148148
jetFinder.phiExclusionMax = phiExclusionMax;
149149
if (phiExclusionMin >= phiExclusionMax) {
150150
throw std::runtime_error("Invalid phi exclusion range: require phiExclusionMin < phiExclusionMax when both are set.");
151151
}
152+
} else {
153+
// default case
154+
phiExclusionMin = -1.0 * phiExclusionMin;
155+
phiExclusionMax = -1.0 * phiExclusionMax;
152156
}
153157

154158
jetFinder.jetPhiMin = jetPhiMin;

0 commit comments

Comments
 (0)