@@ -115,6 +115,9 @@ struct JflucWeightsLoader {
115115 LOGF (fatal, " NUA correction weights file not found: %s" , cfgPathPhiWeights.value .substr (8 ).c_str ());
116116 }
117117 useNUAFromCCDB = false ;
118+ } else if (cfgPathPhiWeights.value == " " ) {
119+ LOGF (info, " No NUA corrections provided." );
120+ useNUAFromCCDB = false ;
118121 } else {
119122 LOGF (info, " Assuming NUA corrections from CCDB." );
120123 useNUAFromCCDB = true ;
@@ -136,6 +139,9 @@ struct JflucWeightsLoader {
136139 LOGF (info, " Loaded efficiency correction histogram locally." );
137140 }
138141 useEffFromCCDB = false ;
142+ } else if (cfgPathEffWeights.value == " " ) {
143+ LOGF (info, " No efficiency corrections provided." );
144+ useEffFromCCDB = false ;
139145 } else {
140146 LOGF (info, " Assuming efficiency corrections from CCDB." );
141147 useEffFromCCDB = true ;
@@ -169,10 +175,9 @@ struct JflucWeightsLoader {
169175 initCCDB (collision.runNumber (), timestamp, kNUA );
170176 LOGF (info, " Loaded NUA correction histogram from CCDB for run %d." , collision.runNumber ());
171177 }
172- runNumber = collision.runNumber ();
173178 }
174179 }
175- if (pfeff) {
180+ if (pfeff || useEffFromCCDB ) {
176181 if (collision.runNumber () != runNumber) {
177182 if (pheff)
178183 delete pheff;
@@ -188,6 +193,10 @@ struct JflucWeightsLoader {
188193 }
189194 }
190195 }
196+
197+ // Set run number after reading corrections
198+ runNumber = collision.runNumber ();
199+
191200 for (const auto & track : tracks) {
192201 float phiWeight, effWeight;
193202 if (ph) {
0 commit comments