11 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");
23 fMasterGen->setRndmEnginePtr( &p8RndmEngine_ );
24 fDecayer->setRndmEnginePtr( &p8RndmEngine_ );
34 bool Py8InterfaceBase::readSettings(
int )
40 if (
line->find(
"Random:") != std::string::npos)
41 throw cms::Exception(
"PythiaError") <<
"Attempted to set random number "
42 "using Pythia commands. Please use " "the RandomNumberGeneratorService."
46 <<
"Pythia 8 did not accept \""
47 << *
line <<
"\"." << std::endl;
54 bool Py8InterfaceBase::declareStableParticles(
const std::vector<int>& pdgIds )
57 for (
size_t i=0;
i<pdgIds.size();
i++ )
66 std::ostringstream pyCard ;
67 pyCard << PyID <<
":mayDecay=false";
68 fMasterGen->readString( pyCard.str() );
79 bool Py8InterfaceBase:: declareSpecialSettings(
const std::vector<std::string>& settings )
82 for (
unsigned int iss=0; iss<settings.size(); iss++ )
84 if ( settings[iss].
find(
"QED-brem-off") == std::string::npos )
continue;
85 fMasterGen->readString(
"TimeShower:QEDshowerByL=off" );
95 fMasterGen->statistics();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
tuple pythiaPylistVerbosity
tuple pythiaHepMCVerbosity