Skip to content

Commit 9d2fc03

Browse files
ddobrigkalibuild
andauthored
[Common] Adjust PYTHIA autodetect for Pb-Pb (#12080)
Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
1 parent 693216b commit 9d2fc03

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Common/TableProducer/multCentTable.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct MultCentTable {
7575
ccdb->setFatalWhenNull(false); // please never crash on your own, all exceptions captured (as they always should)
7676

7777
// task-specific
78-
module.init(opts, initContext);
78+
module.init(metadataInfo, opts, initContext);
7979
}
8080

8181
void processRun2(soa::Join<aod::Collisions, aod::Run2MatchedSparse> const& collisions,

Common/Tools/MultModule.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ class MultModule
413413
CalibrationInfo nGlobalInfo = CalibrationInfo("NGlobal");
414414
CalibrationInfo mftInfo = CalibrationInfo("MFT");
415415

416-
template <typename TConfigurables, typename TInitContext>
417-
void init(TConfigurables& opts, TInitContext& context)
416+
template <typename TMetadatainfo, typename TConfigurables, typename TInitContext>
417+
void init(TMetadatainfo const& metadataInfo, TConfigurables& opts, TInitContext& context)
418418
{
419419
// read in configurations from the task where it's used
420420
internalOpts = opts;
@@ -488,6 +488,11 @@ class MultModule
488488
listOfRequestors[kPVMults].Append(Form("%s ", "dependency check"));
489489
}
490490

491+
// capture the need for PYTHIA calibration in Pb-Pb runs
492+
if (metadataInfo.isMC() && mRunNumber >= 544013 && mRunNumber <= 545367) {
493+
internalOpts.generatorName.value = "PYTHIA";
494+
}
495+
491496
mRunNumber = 0;
492497
mRunNumberCentrality = 0;
493498
lCalibLoaded = false;

0 commit comments

Comments
 (0)