@@ -37,6 +37,10 @@ using namespace o2::framework::expressions;
3737struct TrackSelectionTask {
3838 // FIXME: this will be removed once we can get this via meta data
3939 Configurable<bool > isRun3{" isRun3" , false , " temp option to enable run3 mode" };
40+ Configurable<float > ptMin{" ptMin" , 0 .1f , " Lower cut on pt for the track selected" };
41+ Configurable<float > ptMax{" ptMax" , 1e10f, " Upper cut on pt for the track selected" };
42+ Configurable<float > etaMin{" etaMin" , -0.8 , " Lower cut on eta for the track selected" };
43+ Configurable<float > etaMax{" etaMax" , 0.8 , " Upper cut on eta for the track selected" };
4044
4145 Produces<aod::TrackSelection> filterTable;
4246
@@ -46,7 +50,11 @@ struct TrackSelectionTask {
4650 void init (InitContext&)
4751 {
4852 globalTracks = getGlobalTrackSelection ();
53+ globalTracks.SetPtRange (ptMin, ptMax);
54+ globalTracks.SetEtaRange (etaMin, etaMax);
4955 globalTracksSDD = getGlobalTrackSelectionSDD ();
56+ globalTracksSDD.SetPtRange (ptMin, ptMax);
57+ globalTracksSDD.SetEtaRange (etaMin, etaMax);
5058
5159 if (isRun3) {
5260 globalTracks.SetTrackType (o2::aod::track::TrackTypeEnum::Track);
0 commit comments