From 4f84c8aa6c507dc172d8016a876a578f510c873d Mon Sep 17 00:00:00 2001 From: Markus Seidel Date: Mon, 19 Jun 2023 18:25:47 +0200 Subject: [PATCH] Revert "Powheg+Vincia matching" This reverts commit 1c80a7d7d19ee65787d9851293032af8d237fe39. --- .../plugins/Pythia8Hadronizer.cc | 26 ++----------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/GeneratorInterface/Pythia8Interface/plugins/Pythia8Hadronizer.cc b/GeneratorInterface/Pythia8Interface/plugins/Pythia8Hadronizer.cc index fbeca29a6c45e..231f9b7a7ad8a 100644 --- a/GeneratorInterface/Pythia8Interface/plugins/Pythia8Hadronizer.cc +++ b/GeneratorInterface/Pythia8Interface/plugins/Pythia8Hadronizer.cc @@ -29,7 +29,6 @@ using namespace Pythia8; // Emission Veto Hooks // #include "Pythia8Plugins/PowhegHooks.h" -#include "Pythia8Plugins/PowhegHooksVincia.h" #include "GeneratorInterface/Pythia8Interface/plugins/EmissionVetoHook1.h" // Resonance scale hook @@ -133,7 +132,6 @@ class Pythia8Hadronizer : public Py8InterfaceBase { // Emission Veto Hooks // std::shared_ptr fEmissionVetoHook; - std::shared_ptr fEmissionVetoHookVincia; std::shared_ptr fEmissionVetoHook1; // Resonance scale hook @@ -386,10 +384,7 @@ bool Pythia8Hadronizer::initializeForInternalPartons() { (fUserHooksVector->hooks).push_back(fEmissionVetoHook1); } - bool VinciaShower = fMasterGen->settings.mode("PartonShowers:Model") == 2; - - if ((fMasterGen->settings.mode("POWHEG:veto") > 0 || fMasterGen->settings.mode("POWHEG:MPIveto") > 0) && - !VinciaShower) { + if (fMasterGen->settings.mode("POWHEG:veto") > 0 || fMasterGen->settings.mode("POWHEG:MPIveto") > 0) { if (fJetMatchingHook.get() || fEmissionVetoHook1.get()) throw edm::Exception(edm::errors::Configuration, "Pythia8Interface") << " Attempt to turn on PowhegHooks by pythia8 settings but there are incompatible hooks on \n Incompatible " @@ -402,13 +397,6 @@ bool Pythia8Hadronizer::initializeForInternalPartons() { (fUserHooksVector->hooks).push_back(fEmissionVetoHook); } - if (fMasterGen->settings.mode("POWHEG:veto") > 0 && VinciaShower) { - edm::LogInfo("Pythia8Interface") << "Turning on Vincia Emission Veto Hook from pythia8 code"; - if (!fEmissionVetoHookVincia.get()) - fEmissionVetoHookVincia.reset(new PowhegHooksVincia()); - (fUserHooksVector->hooks).push_back(fEmissionVetoHookVincia); - } - bool PowhegRes = fMasterGen->settings.flag("POWHEGres:calcScales"); if (PowhegRes) { edm::LogInfo("Pythia8Interface") << "Turning on resonance scale setting from CMSSW Pythia8Interface"; @@ -555,10 +543,7 @@ bool Pythia8Hadronizer::initializeForExternalPartons() { } } - bool VinciaShower = fMasterGen->settings.mode("PartonShowers:Model") == 2; - - if ((fMasterGen->settings.mode("POWHEG:veto") > 0 || fMasterGen->settings.mode("POWHEG:MPIveto") > 0) && - !VinciaShower) { + if (fMasterGen->settings.mode("POWHEG:veto") > 0 || fMasterGen->settings.mode("POWHEG:MPIveto") > 0) { if (fJetMatchingHook.get() || fEmissionVetoHook1.get()) throw edm::Exception(edm::errors::Configuration, "Pythia8Interface") << " Attempt to turn on PowhegHooks by pythia8 settings but there are incompatible hooks on \n Incompatible " @@ -571,13 +556,6 @@ bool Pythia8Hadronizer::initializeForExternalPartons() { (fUserHooksVector->hooks).push_back(fEmissionVetoHook); } - if (fMasterGen->settings.mode("POWHEG:veto") > 0 && VinciaShower) { - edm::LogInfo("Pythia8Interface") << "Turning on Vincia Emission Veto Hook from pythia8 code"; - if (!fEmissionVetoHookVincia.get()) - fEmissionVetoHookVincia.reset(new PowhegHooksVincia()); - (fUserHooksVector->hooks).push_back(fEmissionVetoHookVincia); - } - bool PowhegRes = fMasterGen->settings.flag("POWHEGres:calcScales"); if (PowhegRes) { edm::LogInfo("Pythia8Interface") << "Turning on resonance scale setting from CMSSW Pythia8Interface";