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;
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));
103 the = 2. * atan(
exp(-
eta));
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