Skip to content

Commit 0450b73

Browse files
authored
[PWGJE] Setting the phi selection configs (#14888)
1 parent 7cd40f5 commit 0450b73

File tree

5 files changed

+43
-13
lines changed

5 files changed

+43
-13
lines changed

PWGJE/Core/JetFinder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ class JetFinder
4848
/// \return ClusterSequenceArea object needed to access constituents
4949
// fastjet::ClusterSequenceArea findJets(std::vector<fastjet::PseudoJet> &inputParticles, std::vector<fastjet::PseudoJet> &jets);
5050

51-
float phiMin = -2. * M_PI;
51+
float phiMin = -1. * M_PI;
5252
float phiMax = 2. * M_PI;
5353
float etaMin = -.9;
5454
float etaMax = .9;
5555

5656
float jetR = .4;
5757
float jetPtMin = 0.;
5858
float jetPtMax = 1000.;
59-
float jetPhiMin = -2. * M_PI;
59+
float jetPhiMin = -1. * M_PI;
6060
float jetPhiMax = 2. * M_PI;
6161
float jetEtaMin = -99.;
6262
float jetEtaMax = 99.;

PWGJE/JetFinders/jetFinder.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,15 @@ struct JetFinderTask {
137137
jetFinder.etaMax = trackEtaMax;
138138
jetFinder.phiMin = trackPhiMin;
139139
jetFinder.phiMax = trackPhiMax;
140+
if (trackPhiMin < -98.0) {
141+
jetFinder.phiMin = -1.0 * M_PI;
142+
jetFinder.phiMax = 2.0 * M_PI;
143+
}
144+
jetFinder.jetPhiMin = jetPhiMin;
145+
jetFinder.jetPhiMax = jetPhiMax;
140146
if (jetPhiMin < -98.0) {
141-
jetFinder.jetPhiMin = -2. * M_PI;
142-
jetFinder.jetPhiMax = 2. * M_PI;
147+
jetFinder.jetPhiMin = -1.0 * M_PI;
148+
jetFinder.jetPhiMax = 2.0 * M_PI;
143149
}
144150
jetFinder.jetEtaMin = jetEtaMin;
145151
jetFinder.jetEtaMax = jetEtaMax;

PWGJE/JetFinders/jetFinderHF.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,17 @@ struct JetFinderHFTask {
142142
jetFinder.etaMax = trackEtaMax;
143143
jetFinder.jetPtMin = jetPtMin;
144144
jetFinder.jetPtMax = jetPtMax;
145+
jetFinder.phiMin = trackPhiMin;
146+
jetFinder.phiMax = trackPhiMax;
147+
if (trackPhiMin < -98.0) {
148+
jetFinder.phiMin = -1.0 * M_PI;
149+
jetFinder.phiMax = 2.0 * M_PI;
150+
}
151+
jetFinder.jetPhiMin = jetPhiMin;
152+
jetFinder.jetPhiMax = jetPhiMax;
145153
if (jetPhiMin < -98.0) {
146-
jetFinder.jetPhiMin = -2. * M_PI;
147-
jetFinder.jetPhiMax = 2. * M_PI;
154+
jetFinder.jetPhiMin = -1.0 * M_PI;
155+
jetFinder.jetPhiMax = 2.0 * M_PI;
148156
}
149157
jetFinder.jetEtaMin = jetEtaMin;
150158
jetFinder.jetEtaMax = jetEtaMax;

PWGJE/JetFinders/jetFinderHFHFBar.h

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
/// \author Nima Zardoshti <nima.zardoshti@cern.ch>
1515
/// \author Jochen Klein <jochen.klein@cern.ch>
1616

17-
#ifndef PWGJE_JETFINDERS_JETFINDERHF_H_
18-
#define PWGJE_JETFINDERS_JETFINDERHF_H_
17+
#ifndef PWGJE_JETFINDERS_JETFINDERHFHFBAR_H_
18+
#define PWGJE_JETFINDERS_JETFINDERHFHFBAR_H_
1919

2020
#include "PWGJE/Core/JetDerivedDataUtilities.h"
2121
#include "PWGJE/Core/JetFinder.h"
@@ -139,9 +139,17 @@ struct JetFinderHFHFBarTask {
139139
jetFinder.etaMax = trackEtaMax;
140140
jetFinder.jetPtMin = jetPtMin;
141141
jetFinder.jetPtMax = jetPtMax;
142+
jetFinder.phiMin = trackPhiMin;
143+
jetFinder.phiMax = trackPhiMax;
144+
if (trackPhiMin < -98.0) {
145+
jetFinder.phiMin = -1.0 * M_PI;
146+
jetFinder.phiMax = 2.0 * M_PI;
147+
}
148+
jetFinder.jetPhiMin = jetPhiMin;
149+
jetFinder.jetPhiMax = jetPhiMax;
142150
if (jetPhiMin < -98.0) {
143-
jetFinder.jetPhiMin = -2. * M_PI;
144-
jetFinder.jetPhiMax = 2. * M_PI;
151+
jetFinder.jetPhiMin = -1.0 * M_PI;
152+
jetFinder.jetPhiMax = 2.0 * M_PI;
145153
}
146154
jetFinder.jetEtaMin = jetEtaMin;
147155
jetFinder.jetEtaMax = jetEtaMax;
@@ -323,4 +331,4 @@ struct JetFinderHFHFBarTask {
323331
PROCESS_SWITCH(JetFinderHFHFBarTask, processChargedJetsMCP, "hf jet finding on MC particle level", false);
324332
};
325333

326-
#endif // PWGJE_JETFINDERS_JETFINDERHF_H_
334+
#endif // PWGJE_JETFINDERS_JETFINDERHFHFBAR_H_

PWGJE/JetFinders/jetFinderV0.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,17 @@ struct JetFinderV0Task {
123123
jetFinder.etaMax = trackEtaMax;
124124
jetFinder.jetPtMin = jetPtMin;
125125
jetFinder.jetPtMax = jetPtMax;
126+
jetFinder.phiMin = trackPhiMin;
127+
jetFinder.phiMax = trackPhiMax;
128+
if (trackPhiMin < -98.0) {
129+
jetFinder.phiMin = -1.0 * M_PI;
130+
jetFinder.phiMax = 2.0 * M_PI;
131+
}
132+
jetFinder.jetPhiMin = jetPhiMin;
133+
jetFinder.jetPhiMax = jetPhiMax;
126134
if (jetPhiMin < -98.0) {
127-
jetFinder.jetPhiMin = -2. * M_PI;
128-
jetFinder.jetPhiMax = 2. * M_PI;
135+
jetFinder.jetPhiMin = -1.0 * M_PI;
136+
jetFinder.jetPhiMax = 2.0 * M_PI;
129137
}
130138
jetFinder.jetEtaMin = jetEtaMin;
131139
jetFinder.jetEtaMax = jetEtaMax;

0 commit comments

Comments
 (0)