Skip to content

Commit 3e698fc

Browse files
Replace filter on expression columns by if-conditions on dynamic columns
1 parent ac1fef1 commit 3e698fc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

PWGCF/MultiparticleCorrelations/Tasks/threeParticleCorrelations.cxx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ struct ThreeParticleCorrelations {
6969
Filter evSelect = aod::evsel::sel8 == true;
7070

7171
// V0 filters
72-
Filter v0Pt = aod::v0data::pt > v0PtMin&& aod::v0data::pt < v0PtMax;
73-
Filter v0Eta = nabs(aod::v0data::eta) < v0EtaMax;
72+
// Filter v0Pt = aod::v0data::pt > v0PtMin&& aod::v0data::pt < v0PtMax;
73+
// Filter v0Eta = nabs(aod::v0data::eta) < v0EtaMax;
7474

7575
// Track filters
7676
Filter trackPt = aod::track::pt > trackPtMin&& aod::track::pt < trackPtMax;
@@ -83,7 +83,7 @@ struct ThreeParticleCorrelations {
8383
// Table aliases - Data
8484
using MyFilteredCollisions = soa::Filtered<soa::Join<aod::Collisions, aod::CentFT0Cs, aod::EvSels>>;
8585
using MyFilteredCollision = MyFilteredCollisions::iterator;
86-
using MyFilteredV0s = soa::Filtered<aod::V0Datas>;
86+
using MyFilteredV0s = aod::V0Datas;
8787
using MyFilteredTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TrackSelection,
8888
aod::pidTPCPi, aod::pidTPCKa, aod::pidTPCPr,
8989
aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr, aod::pidTOFbeta>>;
@@ -765,6 +765,10 @@ struct ThreeParticleCorrelations {
765765
template <class V0Cand>
766766
bool v0Filters(const V0Cand& v0)
767767
{
768+
if (v0.pt() < v0PtMin || v0.pt() > v0PtMax)
769+
return false;
770+
if (std::abs(v0.eta()) > v0EtaMax)
771+
return false;
768772

769773
if (v0Sign(v0) == 1) {
770774
const auto& posDaughter = v0.template posTrack_as<MyFilteredTracks>();

0 commit comments

Comments
 (0)