Skip to content

Commit d4c032a

Browse files
authored
[PWGUD] change ptorder in flowCorrelationUpc of PWGUD (#12130)
1 parent fa8511e commit d4c032a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

PWGUD/Tasks/flowCorrelationsUpc.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ struct FlowCorrelationsUpc {
101101
O2_DEFINE_CONFIGURABLE(cfgMinMult, int, 0, "Minimum multiplicity for collision")
102102
O2_DEFINE_CONFIGURABLE(cfgMaxMult, int, 10, "Maximum multiplicity for collision")
103103
O2_DEFINE_CONFIGURABLE(cfgSampleSize, double, 10, "Sample size for mixed event")
104+
O2_DEFINE_CONFIGURABLE(cfgUsePtOrder, bool, true, "enable trigger pT < associated pT cut")
105+
O2_DEFINE_CONFIGURABLE(cfgUsePtOrderInMixEvent, bool, true, "enable trigger pT < associated pT cut in mixed event")
104106

105107
ConfigurableAxis axisVertex{"axisVertex", {10, -10, 10}, "vertex axis for histograms"};
106108
ConfigurableAxis axisEta{"axisEta", {40, -1., 1.}, "eta axis for histograms"};
@@ -208,8 +210,10 @@ struct FlowCorrelationsUpc {
208210

209211
for (auto const& track2 : tracks2) {
210212

211-
if (track1.pt() <= track2.pt())
212-
continue; // skip if the trigger pt is less than the associate p
213+
if (track1.globalIndex() == track2.globalIndex())
214+
continue; // For pt-differential correlations, skip if the trigger and associate are the same track
215+
if (system == SameEvent && track1.pt() <= track2.pt())
216+
continue; // Without pt-differential correlations, skip if the trigger pt is less than the associate pt
213217

214218
auto momentum1 = std::array<double, 3>{track1.px(), track1.py(), track1.pz()};
215219
auto momentum2 = std::array<double, 3>{track2.px(), track2.py(), track2.pz()};

0 commit comments

Comments
 (0)