From 90353b8edb5a8eaec827663da472f1a4abb0f963 Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Sun, 21 Sep 2025 17:18:46 +0200 Subject: [PATCH 1/2] Update list of MC productions that require TOF PID recalibration for HF --- PWGHF/TableProducer/mcPidTof.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGHF/TableProducer/mcPidTof.cxx b/PWGHF/TableProducer/mcPidTof.cxx index 70e3d04f17e..b1760776528 100644 --- a/PWGHF/TableProducer/mcPidTof.cxx +++ b/PWGHF/TableProducer/mcPidTof.cxx @@ -755,8 +755,8 @@ struct mcPidTof { Configurable ccdbPath{"ccdbPath", "Users/f/fgrosa/RecalibmcPidTof/", "path for MC recalibration objects in CCDB"}; } mcRecalib; - // list of productions for which the postcalibrations must be turned off (FT0 digitisation fixed) - const std::vector prodNoPostCalib = {"LHC24h1c"}; + // list of productions for which the postcalibrations is needed (bug in FT0 digitisation) + const std::vector prodPostCalib = {"LHC24d3a", "LHC24d3b", "LHC24e3", "LHC24g5", "LHC24g6", "LHC24h2", "LHC24i1", "LHC24i2", "LHC24i3", "LHC24i4", "LHC24j6", "LHC24k3", "LHC24f3c", "LHC25e2", "LHC24h1b", "LHC25e4", "LHC25f5", "LHC25e8", "LHC25e9", "LHC25e10", "LHC25e11", "LHC23k4"}; bool enableMcRecalib{false}; HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject}; @@ -894,7 +894,7 @@ struct mcPidTof { std::map metadata; if (metadataInfo.isFullyDefined()) { metadata["RecoPassName"] = metadataInfo.get("AnchorPassName"); - if (std::find(prodNoPostCalib.begin(), prodNoPostCalib.end(), metadataInfo.get("LPMProductionTag")) != prodNoPostCalib.end()) { + if (!std::find(prodPostCalib.begin(), prodPostCalib.end(), metadataInfo.get("LPMProductionTag")) != prodPostCalib.end()) { enableMcRecalib = false; LOGP(warn, "Nsigma postcalibrations turned off for {} (new MC productions have FT0 digitisation fixed)", metadataInfo.get("LPMProductionTag")); } From 2d051709266c47bba4f399a8a7f2657bf55dfd3c Mon Sep 17 00:00:00 2001 From: Fabrizio Grosa Date: Sun, 21 Sep 2025 17:19:44 +0200 Subject: [PATCH 2/2] Fix typo --- PWGHF/TableProducer/mcPidTof.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGHF/TableProducer/mcPidTof.cxx b/PWGHF/TableProducer/mcPidTof.cxx index b1760776528..3cb4d814318 100644 --- a/PWGHF/TableProducer/mcPidTof.cxx +++ b/PWGHF/TableProducer/mcPidTof.cxx @@ -894,7 +894,7 @@ struct mcPidTof { std::map metadata; if (metadataInfo.isFullyDefined()) { metadata["RecoPassName"] = metadataInfo.get("AnchorPassName"); - if (!std::find(prodPostCalib.begin(), prodPostCalib.end(), metadataInfo.get("LPMProductionTag")) != prodPostCalib.end()) { + if (std::find(prodPostCalib.begin(), prodPostCalib.end(), metadataInfo.get("LPMProductionTag")) == prodPostCalib.end()) { enableMcRecalib = false; LOGP(warn, "Nsigma postcalibrations turned off for {} (new MC productions have FT0 digitisation fixed)", metadataInfo.get("LPMProductionTag")); }