@@ -92,7 +92,6 @@ struct FlowTask {
9292 O2_DEFINE_CONFIGURABLE (cfgEvSelkNoCollInRofStandard, bool , false , " no other collisions in this Readout Frame with per-collision multiplicity above threshold" )
9393 O2_DEFINE_CONFIGURABLE (cfgEvSelkNoHighMultCollInPrevRof, bool , false , " veto an event if FT0C amplitude in previous ITS ROF is above threshold" )
9494 O2_DEFINE_CONFIGURABLE (cfgEvSelMultCorrelation, bool , true , " Multiplicity correlation cut" )
95- O2_DEFINE_CONFIGURABLE (cfgEvSelV0AT0ACut, bool , true , " V0A T0A 5 sigma cut" )
9695 O2_DEFINE_CONFIGURABLE (cfgGetInteractionRate, bool , false , " Get interaction rate from CCDB" )
9796 O2_DEFINE_CONFIGURABLE (cfgUseInteractionRateCut, bool , false , " Use events with low interaction rate" )
9897 O2_DEFINE_CONFIGURABLE (cfgCutMaxIR, float , 50 .0f , " maximum interaction rate (kHz)" )
@@ -102,6 +101,7 @@ struct FlowTask {
102101 O2_DEFINE_CONFIGURABLE (cfgCutOccupancyLow, int , 0 , " Low cut on TPC occupancy" )
103102 // User configuration for ananlysis
104103 O2_DEFINE_CONFIGURABLE (cfgUseNch, bool , false , " Use Nch for flow observables" )
104+ O2_DEFINE_CONFIGURABLE (cfgUseNchCorrected, bool , false , " Use Nch-corrected for flow observables, you also need to set cfgUseNch to true" )
105105 O2_DEFINE_CONFIGURABLE (cfgNbootstrap, int , 30 , " Number of subsamples" )
106106 O2_DEFINE_CONFIGURABLE (cfgOutputNUAWeights, bool , false , " Fill and output NUA weights" )
107107 O2_DEFINE_CONFIGURABLE (cfgOutputNUAWeightsRefPt, bool , false , " NUA weights are filled in ref pt bins" )
@@ -118,6 +118,7 @@ struct FlowTask {
118118 Configurable<GFWCorrConfigs> cfgUserPtVnCorrConfig{" cfgUserPtVnCorrConfig" , {{" refP {2} refN {-2}" , " refP {3} refN {-3}" }, {" ChGap22" , " ChGap32" }, {0 , 0 }, {3 , 3 }}, " Configurations for vn-pt correlations" };
119119 Configurable<std::vector<int >> cfgRunRemoveList{" cfgRunRemoveList" , std::vector<int >{-1 }, " excluded run numbers" };
120120 struct : ConfigurableGroup {
121+ O2_DEFINE_CONFIGURABLE (cfgEvSelV0AT0ACut, bool , false , " V0A T0A 5 sigma cut" )
121122 Configurable<std::vector<double >> cfgTrackDensityP0{" cfgTrackDensityP0" , std::vector<double >{0.7217476707 , 0.7384792571 , 0.7542625668 , 0.7640680200 , 0.7701951667 , 0.7755299053 , 0.7805901710 , 0.7849446786 , 0.7957356586 , 0.8113039262 , 0.8211968966 , 0.8280558878 , 0.8329342135 }, " parameter 0 for track density efficiency correction" };
122123 Configurable<std::vector<double >> cfgTrackDensityP1{" cfgTrackDensityP1" , std::vector<double >{-2.169488e-05 , -2.191913e-05 , -2.295484e-05 , -2.556538e-05 , -2.754463e-05 , -2.816832e-05 , -2.846502e-05 , -2.843857e-05 , -2.705974e-05 , -2.477018e-05 , -2.321730e-05 , -2.203315e-05 , -2.109474e-05 }, " parameter 1 for track density efficiency correction" };
123124 O2_DEFINE_CONFIGURABLE (cfgMultCentHighCutFunction, std::string, " [0] + [1]*x + [2]*x*x + [3]*x*x*x + [4]*x*x*x*x + 10.*([5] + [6]*x + [7]*x*x + [8]*x*x*x + [9]*x*x*x*x)" , " Functional for multiplicity correlation cut" );
@@ -888,9 +889,9 @@ struct FlowTask {
888889
889890 // V0A T0A 5 sigma cut
890891 float sigma = 5.0 ;
891- if (cfgEvSelV0AT0ACut && (std::fabs (collision.multFV0A () - cfgFuncParas.fT0AV0AMean ->Eval (collision.multFT0A ())) > sigma * cfgFuncParas.fT0AV0ASigma ->Eval (collision.multFT0A ())))
892+ if (cfgFuncParas. cfgEvSelV0AT0ACut && (std::fabs (collision.multFV0A () - cfgFuncParas.fT0AV0AMean ->Eval (collision.multFT0A ())) > sigma * cfgFuncParas.fT0AV0ASigma ->Eval (collision.multFT0A ())))
892893 return 0 ;
893- if (cfgEvSelV0AT0ACut)
894+ if (cfgFuncParas. cfgEvSelV0AT0ACut )
894895 registry.fill (HIST (" hEventCountSpecific" ), 11.5 );
895896
896897 return 1 ;
@@ -1175,6 +1176,9 @@ struct FlowTask {
11751176 fillPtSums<kReco >(track, weff);
11761177 }
11771178 registry.fill (HIST (" hTrackCorrection2d" ), tracks.size (), nTracksCorrected);
1179+ if (cfgUseNch && cfgUseNchCorrected) {
1180+ independent = nTracksCorrected;
1181+ }
11781182
11791183 if (cfgFuncParas.cfgDptDisEnable ) {
11801184 double meanPt = ptSum / weffEvent;
0 commit comments