@@ -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>{" PathtoRef" }) , " 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" };
@@ -401,20 +401,23 @@ struct FlowGFWOmegaXi {
401401 {
402402 if (correctionsLoaded)
403403 return ;
404- if (cfgAcceptance.size () == 5 && cfgEfficiency. size () == 5 ) {
404+ if (cfgAcceptance.size () == 5 ) {
405405 for (int i = 0 ; i <= 4 ; i++) {
406406 mAcceptance .push_back (ccdb->getForTimeStamp <GFWWeights>(cfgAcceptance[i], timestamp));
407- mEfficiency .push_back (ccdb->getForTimeStamp <TH1D>(cfgEfficiency[i], timestamp));
408407 }
409408 if (mAcceptance .size () == 5 )
410409 LOGF (info, " Loaded acceptance weights" );
411410 else
412411 LOGF (warning, " Could not load acceptance weights" );
413-
412+ }
413+ if (cfgEfficiency.size () == 5 ) {
414+ for (int i = 0 ; i <= 4 ; i++) {
415+ mAcceptance .push_back (ccdb->getForTimeStamp <GFWWeights>(cfgAcceptance[i], timestamp));
416+ }
414417 if (mEfficiency .size () == 5 )
418+ LOGF (info, " Loaded efficiency histogram" );
419+ else
415420 LOGF (fatal, " Could not load efficiency histogram" );
416-
417- LOGF (info, " Loaded efficiency histogram" );
418421 }
419422 correctionsLoaded = true ;
420423 }
0 commit comments