@@ -68,10 +68,6 @@ struct ThreeParticleCorrelations {
6868 Filter mcCollZvtx = nabs(aod::mccollision::posZ) < zvtxMax;
6969 Filter evSelect = aod::evsel::sel8 == true ;
7070
71- // V0 filters
72- Filter v0Pt = aod::v0data::pt > v0PtMin&& aod::v0data::pt < v0PtMax;
73- Filter v0Eta = nabs(aod::v0data::eta) < v0EtaMax;
74-
7571 // Track filters
7672 Filter trackPt = aod::track::pt > trackPtMin&& aod::track::pt < trackPtMax;
7773 Filter trackEta = nabs(aod::track::eta) < trackEtaMax;
@@ -83,7 +79,6 @@ struct ThreeParticleCorrelations {
8379 // Table aliases - Data
8480 using MyFilteredCollisions = soa::Filtered<soa::Join<aod::Collisions, aod::CentFT0Cs, aod::EvSels>>;
8581 using MyFilteredCollision = MyFilteredCollisions::iterator;
86- using MyFilteredV0s = soa::Filtered<aod::V0Datas>;
8782 using MyFilteredTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TrackSelection,
8883 aod::pidTPCPi, aod::pidTPCKa, aod::pidTPCPr,
8984 aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr, aod::pidTOFbeta>>;
@@ -122,7 +117,7 @@ struct ThreeParticleCorrelations {
122117
123118 BinningType collBinning{{confCentBins, confZvtxBins}, true };
124119 BinningTypeMC collBinningMC{{confCentBins, confZvtxBins}, true };
125- Pair<MyFilteredCollisions, MyFilteredV0s , MyFilteredTracks, BinningType> pairData{collBinning, 5 , -1 , &cache};
120+ Pair<MyFilteredCollisions, aod::V0Datas , MyFilteredTracks, BinningType> pairData{collBinning, 5 , -1 , &cache};
126121 SameKindPair<MyFilteredMCGenCollisions, MyFilteredMCParticles, BinningTypeMC> pairMC{collBinningMC, 5 , -1 , &cache};
127122
128123 // Process configurables
@@ -313,7 +308,7 @@ struct ThreeParticleCorrelations {
313308
314309 // ==========================================================================================================================================================================================================================================================================
315310
316- void processSame (MyFilteredCollision const & collision, MyFilteredV0s const & v0s, MyFilteredTracks const & tracks, aod::BCsWithTimestamps const &)
311+ void processSame (MyFilteredCollision const & collision, aod::V0Datas const & v0s, MyFilteredTracks const & tracks, aod::BCsWithTimestamps const &)
317312 {
318313
319314 if (!acceptEvent (collision, true )) {
@@ -425,7 +420,7 @@ struct ThreeParticleCorrelations {
425420 // End of the Same-Event correlations
426421 }
427422
428- void processMixed (MyFilteredCollisions const &, MyFilteredV0s const &, MyFilteredTracks const &, aod::BCsWithTimestamps const &)
423+ void processMixed (MyFilteredCollisions const &, aod::V0Datas const &, MyFilteredTracks const &, aod::BCsWithTimestamps const &)
429424 {
430425
431426 // Start of the Mixed-Event correlations
@@ -886,7 +881,6 @@ struct ThreeParticleCorrelations {
886881 template <class CollCand >
887882 bool acceptEvent (const CollCand& collision, bool FillHist) // Event filter
888883 {
889-
890884 if (FillHist) {
891885 rQARegistry.fill (HIST (" hNEvents" ), 0.5 );
892886 }
@@ -911,8 +905,12 @@ struct ThreeParticleCorrelations {
911905 template <class V0Cand >
912906 bool v0Filters (const V0Cand& v0, bool MCRec) // V0 filter
913907 {
914-
915908 if (!MCRec) { // Data
909+ if (v0.pt () < v0PtMin || v0.pt () > v0PtMax)
910+ return false ;
911+ if (std::abs (v0.eta ()) > v0EtaMax)
912+ return false ;
913+
916914 if (v0Sign (v0) == 1 ) {
917915 const auto & posDaughter = v0.template posTrack_as <MyFilteredTracks>();
918916 if (std::abs (posDaughter.tpcNSigmaPr ()) > nSigma4) {
@@ -925,6 +923,11 @@ struct ThreeParticleCorrelations {
925923 }
926924 }
927925 } else { // MC Reconstructed
926+ if (v0.pt () < v0PtMin || v0.pt () > v0PtMax)
927+ return false ;
928+ if (std::abs (v0.eta ()) > v0EtaMax)
929+ return false ;
930+
928931 if (v0Sign (v0) == 1 ) {
929932 const auto & posDaughter = v0.template posTrack_as <MyFilteredMCTracks>();
930933 if (std::abs (posDaughter.tpcNSigmaPr ()) > nSigma4) {
0 commit comments