From 13d664be46f2dddc1679b56c292af6e2644354cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Kr=C3=BCger?= Date: Tue, 19 Jul 2022 10:25:03 +0200 Subject: [PATCH] PWGLF: use track selection without kinematic cuts --- PWGLF/Tasks/spectraCharged.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/PWGLF/Tasks/spectraCharged.cxx b/PWGLF/Tasks/spectraCharged.cxx index d05e8a7993f..abbd1ec29b4 100644 --- a/PWGLF/Tasks/spectraCharged.cxx +++ b/PWGLF/Tasks/spectraCharged.cxx @@ -250,13 +250,9 @@ bool chargedSpectra::initTrack(const T& track) if (track.pt() <= ptMinCut || track.pt() >= ptMaxCut) { return false; } - // TODO: with Filters we could skip this in data, but not in MC (maybe add IS_MC template paramter so we can skip it in data via if constexpr) - if (!track.isGlobalTrack() || (isRun3 && track.trackType() != o2::aod::track::Track)) { + if (!track.isGlobalTrackWoPtEta()) { return false; - // MEMO: current version of the track selection cuts too harshly (to be studied why) and therefore many events have multMeas==0 - // as temporary workaround to look at unselected tracks use the commented out condition instead } - return true; }