@@ -97,6 +97,7 @@ struct qVectorsTable {
9797 Configurable<bool > useCorrectionForRun{" useCorrectionForRun" , true , " Get Qvector corrections based on run number instead of timestamp" };
9898 Configurable<std::string> cfgGainEqPath{" cfgGainEqPath" , " Users/j/junlee/Qvector/GainEq" , " CCDB path for gain equalization constants" };
9999 Configurable<std::string> cfgQvecCalibPath{" cfgQvecCalibPath" , " Analysis/EventPlane/QVecCorrections" , " CCDB pasth for Q-vecteor calibration constants" };
100+
100101 Configurable<bool > cfgShiftCorr{" cfgShiftCorr" , false , " configurable flag for shift correction" };
101102 Configurable<std::string> cfgShiftPath{" cfgShiftPath" , " " , " CCDB path for shift correction" };
102103
@@ -188,7 +189,7 @@ struct qVectorsTable {
188189 void init (InitContext& initContext)
189190 {
190191 // Check the sub-detector used
191- auto & workflows = initContext.services ().get <RunningWorkflowInfo const >();
192+ const auto & workflows = initContext.services ().get <RunningWorkflowInfo const >();
192193 for (DeviceSpec const & device : workflows.devices ) {
193194 for (auto const & input : device.inputs ) {
194195 if (input.matcher .binding == " Qvectors" ) {
@@ -280,19 +281,19 @@ struct qVectorsTable {
280281
281282 if (cfgShiftCorr) {
282283 shiftprofile.clear ();
283- for (std::size_t i = 0 ; i < cfgnMods->size (); i++) {
284+ for (std::size_t i = 0 ; i < cfgnMods->size (); i++) {
284285 int ind = cfgnMods->at (i);
285286 fullPath = cfgShiftPath;
286287 fullPath += " /v" ;
287288 fullPath += std::to_string (ind);
288289 auto objshift = getForTsOrRun<TProfile3D>(fullPath, timestamp, runnumber);
289290 shiftprofile.push_back (objshift);
290291 }
291- }
292+ }
292293
293294 fullPath = cfgGainEqPath;
294295 fullPath += " /FT0" ;
295- auto objft0Gain = getForTsOrRun<std::vector<float >>(fullPath, timestamp, runnumber);
296+ const auto objft0Gain = getForTsOrRun<std::vector<float >>(fullPath, timestamp, runnumber);
296297 if (!objft0Gain || cfgCorrLevel == 0 ) {
297298 for (auto i{0u }; i < 208 ; i++) {
298299 FT0RelGainConst.push_back (1 .);
@@ -303,7 +304,7 @@ struct qVectorsTable {
303304
304305 fullPath = cfgGainEqPath;
305306 fullPath += " /FV0" ;
306- auto objfv0Gain = getForTsOrRun<std::vector<float >>(fullPath, timestamp, runnumber);
307+ const auto objfv0Gain = getForTsOrRun<std::vector<float >>(fullPath, timestamp, runnumber);
307308 if (!objfv0Gain || cfgCorrLevel == 0 ) {
308309 for (auto i{0u }; i < 48 ; i++) {
309310 FV0RelGainConst.push_back (1 .);
0 commit comments