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" ) )
50 if ( ps.
exists(
"evtgenUserFile" ) )
63 if (
line->find(
"Random:") != std::string::npos)
64 throw cms::Exception(
"PythiaError") <<
"Attempted to set random number "
65 "using Pythia commands. Please use " "the RandomNumberGeneratorService."
69 <<
"Pythia 8 did not accept \""
70 << *
line <<
"\"." << std::endl;
72 if (
line->find(
"ParticleDecays:") != std::string::npos) {
75 <<
"Pythia 8 Decayer did not accept \""
76 << *
line <<
"\"." << std::endl;
88 for (
size_t i=0;
i<pdgIds.size();
i++ )
97 std::ostringstream pyCard ;
98 pyCard << PyID <<
":mayDecay=false";
100 if (
fMasterGen->particleData.isParticle( PyID ) ) {
105 <<
"recognize particle id = "
106 << PyID << std::endl;
119 for (
unsigned int iss=0; iss<settings.size(); iss++ ){
120 if ( settings[iss].
find(
"QED-brem-off") != std::string::npos ){
121 fMasterGen->readString(
"TimeShower:QEDshowerByL=off" );
124 size_t fnd1 = settings[iss].find(
"Pythia8:");
125 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)
std::vector< std::string > evtgenUserFiles
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