Skip to content

Commit 9e798eb

Browse files
committed
adding jet phi cuts
1 parent 45ff2c9 commit 9e798eb

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

PWGJE/JetFinders/jetFinder.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ struct JetFinderTask {
137137
jetFinder.etaMax = trackEtaMax;
138138
jetFinder.phiMin = trackPhiMin;
139139
jetFinder.phiMax = trackPhiMax;
140+
if (trackPhiMin < -98.0) {
141+
jetFinder.phiMin = -2. * M_PI;
142+
jetFinder.phiMax = 2. * M_PI;
143+
}
144+
jetFinder.jetPhiMin = jetPhiMin;
145+
jetFinder.jetPhiMax = jetPhiMax;
140146
if (jetPhiMin < -98.0) {
141147
jetFinder.jetPhiMin = -2. * M_PI;
142148
jetFinder.jetPhiMax = 2. * M_PI;

PWGJE/JetFinders/jetFinderHF.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ 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 = -2. * M_PI;
149+
jetFinder.phiMax = 2. * M_PI;
150+
}
151+
jetFinder.jetPhiMin = jetPhiMin;
152+
jetFinder.jetPhiMax = jetPhiMax;
145153
if (jetPhiMin < -98.0) {
146154
jetFinder.jetPhiMin = -2. * M_PI;
147155
jetFinder.jetPhiMax = 2. * M_PI;

PWGJE/JetFinders/jetFinderHFHFBar.h

Lines changed: 11 additions & 3 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,6 +139,14 @@ 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 = -2. * M_PI;
146+
jetFinder.phiMax = 2. * M_PI;
147+
}
148+
jetFinder.jetPhiMin = jetPhiMin;
149+
jetFinder.jetPhiMax = jetPhiMax;
142150
if (jetPhiMin < -98.0) {
143151
jetFinder.jetPhiMin = -2. * M_PI;
144152
jetFinder.jetPhiMax = 2. * M_PI;
@@ -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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ 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 = -2. * M_PI;
130+
jetFinder.phiMax = 2. * M_PI;
131+
}
132+
jetFinder.jetPhiMin = jetPhiMin;
133+
jetFinder.jetPhiMax = jetPhiMax;
126134
if (jetPhiMin < -98.0) {
127135
jetFinder.jetPhiMin = -2. * M_PI;
128136
jetFinder.jetPhiMax = 2. * M_PI;

0 commit comments

Comments
 (0)