From 647149e4cbeb9520c1b2b4e34acfe757953e9b2c Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Wed, 16 Jul 2025 12:03:21 +0200 Subject: [PATCH 1/3] Update MultModule.h --- Common/Tools/MultModule.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Common/Tools/MultModule.h b/Common/Tools/MultModule.h index 08904a21f61..c559b59dfab 100644 --- a/Common/Tools/MultModule.h +++ b/Common/Tools/MultModule.h @@ -413,8 +413,8 @@ class MultModule CalibrationInfo nGlobalInfo = CalibrationInfo("NGlobal"); CalibrationInfo mftInfo = CalibrationInfo("MFT"); - template - void init(TConfigurables& opts, TInitContext& context) + template + void init(TMetadatainfo const& metadataInfo, TConfigurables& opts, TInitContext& context) { // read in configurations from the task where it's used internalOpts = opts; @@ -484,6 +484,11 @@ class MultModule listOfRequestors[kMultsGlobal].Append(Form("%s ", "dependency check")); } + // capture the need for PYTHIA calibration in Pb-Pb runs + if(metadataInfo.isMC() && mRunNumber>=544013 && mRunNumber<=545367){ + internalOpts.generatorName.value = "PYTHIA"; + } + mRunNumber = 0; mRunNumberCentrality = 0; lCalibLoaded = false; From 96d4ecb21ba6742bf7d069ee36e4163d4499d9c9 Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Wed, 16 Jul 2025 12:03:52 +0200 Subject: [PATCH 2/3] Update multCentTable.cxx --- Common/TableProducer/multCentTable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/TableProducer/multCentTable.cxx b/Common/TableProducer/multCentTable.cxx index 612125715cf..5b0e2c16d55 100644 --- a/Common/TableProducer/multCentTable.cxx +++ b/Common/TableProducer/multCentTable.cxx @@ -75,7 +75,7 @@ struct MultCentTable { ccdb->setFatalWhenNull(false); // please never crash on your own, all exceptions captured (as they always should) // task-specific - module.init(opts, initContext); + module.init(metadataInfo, opts, initContext); } void processRun2(soa::Join const& collisions, From ff214e716b5a86c0d5bd6588f33e46e023229209 Mon Sep 17 00:00:00 2001 From: ALICE Builder Date: Wed, 16 Jul 2025 12:16:12 +0200 Subject: [PATCH 3/3] Please consider the following formatting changes (#438) --- Common/Tools/MultModule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Tools/MultModule.h b/Common/Tools/MultModule.h index c559b59dfab..f064d60f1f9 100644 --- a/Common/Tools/MultModule.h +++ b/Common/Tools/MultModule.h @@ -485,7 +485,7 @@ class MultModule } // capture the need for PYTHIA calibration in Pb-Pb runs - if(metadataInfo.isMC() && mRunNumber>=544013 && mRunNumber<=545367){ + if (metadataInfo.isMC() && mRunNumber >= 544013 && mRunNumber <= 545367) { internalOpts.generatorName.value = "PYTHIA"; }