@@ -70,9 +70,11 @@ struct FlowCumulantsUpc {
7070
7171 O2_DEFINE_CONFIGURABLE (cfgCutVertex, float , 10 .0f , " Accepted z-vertex range" )
7272 O2_DEFINE_CONFIGURABLE (cfgIfVertex, bool , false , " choose vertex or not" )
73- O2_DEFINE_CONFIGURABLE (cfgCutPtPOIMin, float , 0 .1f , " Minimal pT for poi tracks" )
73+ O2_DEFINE_CONFIGURABLE (cfgPtCutMin, float , 0 .2f , " minimum accepted track pT" )
74+ O2_DEFINE_CONFIGURABLE (cfgPtCutMax, float , 10 .0f , " maximum accepted track pT" )
75+ O2_DEFINE_CONFIGURABLE (cfgCutPtPOIMin, float , 0 .2f , " Minimal pT for poi tracks" )
7476 O2_DEFINE_CONFIGURABLE (cfgCutPtPOIMax, float , 10 .0f , " Maximal pT for poi tracks" )
75- O2_DEFINE_CONFIGURABLE (cfgCutPtRefMin, float , 0 .1f , " Minimal pT for ref tracks" )
77+ O2_DEFINE_CONFIGURABLE (cfgCutPtRefMin, float , 0 .2f , " Minimal pT for ref tracks" )
7678 O2_DEFINE_CONFIGURABLE (cfgCutPtRefMax, float , 3 .0f , " Maximal pT for ref tracks" )
7779 O2_DEFINE_CONFIGURABLE (cfgCutEta, float , 0 .8f , " max Eta range for tracks" )
7880 O2_DEFINE_CONFIGURABLE (cfgCutTPCCrossedRows, float , 70 .0f , " minimum number of crossed TPC Rows" )
@@ -101,6 +103,11 @@ struct FlowCumulantsUpc {
101103 O2_DEFINE_CONFIGURABLE (cfgZdcTime, bool , false , " choose zdc time cut" )
102104 O2_DEFINE_CONFIGURABLE (cfgZdcTimeCut, float , 2.0 , " zdc time cut" )
103105 O2_DEFINE_CONFIGURABLE (cfgIRMaxCut, double , 50 , " maximum interaction rate for UPC events" )
106+ O2_DEFINE_CONFIGURABLE (cfgMaxDebugEvents, int , -1 , " Maximum number of events for debug (-1: all events)" )
107+ O2_DEFINE_CONFIGURABLE (cfgvtxITSTPC, bool , true , " require vertex from ITS+TPC" )
108+ O2_DEFINE_CONFIGURABLE (cfgsbp, bool , true , " require sbp" )
109+ O2_DEFINE_CONFIGURABLE (cfgitsROFb, bool , true , " require itsROFb" )
110+ O2_DEFINE_CONFIGURABLE (cfgtfb, bool , true , " require tfb" )
104111
105112 Configurable<std::vector<std::string>> cfgUserDefineGFWCorr{" cfgUserDefineGFWCorr" , std::vector<std::string>{" refN02 {2} refP02 {-2}" , " refN12 {2} refP12 {-2}" }, " User defined GFW CorrelatorConfig" };
106113 Configurable<std::vector<std::string>> cfgUserDefineGFWName{" cfgUserDefineGFWName" , std::vector<std::string>{" Ch02Gap22" , " Ch12Gap22" }, " User defined GFW Name" };
@@ -597,6 +604,9 @@ struct FlowCumulantsUpc {
597604 bool trackSelected (TTrack track)
598605 {
599606 registry.fill (HIST (" hTrackCount" ), 0.5 );
607+ if (track.pt () < cfgPtCutMin || track.pt () > cfgPtCutMax) {
608+ return false ;
609+ }
600610 // UPC selection
601611 if (!track.isPVContributor ()) {
602612 return false ;
@@ -748,19 +758,19 @@ struct FlowCumulantsUpc {
748758 }
749759 }
750760 registry.fill (HIST (" hEventCount" ), 5.5 );
751- if (!collision.vtxITSTPC ()) {
761+ if (cfgvtxITSTPC && !collision.vtxITSTPC ()) {
752762 return ;
753763 }
754764 registry.fill (HIST (" hEventCount" ), 6.5 );
755- if (!collision.sbp ()) {
765+ if (cfgsbp && !collision.sbp ()) {
756766 return ;
757767 }
758768 registry.fill (HIST (" hEventCount" ), 7.5 );
759- if (!collision.itsROFb ()) {
769+ if (cfgitsROFb && !collision.itsROFb ()) {
760770 return ;
761771 }
762772 registry.fill (HIST (" hEventCount" ), 8.5 );
763- if (!collision.tfb ()) {
773+ if (cfgtfb && !collision.tfb ()) {
764774 return ;
765775 }
766776 registry.fill (HIST (" hEventCount" ), 9.5 );
0 commit comments