From 871f816af9f5e2b5925c3ea42d642d9bad7e2ed0 Mon Sep 17 00:00:00 2001 From: cnkoster Date: Thu, 15 Jan 2026 16:51:52 +0100 Subject: [PATCH 1/2] move centrality def --- PWGCF/Flow/TableProducer/zdcQVectors.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGCF/Flow/TableProducer/zdcQVectors.cxx b/PWGCF/Flow/TableProducer/zdcQVectors.cxx index 9e902690923..76e18885d45 100644 --- a/PWGCF/Flow/TableProducer/zdcQVectors.cxx +++ b/PWGCF/Flow/TableProducer/zdcQVectors.cxx @@ -724,7 +724,6 @@ struct ZdcQVectors { std::vector centralities; auto cent = collision.centFT0C(); - centrality = cent; centralities.push_back(collision.centFT0C()); @@ -751,6 +750,7 @@ struct ZdcQVectors { v = {collision.posX(), collision.posY(), collision.posZ()}; cents = centralities; + centrality = cent; const auto& foundBC = collision.foundBC_as(); runnumber = foundBC.runNumber(); From 9bd1d13423cf3725126efaef9b5003bb88e5ac35 Mon Sep 17 00:00:00 2001 From: cnkoster Date: Mon, 19 Jan 2026 17:33:45 +0100 Subject: [PATCH 2/2] Add possibility to recenter without gain eq --- PWGCF/Flow/TableProducer/zdcQVectors.cxx | 29 ++++++++++++++---------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/PWGCF/Flow/TableProducer/zdcQVectors.cxx b/PWGCF/Flow/TableProducer/zdcQVectors.cxx index 76e18885d45..44cb3b4d012 100644 --- a/PWGCF/Flow/TableProducer/zdcQVectors.cxx +++ b/PWGCF/Flow/TableProducer/zdcQVectors.cxx @@ -156,6 +156,7 @@ struct ZdcQVectors { O2_DEFINE_CONFIGURABLE(cfgFillHistRegistry, bool, true, "Fill common registry with histograms"); O2_DEFINE_CONFIGURABLE(cfgFillCutAnalysis, bool, true, "Fill cut analysis with histograms"); O2_DEFINE_CONFIGURABLE(cfgFillNothing, bool, false, "Disable ALL Histograms -> ONLY use to reduce memory"); + O2_DEFINE_CONFIGURABLE(cfgNoGain, bool, false, "Do not apply gain correction to ZDC energy calibration"); O2_DEFINE_CONFIGURABLE(cfgCCDBdir_Shift, std::string, "Users/c/ckoster/ZDC/LHC23_PbPb_pass5/Shift", "CCDB directory for Shift ZDC"); @@ -992,6 +993,22 @@ struct ZdcQVectors { } } + if (cfgFillHistRegistry && !cfgFillNothing) { + registry.get(HIST("QA/before/ZNA_Qx"))->Fill(Form("%d", runnumber), q[0]); + registry.get(HIST("QA/before/ZNA_Qy"))->Fill(Form("%d", runnumber), q[1]); + registry.get(HIST("QA/before/ZNC_Qx"))->Fill(Form("%d", runnumber), q[2]); + registry.get(HIST("QA/before/ZNC_Qy"))->Fill(Form("%d", runnumber), q[3]); + + registry.get(HIST("QA/before/ZNA_Qx_noEq"))->Fill(Form("%d", runnumber), qNoEq[0]); + registry.get(HIST("QA/before/ZNA_Qy_noEq"))->Fill(Form("%d", runnumber), qNoEq[1]); + registry.get(HIST("QA/before/ZNC_Qx_noEq"))->Fill(Form("%d", runnumber), qNoEq[2]); + registry.get(HIST("QA/before/ZNC_Qy_noEq"))->Fill(Form("%d", runnumber), qNoEq[3]); + } + + if(cfgNoGain){ + q = qNoEq; + } + if (cal.calibfilesLoaded[1]) { v[0] = v[0] - getCorrection(vnames[0].Data()); v[1] = v[1] - getCorrection(vnames[1].Data()); @@ -1008,18 +1025,6 @@ struct ZdcQVectors { std::vector qRec(q); - if (cfgFillHistRegistry && !cfgFillNothing) { - registry.get(HIST("QA/before/ZNA_Qx"))->Fill(Form("%d", runnumber), q[0]); - registry.get(HIST("QA/before/ZNA_Qy"))->Fill(Form("%d", runnumber), q[1]); - registry.get(HIST("QA/before/ZNC_Qx"))->Fill(Form("%d", runnumber), q[2]); - registry.get(HIST("QA/before/ZNC_Qy"))->Fill(Form("%d", runnumber), q[3]); - - registry.get(HIST("QA/before/ZNA_Qx_noEq"))->Fill(Form("%d", runnumber), qNoEq[0]); - registry.get(HIST("QA/before/ZNA_Qy_noEq"))->Fill(Form("%d", runnumber), qNoEq[1]); - registry.get(HIST("QA/before/ZNC_Qx_noEq"))->Fill(Form("%d", runnumber), qNoEq[2]); - registry.get(HIST("QA/before/ZNC_Qy_noEq"))->Fill(Form("%d", runnumber), qNoEq[3]); - } - if (cal.atIteration == 0) { if (isSelected && cfgFillHistRegistry) fillCommonRegistry(q[0], q[1], q[2], q[3], v, centrality);