48 (
fMasterGen->event).
append(990, -11, 0, 0, 2, 1 + NTotParticles, 0, 0, 0., 0., 0., 15000., 15000.);
55 throw cms::Exception(
"PythiaError") <<
"Attempting to generate quarks or gluons without setting " 56 "AddAntiParticle to true. This will not handle color properly." 63 double the = 2. * atan(
exp(-
eta));
70 double pz =
pp *
cos(the);
76 (
fMasterGen->event).
append(
particleID, 23, 1, 0, 0, 0, colorindex, 0,
px,
py, pz, ee,
mass);
80 (
fMasterGen->event).
append(21, 23, 1, 0, 0, 0, colorindex, colorindex + 1,
px,
py, pz, ee,
mass);
87 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0,
px,
py, pz, ee,
mass);
100 (
fMasterGen->event).
append(-
particleID, 23, 1, 0, 0, 0, 0, colorindex, -
px, -
py, -pz, ee,
mass);
103 (
fMasterGen->event).
append(21, 23, 1, 0, 0, 0, colorindex + 1, colorindex, -
px, -
py, -pz, ee,
mass);
107 (
fMasterGen->event).
append(-
particleID, 1, 1, 0, 0, 0, 0, 0, -
px, -
py, -pz, ee,
mass);
109 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0, -
px, -
py, -pz, ee,
mass);
123 event() = std::make_unique<HepMC::GenEvent>();
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
bool generatePartonsAndHadronize() override
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
edm::GeneratorFilter< gen::Py8EGun, gen::ExternalDecayDriver > Pythia8EGun
std::unique_ptr< HepMC::GenEvent > & event()
std::vector< int > fPartIDs
const char * classname() const override
P8RndmEngine & randomEngine()
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
Py8EGun(edm::ParameterSet const &)