From 671087303f3138c2ecb9f4782663fccf815874bd Mon Sep 17 00:00:00 2001 From: Josh Bendavid Date: Fri, 19 Sep 2014 12:15:07 +0200 Subject: [PATCH] pythia interface changes for fast sim decays --- FastSimulation/ParticleDecay/interface/PythiaDecays.h | 2 +- FastSimulation/ParticleDecay/src/PythiaDecays.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FastSimulation/ParticleDecay/interface/PythiaDecays.h b/FastSimulation/ParticleDecay/interface/PythiaDecays.h index ba6ff2dc39014..d020c3d6544ee 100644 --- a/FastSimulation/ParticleDecay/interface/PythiaDecays.h +++ b/FastSimulation/ParticleDecay/interface/PythiaDecays.h @@ -8,7 +8,7 @@ #include #include #include -#include +#include "Pythia8Plugins/HepMC2.h" #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h" #include "SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h" #include "GeneratorInterface/ExternalDecays/interface/ExternalDecayDriver.h" diff --git a/FastSimulation/ParticleDecay/src/PythiaDecays.cc b/FastSimulation/ParticleDecay/src/PythiaDecays.cc index 62cf1d0a2e3fc..3ef3286c2da91 100644 --- a/FastSimulation/ParticleDecay/src/PythiaDecays.cc +++ b/FastSimulation/ParticleDecay/src/PythiaDecays.cc @@ -36,9 +36,9 @@ PythiaDecays::PythiaDecays(std::string program) decayer.reset(new Pythia8::Pythia); p8RndmEngine.reset(new gen::P8RndmEngine); decayer->setRndmEnginePtr(p8RndmEngine.get()); - decayer->readString("ProcessLevel:all = off"); - decayer->readString("PartonLevel:FSRinResonances = off"); //? - decayer->readString("ProcessLevel:resonanceDecays = off"); //? + decayer->settings.flag("ProcessLevel:all",false); + decayer->settings.flag("PartonLevel:FSRinResonances",false); + decayer->settings.flag("ProcessLevel:resonanceDecays",false); decayer->init(); // forbid all decays