File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,19 +309,21 @@ struct qVectorsTable {
309309 corrsQvecSp.push_back (modeCorrQvecSp);
310310 }
311311
312- corrsQvecEse.clear ();
313- for (std::size_t i = 0 ; i < cfgnMods->size (); i++) {
314- int ind = cfgnMods->at (i);
315- fullPath = cfgQvecCalibPath;
316- fullPath += " /eseq" ;
317- fullPath += std::to_string (ind);
318- auto modeCorrQvecEse = getForTsOrRun<TH3F>(fullPath, timestamp, runnumber);
319- if (!modeCorrQvecEse) {
312+ if (cfgProduceRedQVecs) {
313+ corrsQvecEse.clear ();
314+ for (std::size_t i = 0 ; i < cfgnMods->size (); i++) {
315+ int ind = cfgnMods->at (i);
320316 fullPath = cfgQvecCalibPath;
321- fullPath += " /eseq2" ;
322- modeCorrQvecEse = getForTsOrRun<TH3F>(fullPath, timestamp, runnumber);
317+ fullPath += " /eseq" ;
318+ fullPath += std::to_string (ind);
319+ auto modeCorrQvecEse = getForTsOrRun<TH3F>(fullPath, timestamp, runnumber);
320+ if (!modeCorrQvecEse) {
321+ fullPath = cfgQvecCalibPath;
322+ fullPath += " /eseq2" ;
323+ modeCorrQvecEse = getForTsOrRun<TH3F>(fullPath, timestamp, runnumber);
324+ }
325+ corrsQvecEse.push_back (modeCorrQvecEse);
323326 }
324- corrsQvecEse.push_back (modeCorrQvecEse);
325327 }
326328
327329 if (cfgShiftCorr) {
You can’t perform that action at this time.
0 commit comments