@@ -89,8 +89,8 @@ struct FlowGFWOmegaXi {
8989 O2_DEFINE_CONFIGURABLE (cfgNSigmaCascProton, float , 3 , " NSigmaCascProton" )
9090 O2_DEFINE_CONFIGURABLE (cfgNSigmaCascKaon, float , 3 , " NSigmaCascKaon" )
9191 O2_DEFINE_CONFIGURABLE (cfgOutputNUAWeights, bool , true , " Fill and output NUA weights" )
92- O2_DEFINE_CONFIGURABLE (cfgAcceptancePath, std::vector<std::string>, std::vector<std::string>{" PathtoRef " } , " CCDB path to acceptance object" )
93- O2_DEFINE_CONFIGURABLE (cfgEfficiencyPath, std::vector<std::string>, std::vector<std::string>{" PathtoRef " } , " CCDB path to efficiency object" )
92+ O2_DEFINE_CONFIGURABLE (cfgAcceptancePath, std::vector<std::string>, ( std::vector<std::string>{" Users/f/fcui/NUA/NUAREFPartical " , " Users/f/fcui/NUA/NUAK0s " , " Users/f/fcui/NUA/NUALambda " , " Users/f/fcui/NUA/NUAXi " , " Users/f/fcui/NUA/NUAOmega " }) , " CCDB path to acceptance object" )
93+ O2_DEFINE_CONFIGURABLE (cfgEfficiencyPath, std::vector<std::string>, ( std::vector<std::string>{" NUEREF " }) , " CCDB path to efficiency object" )
9494
9595 ConfigurableAxis cfgaxisVertex{" axisVertex" , {20 , -10 , 10 }, " vertex axis for histograms" };
9696 ConfigurableAxis cfgaxisPhi{" axisPhi" , {60 , 0.0 , constants::math::TwoPI}, " phi axis for histograms" };
@@ -319,6 +319,7 @@ struct FlowGFWOmegaXi {
319319 fWeightsOmega ->SetPtBins (nPtBins, &(axisPt.binEdges )[0 ]);
320320 fWeightsOmega ->Init (true , false );
321321 }
322+
322323 }
323324
324325 template <char ... chars>
@@ -401,16 +402,19 @@ struct FlowGFWOmegaXi {
401402 {
402403 if (correctionsLoaded)
403404 return ;
404- if (cfgAcceptance.size () == 5 && cfgEfficiency. size () == 5 ) {
405+ if (cfgAcceptance.size () == 5 ) {
405406 for (int i = 0 ; i <= 4 ; i++) {
406407 mAcceptance .push_back (ccdb->getForTimeStamp <GFWWeights>(cfgAcceptance[i], timestamp));
407- mEfficiency .push_back (ccdb->getForTimeStamp <TH1D>(cfgEfficiency[i], timestamp));
408408 }
409409 if (mAcceptance .size () == 5 )
410410 LOGF (info, " Loaded acceptance weights" );
411411 else
412412 LOGF (warning, " Could not load acceptance weights" );
413-
413+ }
414+ if (cfgEfficiency.size () == 5 ) {
415+ for (int i = 0 ; i <= 4 ; i++) {
416+ mAcceptance .push_back (ccdb->getForTimeStamp <GFWWeights>(cfgAcceptance[i], timestamp));
417+ }
414418 if (mEfficiency .size () == 5 )
415419 LOGF (fatal, " Could not load efficiency histogram" );
416420
0 commit comments