48 (
fMasterGen->event).
append(990, -11, 0, 0, 2, 1 + NTotParticles, 0, 0, 0., 0., 0., 15000., 15000.);
55 double phi,
eta, the, ee, pp;
71 double px = pp *
sin(the) *
cos(phi);
72 double py = pp *
sin(the) *
sin(phi);
73 double pz = pp *
cos(the);
78 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0,
px,
py, pz, ee,
mass);
92 totM =
sqrt(totE * totE - (totPx * totPx + totPy * totPy + totPz * totPz));
97 ee =
sqrt(totM * totM + pp * pp);
103 the = 2. * atan(
exp(-
eta));
107 double betaZ = pp / ee *
std::cos(the);
116 event() = std::make_unique<HepMC::GenEvent>();
T getParameter(std::string const &) const
const char * classname() const override
Sin< T >::type sin(const T &t)
Py8JetGun(edm::ParameterSet const &)
Cos< T >::type cos(const T &t)
#define DEFINE_FWK_MODULE(type)
std::unique_ptr< HepMC::GenEvent > & event()
std::vector< int > fPartIDs
P8RndmEngine & randomEngine()
edm::GeneratorFilter< gen::Py8JetGun, gen::ExternalDecayDriver > Pythia8JetGun
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
bool generatePartonsAndHadronize() override