Skip to content

Commit c139b63

Browse files
authored
Adjust pT axis and add momentum overflow checks
Updated pT axis range to accommodate higher values and added overflow checks for track momentum.
1 parent 9ece9fb commit c139b63

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

PWGJE/TableProducer/tableDiffWake.cxx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@
2323
#include <Framework/InitContext.h>
2424
#include <Framework/OutputObjHeader.h>
2525
#include <Framework/runDataProcessing.h>
26-
// For centrality:
2726
#include "Common/DataModel/Centrality.h"
2827
#include "Common/DataModel/EventSelection.h"
29-
// For TPC Mult
3028
#include "Common/DataModel/Multiplicity.h"
31-
// For DCA and TrackSelection
3229
#include "Common/DataModel/TrackSelectionTables.h"
33-
// For EP
3430
#include "Common/Core/EventPlaneHelper.h"
3531
#include "Common/DataModel/Qvectors.h"
36-
// For occupancy bit
3732
#include "Common/CCDB/EventSelectionParams.h"
3833

3934
// Event selection: Only events that contain track above some threshold
@@ -139,7 +134,7 @@ struct tableDiffWake {
139134
void init(InitContext const&)
140135
{
141136
const AxisSpec axisEta{30, -1.5, +1.5, "#eta"};
142-
const AxisSpec axispT{nBinsPt, 0, 10, "p_{T}"};
137+
const AxisSpec axispT{nBinsPt, 0, 250, "p_{T}"};
143138

144139
histos.add("etaHistogram", "etaHistogram", kTH1F, {axisEta});
145140
histos.add("pTHistogram", "pTHistogram", kTH1F, {axispT});
@@ -208,6 +203,9 @@ struct tableDiffWake {
208203
if (!track.isGlobalTrack())
209204
continue; // General track cuts
210205

206+
if (abs(track.px()) > 173.0 || abs(track.py()) > 173.0 || abs(track.pz()) > 173.0)
207+
continue; // to avoid overflow in Substitute_p
208+
211209
histos.fill(HIST("etaHistogram"), track.eta());
212210
histos.fill(HIST("pTHistogram"), track.pt());
213211

0 commit comments

Comments
 (0)