Skip to content

Commit 6835d13

Browse files
[Common] Decouple EsE and EP Q vector correction (#16148)
1 parent 7e07d1f commit 6835d13

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

Common/TableProducer/qVectorsTable.cxx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)