Skip to content

Commit

Permalink
fix mistake in protection for incompatible hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bendavid committed Jan 21, 2016
1 parent 72eefcd commit 3cf16ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GeneratorInterface/Pythia8Interface/interface/MultiUserHook.h
Expand Up @@ -43,17 +43,17 @@ class MultiUserHook : public Pythia8::UserHooks {
"multiple UserHooks with canVetoPT() not allowed");
test = false;
}
if (nCanVetoPT>1) {
if (nCanVetoStep>1) {
infoPtr->errorMsg("Error in MultiUserHook::initAfterBeams "
"multiple UserHooks with canVetoStep() not allowed");
test = false;
}
if (nCanVetoPT>1) {
if (nCanVetoMPIStep>1) {
infoPtr->errorMsg("Error in MultiUserHook::initAfterBeams "
"multiple UserHooks with canVetoMPIStep() not allowed");
test = false;
}
if (nCanVetoPT>1) {
if (nCanSetResonanceScale>1) {
infoPtr->errorMsg("Error in MultiUserHook::initAfterBeams "
"multiple UserHooks with canSetResonanceScale() not allowed");
test = false;
Expand Down

0 comments on commit 3cf16ce

Please sign in to comment.