@@ -96,6 +96,7 @@ struct FlowQa {
9696 O2_DEFINE_CONFIGURABLE (cfgCutOccupancyLow, int , 0 , " Low cut on TPC occupancy" )
9797 O2_DEFINE_CONFIGURABLE (cfgUseSmallMemory, bool , false , " Use small memory mode" )
9898 O2_DEFINE_CONFIGURABLE (cfgUseEPcorrection, bool , false , " Use event plane efficiency correction" )
99+ O2_DEFINE_CONFIGURABLE (cfgUseEPEffSlopeFactor, float , 1 .0f , " A factor to scale the EP efficiency slope" )
99100 Configurable<std::vector<std::string>> cfgUserDefineGFWCorr{" cfgUserDefineGFWCorr" , std::vector<std::string>{" refN02 {2} refP02 {-2}" , " refN12 {2} refP12 {-2}" }, " User defined GFW CorrelatorConfig" };
100101 Configurable<std::vector<std::string>> cfgUserDefineGFWName{" cfgUserDefineGFWName" , std::vector<std::string>{" Ch02Gap22" , " Ch12Gap22" }, " User defined GFW Name" };
101102 Configurable<std::vector<int >> cfgRunRemoveList{" cfgRunRemoveList" , std::vector<int >{-1 }, " excluded run numbers" };
@@ -366,20 +367,20 @@ struct FlowQa {
366367 if (cfgUseEPcorrection) {
367368 hFindPtBin = new TH1D (" hFindPtBin" , " hFindPtBin" , 7 , 0.2 , 3.0 );
368369 funcEff.resize (7 );
369- funcEff[0 ] = new TF1 (" funcEff0" , " [0]+[1]*x+[2]*(2*x*x - 1)+[3]*(4*x*x*x - 3*x)+[4]*(8*x*x*x*x - 8*x*x + 1) " , 0 , 3000 );
370- funcEff[0 ]->SetParameters (0.7366162408 , -2.11923e -05 , 1.5258e-09 , - 2.23824e-12 , 4.53824e-16 );
371- funcEff[1 ] = new TF1 (" funcEff1" , " [0]+[1]*x+[2]*(2*x*x - 1)+[3]*(4*x*x*x - 3*x)+[4]*(8*x*x*x*x - 8*x*x + 1) " , 0 , 3000 );
372- funcEff[1 ]->SetParameters (0.7742102264 , -2.50337e -05 , - 1.12602e-09 , - 1.38765e-12 , 3.86733e-16 );
373- funcEff[2 ] = new TF1 (" funcEff2" , " [0]+[1]*x+[2]*(2*x*x - 1)+[3]*(4*x*x*x - 3*x)+[4]*(8*x*x*x*x - 8*x*x + 1) " , 0 , 3000 );
374- funcEff[2 ]->SetParameters (0.7933082148 , -2.24092e -05 , - 2.55079e-09 , - 8.59327e-13 , 3.1966e-16 );
375- funcEff[3 ] = new TF1 (" funcEff3" , " [0]+[1]*x+[2]*(2*x*x - 1)+[3]*(4*x*x*x - 3*x)+[4]*(8*x*x*x*x - 8*x*x + 1) " , 0 , 3000 );
376- funcEff[3 ]->SetParameters (0.8084143879 , -1.88185e -05, - 3.26378e-09 , - 6.57021e-13 , 2.92597e-16 );
377- funcEff[4 ] = new TF1 (" funcEff4" , " [0]+[1]*x+[2]*(2*x*x - 1)+[3]*(4*x*x*x - 3*x)+[4]*(8*x*x*x*x - 8*x*x + 1) " , 0 , 3000 );
378- funcEff[4 ]->SetParameters (0.8160584679 , -4.0401e-06 , - 1.5118e-08 , 3.22423e-12 , - 1.21729e-16 );
379- funcEff[5 ] = new TF1 (" funcEff5" , " [0]+[1]*x+[2]*(2*x*x - 1)+[3]*(4*x*x*x - 3*x)+[4]*(8*x*x*x*x - 8*x*x + 1) " , 0 , 3000 );
380- funcEff[5 ]->SetParameters (0.8245747952 , -1.88827e -05, 9.88837e-10 , - 2.23894e-12 , 4.62594e-16 );
381- funcEff[6 ] = new TF1 (" funcEff6" , " [0]+[1]*x+[2]*(2*x*x - 1)+[3]*(4*x*x*x - 3*x)+[4]*(8*x*x*x*x - 8*x*x + 1) " , 0 , 3000 );
382- funcEff[6 ]->SetParameters (0.8277255051 , -1.07687e -05, - 3.9408e-09 , - 8.7277e-13 , 3.3104e-16 );
370+ funcEff[0 ] = new TF1 (" funcEff0" , " [0]+[1]*x" , 0 , 3000 );
371+ funcEff[0 ]->SetParameters (0.736274 , -2.26721e -05 * cfgUseEPEffSlopeFactor );
372+ funcEff[1 ] = new TF1 (" funcEff1" , " [0]+[1]*x" , 0 , 3000 );
373+ funcEff[1 ]->SetParameters (0.773396 , -2.79496e -05 * cfgUseEPEffSlopeFactor );
374+ funcEff[2 ] = new TF1 (" funcEff2" , " [0]+[1]*x" , 0 , 3000 );
375+ funcEff[2 ]->SetParameters (0.792831 , -2.69748e -05 * cfgUseEPEffSlopeFactor );
376+ funcEff[3 ] = new TF1 (" funcEff3" , " [0]+[1]*x" , 0 , 3000 );
377+ funcEff[3 ]->SetParameters (0.808402 , -2.48438e -05 * cfgUseEPEffSlopeFactor );
378+ funcEff[4 ] = new TF1 (" funcEff4" , " [0]+[1]*x" , 0 , 3000 );
379+ funcEff[4 ]->SetParameters (0.817907 , -2.31138e-05 * cfgUseEPEffSlopeFactor );
380+ funcEff[5 ] = new TF1 (" funcEff5" , " [0]+[1]*x" , 0 , 3000 );
381+ funcEff[5 ]->SetParameters (0.82473 , -2.20517e -05 * cfgUseEPEffSlopeFactor );
382+ funcEff[6 ] = new TF1 (" funcEff6" , " [0]+[1]*x" , 0 , 3000 );
383+ funcEff[6 ]->SetParameters (0.829151 , -2.0758e -05 * cfgUseEPEffSlopeFactor );
383384 funcV2 = new TF1 (" funcV2" , " [0]+[1]*x+[2]*x*x+[3]*x*x*x+[4]*x*x*x*x" , 0 , 100 );
384385 funcV2->SetParameters (0.0186111 , 0.00351907 , -4.38264e-05 , 1.35383e-07 , -3.96266e-10 );
385386 funcV3 = new TF1 (" funcV3" , " [0]+[1]*x+[2]*x*x+[3]*x*x*x+[4]*x*x*x*x" , 0 , 100 );
@@ -749,7 +750,10 @@ struct FlowQa {
749750 int pTBinForEff = hFindPtBin->FindBin (track.pt ());
750751 if (pTBinForEff >= 1 && pTBinForEff <= 7 ) {
751752 wEPeff = funcEff[pTBinForEff - 1 ]->Eval (fphi * tracks.size ());
752- weff *= wEPeff;
753+ if (wEPeff > 0 .) {
754+ wEPeff = 1 . / wEPeff;
755+ weff *= wEPeff;
756+ }
753757 }
754758 }
755759 registry.fill (HIST (" hPt" ), track.pt ());
0 commit comments