@@ -602,25 +602,26 @@ struct FlowSP {
602602 cfg.mAcceptance .push_back (reinterpret_cast <GFWWeights*>(listCorrections->FindObject (" weights_positive" )));
603603 cfg.mAcceptance .push_back (reinterpret_cast <GFWWeights*>(listCorrections->FindObject (" weights_negative" )));
604604 int sizeAcc = cfg.mAcceptance .size ();
605- if (sizeAcc < nWeights) {
605+ if (sizeAcc < nWeights)
606606 LOGF (warning, " Could not load acceptance weights from %s" , cfgNUA.value .c_str ());
607- else LOGF (info, " Loaded acceptance weights from %s" , cfgNUA.value .c_str ());
608- } else {
609- LOGF (info, " cfgNUA empty! No corrections loaded" );
610- }
611- if (cfgNUE.value .empty () == false ) {
612- TList* listCorrections = ccdb->getForTimeStamp <TList>(cfgNUE, timestamp);
613- cfg.mEfficiency .push_back (reinterpret_cast <TH1D*>(listCorrections->FindObject (" Efficiency" )));
614- cfg.mEfficiency .push_back (reinterpret_cast <TH1D*>(listCorrections->FindObject (" Efficiency_pos" )));
615- cfg.mEfficiency .push_back (reinterpret_cast <TH1D*>(listCorrections->FindObject (" Efficiency_neg" )));
616- int sizeEff = cfg.mEfficiency .size ();
617- if (sizeEff < nWeights) {
618- LOGF (fatal, " Could not load efficiency histogram for trigger particles from %s" , cfgNUE.value .c_str ());
619- }
607+ else
608+ LOGF (info, " Loaded acceptance weights from %s" , cfgNUA.value .c_str ());
609+ } else {
610+ LOGF (info, " cfgNUA empty! No corrections loaded" );
611+ }
612+ if (cfgNUE.value .empty () == false ) {
613+ TList* listCorrections = ccdb->getForTimeStamp <TList>(cfgNUE, timestamp);
614+ cfg.mEfficiency .push_back (reinterpret_cast <TH1D*>(listCorrections->FindObject (" Efficiency" )));
615+ cfg.mEfficiency .push_back (reinterpret_cast <TH1D*>(listCorrections->FindObject (" Efficiency_pos" )));
616+ cfg.mEfficiency .push_back (reinterpret_cast <TH1D*>(listCorrections->FindObject (" Efficiency_neg" )));
617+ int sizeEff = cfg.mEfficiency .size ();
618+ if (sizeEff < nWeights)
619+ LOGF (fatal, " Could not load efficiency histogram for trigger particles from %s" , cfgNUE.value .c_str ());
620+ else
620621 LOGF (info, " Loaded efficiency histogram from %s" , cfgNUE.value .c_str ());
621- } else {
622- LOGF (info, " cfgNUE empty! No corrections loaded" );
623- }
622+ } else {
623+ LOGF (info, " cfgNUE empty! No corrections loaded" );
624+ }
624625 cfg.correctionsLoaded = true ;
625626 }
626627
@@ -708,7 +709,7 @@ struct FlowSP {
708709 float zRes = std::sqrt (collision.covZZ ());
709710 float minzRes = 0.25 ;
710711 int maxNumContrib = 20 ;
711- if (zRes > minzRes && collision.numContrib () < maxNumContrib) {
712+ if (zRes > minzRes && collision.numContrib () < maxNumContrib)
712713 vtxz = -999 ;
713714 }
714715
0 commit comments