Skip to content

Commit e366f21

Browse files
jikim1290junleekim
andauthored
PWGLF: add filtering to events and tracks (AliceO2Group#8023)
Co-authored-by: junleekim <[email protected]>
1 parent 71e7f97 commit e366f21

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ using namespace o2::soa;
6262
using namespace o2::constants::physics;
6363

6464
struct f0980pbpbanalysis {
65-
using EventCandidates = soa::Join<aod::Collisions, aod::EvSels, aod::FT0Mults, aod::FV0Mults, aod::TPCMults, aod::CentFV0As, aod::CentFT0Ms, aod::CentFT0Cs, aod::CentFT0As, aod::Mults, aod::Qvectors>;
66-
using TrackCandidates = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection, aod::pidTPCFullPi, aod::pidTOFFullPi>;
67-
6865
HistogramRegistry histos{
6966
"histos",
7067
{},
@@ -76,6 +73,7 @@ struct f0980pbpbanalysis {
7673
Configurable<std::string> cfgURL{"cfgURL", "http://alice-ccdb.cern.ch", "Address of the CCDB to browse"};
7774
Configurable<int64_t> nolaterthan{"ccdb-no-later-than", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "Latest acceptable timestamp of creation for the object"};
7875

76+
Configurable<float> cfgCutVertex{"cfgCutVertex", 10.0, "PV selection"};
7977
Configurable<bool> cfgQvecSel{"cfgQvecSel", true, "Reject events when no QVector"};
8078
Configurable<bool> cfgOccupancySel{"cfgOccupancySe", false, "Occupancy selection"};
8179
Configurable<int> cfgMaxOccupancy{"cfgMaxOccupancy", 999999, "maximum occupancy of tracks in neighbouring collisions in a given time range"};
@@ -133,6 +131,13 @@ struct f0980pbpbanalysis {
133131

134132
double massPi = o2::constants::physics::MassPionCharged;
135133

134+
Filter collisionFilter = nabs(aod::collision::posZ) < cfgCutVertex;
135+
Filter acceptanceFilter = (nabs(aod::track::eta) < cfgMaxEta && nabs(aod::track::pt) > cfgMinPt);
136+
Filter DCAcutFilter = (nabs(aod::track::dcaXY) < cfgMaxDCArToPVcut) && (nabs(aod::track::dcaZ) < cfgMaxDCAzToPVcut);
137+
138+
using EventCandidates = soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::FT0Mults, aod::FV0Mults, aod::TPCMults, aod::CentFV0As, aod::CentFT0Ms, aod::CentFT0Cs, aod::CentFT0As, aod::Mults, aod::Qvectors>>;
139+
using TrackCandidates = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection, aod::pidTPCFullPi, aod::pidTOFFullPi>>;
140+
136141
template <typename T>
137142
int GetDetId(const T& name)
138143
{

0 commit comments

Comments
 (0)