Skip to content

Commit

Permalink
fix filling of pythia userhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
grohsjea committed Jun 18, 2021
1 parent 853b39d commit 4105be3
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -446,7 +446,9 @@ bool Pythia8Hadronizer::initializeForInternalPartons() {
}

if (!(fUserHooksVector->hooks).empty() && !UserHooksSet) {
fMasterGen->setUserHooksPtr(fUserHooksVector);
for (auto &fUserHook : fUserHooksVector->hooks) {
fMasterGen->addUserHooksPtr(fUserHook);
}
UserHooksSet = true;
}

Expand Down Expand Up @@ -589,7 +591,9 @@ bool Pythia8Hadronizer::initializeForExternalPartons() {
}

if (!(fUserHooksVector->hooks).empty() && !UserHooksSet) {
fMasterGen->setUserHooksPtr(fUserHooksVector);
for (auto &fUserHook : fUserHooksVector->hooks) {
fMasterGen->addUserHooksPtr(fUserHook);
}
UserHooksSet = true;
}

Expand Down

0 comments on commit 4105be3

Please sign in to comment.