@@ -60,6 +60,7 @@ struct FlowPtEfficiency {
6060 O2_DEFINE_CONFIGURABLE (cfgCutDCAz, float , 2 .0f , " DCAz cut for tracks" )
6161 O2_DEFINE_CONFIGURABLE (cfgCutDCAxyppPass3Enabled, bool , false , " switch of ppPass3 DCAxy pt dependent cut" )
6262 O2_DEFINE_CONFIGURABLE (cfgCutDCAzPtDepEnabled, bool , false , " switch of DCAz pt dependent cut" )
63+ O2_DEFINE_CONFIGURABLE (cfgEnableITSCuts, bool , true , " switch of enabling ITS based track selection cuts" )
6364 O2_DEFINE_CONFIGURABLE (cfgSelRunNumberEnabled, bool , false , " switch of run number selection" )
6465 O2_DEFINE_CONFIGURABLE (cfgFlowEnabled, bool , false , " switch of calculating flow" )
6566 O2_DEFINE_CONFIGURABLE (cfgFlowNbootstrap, int , 30 , " Number of subsamples" )
@@ -219,19 +220,22 @@ struct FlowPtEfficiency {
219220 fGFWReco ->CreateRegions ();
220221 }
221222
222- if (cfgTrkSelRun3ITSMatch) {
223- myTrackSel = getGlobalTrackSelectionRun3ITSMatch (TrackSelection::GlobalTrackRun3ITSMatching::Run3ITSall7Layers, TrackSelection::GlobalTrackRun3DCAxyCut::Default);
224- } else {
225- myTrackSel = getGlobalTrackSelectionRun3ITSMatch (TrackSelection::GlobalTrackRun3ITSMatching::Run3ITSibAny, TrackSelection::GlobalTrackRun3DCAxyCut::Default);
223+ if (cfgEnableITSCuts) {
224+ if (cfgTrkSelRun3ITSMatch) {
225+ myTrackSel = getGlobalTrackSelectionRun3ITSMatch (TrackSelection::GlobalTrackRun3ITSMatching::Run3ITSall7Layers, TrackSelection::GlobalTrackRun3DCAxyCut::Default);
226+ } else {
227+ myTrackSel = getGlobalTrackSelectionRun3ITSMatch (TrackSelection::GlobalTrackRun3ITSMatching::Run3ITSibAny, TrackSelection::GlobalTrackRun3DCAxyCut::Default);
228+ }
226229 }
227230 if (cfgCutDCAxyppPass3Enabled) {
228231 myTrackSel.SetMaxDcaXYPtDep ([](float pt) { return 0 .004f + 0 .013f / pt; });
229232 } else {
230233 myTrackSel.SetMaxDcaXY (cfgCutDCAxy);
231234 }
232235 myTrackSel.SetMinNClustersTPC (cfgCutTPCclu);
233- myTrackSel.SetMinNClustersITS (cfgCutITSclu);
234236 myTrackSel.SetMinNCrossedRowsTPC (cfgCutTPCcrossedrows);
237+ if (cfgEnableITSCuts)
238+ myTrackSel.SetMinNClustersITS (cfgCutITSclu);
235239 if (!cfgCutDCAzPtDepEnabled)
236240 myTrackSel.SetMaxDcaZ (cfgCutDCAz);
237241 }
@@ -358,10 +362,12 @@ struct FlowPtEfficiency {
358362 template <typename TTrack>
359363 bool trackSelected (TTrack track)
360364 {
361- if (cfgkIsTrackGlobal && !track.isGlobalTrack ())
365+ if (cfgkIsTrackGlobal && !track.isGlobalTrack ()) {
362366 return false ;
363- if (cfgCutDCAzPtDepEnabled && (track.dcaZ () > (0 .004f + 0 .013f / track.pt ())))
367+ }
368+ if (cfgCutDCAzPtDepEnabled && (track.dcaZ () > (0 .004f + 0 .013f / track.pt ()))) {
364369 return false ;
370+ }
365371 return myTrackSel.IsSelected (track);
366372 }
367373
@@ -378,7 +384,6 @@ struct FlowPtEfficiency {
378384 if (!std::count (cfgRunNumberList.value .begin (), cfgRunNumberList.value .end (), runNumber))
379385 return ;
380386 }
381-
382387 float imp = 0 ;
383388 bool impFetched = false ;
384389 float evPhi = 0 ;
@@ -393,7 +398,6 @@ struct FlowPtEfficiency {
393398
394399 fGFWReco ->Clear ();
395400 }
396-
397401 for (const auto & track : tracks) {
398402 if (!trackSelected (track))
399403 continue ;
0 commit comments