10 using namespace Pythia8;
15 useEvtGen(
false), evtgenDecays(0)
20 fMasterGen->readString(
"Next:numberShowEvent = 0");
21 fDecayer->readString(
"Next:numberShowEvent = 0");
33 if(pythiaHepMCVerbosityParticles)
36 if ( ps.
exists(
"useEvtGenPlugin") ) {
40 string evtgenpath(getenv(
"EVTGENDATA"));
44 if ( ps.
exists(
"evtgenDecFile" ) )
47 if ( ps.
exists(
"evtgenPdlFile" ) )
60 if (
line->find(
"Random:") != std::string::npos)
61 throw cms::Exception(
"PythiaError") <<
"Attempted to set random number "
62 "using Pythia commands. Please use " "the RandomNumberGeneratorService."
66 <<
"Pythia 8 did not accept \""
67 << *
line <<
"\"." << std::endl;
69 if (
line->find(
"ParticleDecays:") != std::string::npos) {
72 <<
"Pythia 8 Decayer did not accept \""
73 << *
line <<
"\"." << std::endl;
85 for (
size_t i=0;
i<pdgIds.size();
i++ )
94 std::ostringstream pyCard ;
95 pyCard << PyID <<
":mayDecay=false";
97 if (
fMasterGen->particleData.isParticle( PyID ) ) {
102 <<
"recognize particle id = "
103 << PyID << std::endl;
116 for (
unsigned int iss=0; iss<settings.size(); iss++ ){
117 if ( settings[iss].
find(
"QED-brem-off") != std::string::npos ){
118 fMasterGen->readString(
"TimeShower:QEDshowerByL=off" );
121 size_t fnd1 = settings[iss].find(
"Pythia8:");
122 if ( fnd1 != std::string::npos ){
bool declareSpecialSettings(const std::vector< std::string > &)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
ParameterCollector fParameters
virtual void statistics()
std::auto_ptr< Pythia8::Pythia > fMasterGen
HepMC::IO_AsciiParticles * ascii_io
bool exists(std::string const ¶meterName) const
checks if a parameter exists
bool pythiaHepMCVerbosityParticles
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
P8RndmEngine p8RndmEngine_
unsigned int pythiaPylistVerbosity
bool declareStableParticles(const std::vector< int > &)
std::string evtgenPdlFile
unsigned int maxEventsToPrint
std::auto_ptr< Pythia8::Pythia > fDecayer
bool pythiaHepMCVerbosity
const_iterator end() const
std::string evtgenDecFile
const_iterator begin() const
volatile std::atomic< bool > shutdown_flag false