Skip to content

Commit bb2651c

Browse files
authored
PWGEM/PhotonMeson: implement filter for v0Type > 0 (#4640)
1 parent eeda2cc commit bb2651c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,13 +679,17 @@ struct PhotonConversionBuilder {
679679
stored_v0Ids.shrink_to_fit();
680680
} // end of build
681681

682-
void processRec(MyCollisions const& collisions, aod::V0s const& v0s, MyTracksIU const& tracks, aod::BCsWithTimestamps const& bcs)
682+
//! type of V0. 0: built solely for cascades (does not pass standard V0 cuts), 1: standard 2, 3: photon-like with TPC-only use. Regular analysis should always use type 1 or 3.
683+
Filter v0Filter = o2::aod::v0::v0Type > (uint8_t)0;
684+
using filteredV0s = soa::Filtered<aod::V0s>;
685+
686+
void processRec(MyCollisions const& collisions, filteredV0s const& v0s, MyTracksIU const& tracks, aod::BCsWithTimestamps const& bcs)
683687
{
684688
build<false>(collisions, v0s, tracks, bcs);
685689
}
686690
PROCESS_SWITCH(PhotonConversionBuilder, processRec, "process reconstructed info for data", true);
687691

688-
void processMC(MyCollisionsMC const& collisions, aod::V0s const& v0s, MyTracksIUMC const& tracks, aod::BCsWithTimestamps const& bcs)
692+
void processMC(MyCollisionsMC const& collisions, filteredV0s const& v0s, MyTracksIUMC const& tracks, aod::BCsWithTimestamps const& bcs)
689693
{
690694
build<true>(collisions, v0s, tracks, bcs);
691695
}

0 commit comments

Comments
 (0)