Skip to content

Commit 548fbb1

Browse files
committed
minor change in regard to MFT selection
1 parent df7102f commit 548fbb1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PWGCF/TwoParticleCorrelations/Tasks/corrSparse.cxx

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

1212
/// \file corrSparse.cxx
1313
/// \brief Provides a sparse with usefull two particle correlation info
14-
/// \author Thor Jensen (thor.kjaersgaard.jensen@cern.ch) and Debojit Sarkar (debojit.sarkar@cern.ch)
14+
/// \author Thor Jensen (thor.kjaersgaard.jensen@cern.ch)
1515

1616
#include <CCDB/BasicCCDBManager.h>
1717
#include "TRandom3.h"
@@ -98,7 +98,7 @@ struct CorrSparse {
9898

9999
// make the filters and cuts.
100100
Filter collisionFilter = (nabs(aod::collision::posZ) < cfgZVtxCut) && (aod::evsel::sel8) == true;
101-
Filter trackFilter = (nabs(aod::track::eta) < cfgEtaCut) && (cfgPtCutMin < aod::track::pt) && (cfgPtCutMax > aod::track::pt) && ((requireGlobalTrackInFilter()) || (aod::track::isGlobalTrackSDD == (uint8_t) true));
101+
Filter trackFilter = (nabs(aod::track::eta) < cfgEtaCut) && (cfgPtCutMin < aod::track::pt) && (cfgPtCutMax > aod::track::pt) && ((requireGlobalTrackInFilter()) || (aod::track::isGlobalTrackSDD == (uint8_t)true));
102102

103103
// Define the outputs
104104
OutputObj<CorrelationContainer> same{Form("sameEvent_%i_%i", static_cast<int>(cfgMinMult), static_cast<int>(cfgMaxMult))};
@@ -253,15 +253,15 @@ struct CorrSparse {
253253

254254
for (auto const& track2 : tracks2) {
255255

256-
if (track1.pt() <= track2.pt())
257-
continue; // skip if the trigger pt is less than the associate pt
258-
259256
if (processMFT) {
260257
if constexpr (std::is_same_v<aod::MFTTracks, TTracksAssoc>) {
261258
if (!isAcceptedMftTrack(track2)) {
262259
continue;
263260
}
264261
}
262+
} else {
263+
if (track1.pt() <= track2.pt())
264+
continue; // skip if the trigger pt is less than the associate pt
265265
}
266266

267267
float deltaPhi = RecoDecay::constrainAngle(track1.phi() - track2.phi(), -PIHalf);

0 commit comments

Comments
 (0)