Skip to content

Commit cb2936b

Browse files
committed
Changed eta cut from 0.8 to 0.9 by changing isGlobalTrack to isGlobalTrackWoPtEta
1 parent 42777a8 commit cb2936b

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

PWGJE/TableProducer/diffWakeTreeProducer.cxx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/// \file diffWakeTreeProducer.cxx
1313
/// \brief This task writes a collision and track table which are further used in a diffusion wake analysis
14-
/// \author Nicola Wilson <nicola.wilson@cern.ch>
14+
/// \authors Nicola Wilson <nicola.wilson@cern.ch> and Nicolas Wirth <nicolas.wirth@cern.ch>
1515

1616
#include "Common/CCDB/EventSelectionParams.h"
1717
#include "Common/Core/EventPlaneHelper.h"
@@ -126,6 +126,7 @@ struct DiffWakeTreeProducer {
126126
Configurable<double> ptThresh{"ptThresh", 20.0, "pT threshold"};
127127
Configurable<float> centMax{"centMax", 10, "centrality"};
128128
Configurable<float> zVertCut{"zVertCut", 10.0, "z_vertex cut"};
129+
Configurable<float> etaCut{"etaCut", 0.9, "eta cut"};
129130

130131
int64_t collisionCounter = 0;
131132

@@ -148,7 +149,8 @@ struct DiffWakeTreeProducer {
148149
soa::Join<aod::TracksIU, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection> const& tracks,
149150
Bcs const&)
150151
{
151-
const float maxMomentum = 173.0;
152+
const float maxMomentum = 173.0; // max for px, py, pz
153+
const float minMomentum = 0.1; // min for pT
152154

153155
// Event selection corresponds to sel8FullPbPb
154156
if (!col.sel8())
@@ -176,7 +178,11 @@ struct DiffWakeTreeProducer {
176178
bool eventHighpT = false;
177179
for (const auto& track : tracks) {
178180

179-
if (!track.isGlobalTrack())
181+
if (!track.isGlobalTrackWoPtEta())
182+
continue;
183+
if (track.pt() < minMomentum)
184+
continue;
185+
if (std::abs(track.eta()) > etaCut)
180186
continue;
181187
if (track.pt() > ptThresh) {
182188
eventHighpT = true;
@@ -204,8 +210,12 @@ struct DiffWakeTreeProducer {
204210
for (const auto& track : tracks) {
205211

206212
// Track cut
207-
if (!track.isGlobalTrack())
208-
continue; // General track cuts
213+
if (!track.isGlobalTrackWoPtEta())
214+
continue; // General track cuts, but pT and eta cut are set manually
215+
if (track.pt() < minMomentum)
216+
continue;
217+
if (std::abs(track.eta()) > etaCut)
218+
continue;
209219

210220
if (std::abs(track.px()) > maxMomentum || std::abs(track.py()) > maxMomentum || std::abs(track.pz()) > maxMomentum)
211221
continue; // to avoid overflow in Substitute_p

0 commit comments

Comments
 (0)