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));
68 double px = pp *
sin(the) *
cos(phi);
69 double py = pp *
sin(the) *
sin(phi);
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);
88 int eventSize = (
fMasterGen->event).size() - 1;
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);
111 int eventSize = (
fMasterGen->event).size() - 1;
123 event() = std::make_unique<HepMC::GenEvent>();
T getParameter(std::string const &) const
Sin< T >::type sin(const T &t)
bool generatePartonsAndHadronize() override
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
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 &)