6 using namespace Pythia8;
12 fMasterGen.reset(
new Pythia);
13 fDecayer.reset(
new Pythia);
15 fMasterGen->readString(
"Next:numberShowEvent = 0");
16 fDecayer->readString(
"Next:numberShowEvent = 0");
18 fMasterGen->setRndmEnginePtr( &p8RndmEngine_ );
19 fDecayer->setRndmEnginePtr( &p8RndmEngine_ );
29 bool Py8InterfaceBase::readSettings(
int )
35 if (
line->find(
"Random:") != std::string::npos)
36 throw cms::Exception(
"PythiaError") <<
"Attempted to set random number "
37 "using Pythia commands. Please use " "the RandomNumberGeneratorService."
41 <<
"Pythia 8 did not accept \""
42 << *
line <<
"\"." << std::endl;
49 bool Py8InterfaceBase::declareStableParticles(
const std::vector<int>& pdgIds )
52 for (
size_t i=0;
i<pdgIds.size();
i++ )
61 std::ostringstream pyCard ;
62 pyCard << PyID <<
":mayDecay=false";
64 if ( fMasterGen->particleData.isParticle( PyID ) ) {
65 fMasterGen->readString( pyCard.str() );
69 <<
"recognize particle id = "
82 bool Py8InterfaceBase:: declareSpecialSettings(
const std::vector<std::string>& settings )
85 for (
unsigned int iss=0; iss<settings.size(); iss++ )
87 if ( settings[iss].
find(
"QED-brem-off") == std::string::npos )
continue;
88 fMasterGen->readString(
"TimeShower:QEDshowerByL=off" );
98 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