File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
GeneratorInterface/Pythia8Interface/plugins Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,9 @@ bool Pythia8Hadronizer::initializeForInternalPartons() {
447447 }
448448
449449 if (!(fUserHooksVector ->hooks ).empty () && !UserHooksSet) {
450- fMasterGen ->setUserHooksPtr (fUserHooksVector );
450+ for (auto &fUserHook : fUserHooksVector ->hooks ) {
451+ fMasterGen ->addUserHooksPtr (fUserHook );
452+ }
451453 UserHooksSet = true ;
452454 }
453455
@@ -590,7 +592,9 @@ bool Pythia8Hadronizer::initializeForExternalPartons() {
590592 }
591593
592594 if (!(fUserHooksVector ->hooks ).empty () && !UserHooksSet) {
593- fMasterGen ->setUserHooksPtr (fUserHooksVector );
595+ for (auto &fUserHook : fUserHooksVector ->hooks ) {
596+ fMasterGen ->addUserHooksPtr (fUserHook );
597+ }
594598 UserHooksSet = true ;
595599 }
596600
You can’t perform that action at this time.
0 commit comments