Skip to content

Commit 871a04d

Browse files
[Common] Only automatically set generator name if not provided in MultModule.h (#17748)
1 parent 5f8a756 commit 871a04d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Common/Tools/Multiplicity/MultModule.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/// \file MultModule.h
1313
/// \brief combined multiplicity + centrality module with autodetect features
14-
/// \author ALICE
14+
/// \author ALICE Collaboration
1515

1616
#ifndef COMMON_TOOLS_MULTIPLICITY_MULTMODULE_H_
1717
#define COMMON_TOOLS_MULTIPLICITY_MULTMODULE_H_
@@ -1198,13 +1198,13 @@ class MultModule
11981198
LOGF(info, "centrality loading procedure for timestamp=%llu, run number=%d", bc.timestamp(), bc.runNumber());
11991199

12001200
// capture the need for PYTHIA calibration in Pb-Pb runs
1201-
if (metadataInfo.isMC() && mRunNumber >= 544013 && mRunNumber <= 545367) {
1201+
if (metadataInfo.isMC() && mRunNumber >= 544013 && mRunNumber <= 545367 && internalOpts.generatorName.value.empty()) {
12021202
LOGF(info, "This is MC for Pb-Pb. Setting generatorName automatically to PYTHIA");
12031203
internalOpts.generatorName.value = "PYTHIA";
12041204
}
12051205

12061206
// capture the need for PYTHIA calibration in light ion runs automatically
1207-
if (metadataInfo.isMC() && mRunNumber >= 564250 && mRunNumber <= 564472) {
1207+
if (metadataInfo.isMC() && mRunNumber >= 564250 && mRunNumber <= 564472 && internalOpts.generatorName.value.empty()) {
12081208
LOGF(info, "This is MC for light ion runs. Setting generatorName automatically to PYTHIA");
12091209
internalOpts.generatorName.value = "PYTHIA";
12101210
}

0 commit comments

Comments
 (0)