8 using namespace Pythia8;
17 fMasterGen.reset(
new Pythia);
18 fDecayer.reset(
new Pythia);
20 fMasterGen->readString(
"Next:numberShowEvent = 0");
21 fDecayer->readString(
"Next:numberShowEvent = 0");
24 fMasterGen->setRndmEnginePtr(
new RandomP8() );
25 fDecayer->setRndmEnginePtr(
new RandomP8() );
35 bool Py8InterfaceBase::readSettings(
int )
41 if (
line->find(
"Random:") != std::string::npos)
42 throw cms::Exception(
"PythiaError") <<
"Attempted to set random number "
43 "using Pythia commands. Please use " "the RandomNumberGeneratorService."
47 <<
"Pythia 8 did not accept \""
48 << *
line <<
"\"." << std::endl;
55 bool Py8InterfaceBase::declareStableParticles(
const std::vector<int>& pdgIds )
58 for (
size_t i=0;
i<pdgIds.size();
i++ )
67 std::ostringstream pyCard ;
68 pyCard << PyID <<
":mayDecay=false";
70 if ( fMasterGen->particleData.isParticle( PyID ) ) {
71 fMasterGen->readString( pyCard.str() );
75 <<
"recognize particle id = "
88 bool Py8InterfaceBase:: declareSpecialSettings(
const std::vector<std::string>& settings )
91 for (
unsigned int iss=0; iss<settings.size(); iss++ )
93 if ( settings[iss].
find(
"QED-brem-off") == std::string::npos )
continue;
94 fMasterGen->readString(
"TimeShower:QEDshowerByL=off" );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
CLHEP::HepRandomEngine * randomEngine
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
CLHEP::HepRandomEngine & getEngineReference()
tuple pythiaPylistVerbosity
tuple pythiaHepMCVerbosity