From 7637d7fd5f8877f68174e2d7336ff267a1720d06 Mon Sep 17 00:00:00 2001 From: spolitan Date: Thu, 7 May 2026 15:31:03 +0200 Subject: [PATCH] [Common, PWGHF] Decouple EsE and EP Q vector correction --- Common/TableProducer/qVectorsTable.cxx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Common/TableProducer/qVectorsTable.cxx b/Common/TableProducer/qVectorsTable.cxx index 574c370a16a..ce5152aace6 100644 --- a/Common/TableProducer/qVectorsTable.cxx +++ b/Common/TableProducer/qVectorsTable.cxx @@ -309,19 +309,21 @@ struct qVectorsTable { corrsQvecSp.push_back(modeCorrQvecSp); } - corrsQvecEse.clear(); - for (std::size_t i = 0; i < cfgnMods->size(); i++) { - int ind = cfgnMods->at(i); - fullPath = cfgQvecCalibPath; - fullPath += "/eseq"; - fullPath += std::to_string(ind); - auto modeCorrQvecEse = getForTsOrRun(fullPath, timestamp, runnumber); - if (!modeCorrQvecEse) { + if (cfgProduceRedQVecs) { + corrsQvecEse.clear(); + for (std::size_t i = 0; i < cfgnMods->size(); i++) { + int ind = cfgnMods->at(i); fullPath = cfgQvecCalibPath; - fullPath += "/eseq2"; - modeCorrQvecEse = getForTsOrRun(fullPath, timestamp, runnumber); + fullPath += "/eseq"; + fullPath += std::to_string(ind); + auto modeCorrQvecEse = getForTsOrRun(fullPath, timestamp, runnumber); + if (!modeCorrQvecEse) { + fullPath = cfgQvecCalibPath; + fullPath += "/eseq2"; + modeCorrQvecEse = getForTsOrRun(fullPath, timestamp, runnumber); + } + corrsQvecEse.push_back(modeCorrQvecEse); } - corrsQvecEse.push_back(modeCorrQvecEse); } if (cfgShiftCorr) {