Skip to content

Commit 20b5dc4

Browse files
committed
Fix: make pt cut more elegant
1 parent c413c4a commit 20b5dc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

EventFiltering/PWGCF/CFFilterAll.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,12 @@ struct CFFilterAll {
904904
template <typename T>
905905
bool checkTrack(T const& track, std::string trackName)
906906
{
907+
if (track.pt() < TrackSelections.momentum->get(trackName.c_str(), "PtMin")) {
908+
return false;
909+
}
910+
if (track.pt() > TrackSelections.momentum->get(trackName.c_str(), "PtMax")) {
911+
return false;
912+
}
907913
if (std::abs(track.eta()) > TrackSelections.trackProperties->get(trackName.c_str(), "AbsEtaMax")) {
908914
return false;
909915
}

0 commit comments

Comments
 (0)