From 793c53da58fea09238d1ba61c92d8ee0140811f7 Mon Sep 17 00:00:00 2001 From: Laurids Jeppe Date: Thu, 2 Nov 2023 17:29:31 +0100 Subject: [PATCH] Fix Emission veto hook for bb4l --- .../Pythia8Interface/plugins/EmissionVetoHook1.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GeneratorInterface/Pythia8Interface/plugins/EmissionVetoHook1.cc b/GeneratorInterface/Pythia8Interface/plugins/EmissionVetoHook1.cc index b674f22085f1f..24211a33e8888 100644 --- a/GeneratorInterface/Pythia8Interface/plugins/EmissionVetoHook1.cc +++ b/GeneratorInterface/Pythia8Interface/plugins/EmissionVetoHook1.cc @@ -433,7 +433,7 @@ bool EmissionVetoHook1::doVetoFSREmission(int, const Pythia8::Event &e, int iSys if (iSys != 0) return false; // only use for outside resonance vetos in combination with bb4l:FSREmission:veto - if (!inResonance && settingsPtr->flag("POWHEG:bb4l:FSREmission:veto")==1) return false; + if (inResonance && settingsPtr->flag("POWHEG:bb4l:FSREmission:veto")==1) return false; // If we already have accepted 'vetoCount' emissions in a row, do nothing if (vetoOn && nAcceptSeq >= vetoCount) return false;