47 (
fMasterGen->event).
append(990, -11, 0, 0, 2, 1 + NTotParticles, 0, 0, 0., 0., 0., 15000., 15000.);
54 double the = 2. * atan(
exp(-
eta));
60 double pt = pp *
sin(the);
64 double pz = pp *
cos(the);
70 (
fMasterGen->event).
append(
particleID, 23, 1, 0, 0, 0, 101, 0,
px,
py, pz, ee,
mass);
72 (
fMasterGen->event).append(21, 23, 1, 0, 0, 0, 101, 102,
px,
py, pz, ee,
mass);
75 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0,
px,
py, pz, ee,
mass);
76 int eventSize = (
fMasterGen->event).size() - 1;
88 (
fMasterGen->event).
append(-
particleID, 23, 1, 0, 0, 0, 0, 101, -
px, -
py, -pz, ee,
mass);
90 (
fMasterGen->event).
append(21, 23, 1, 0, 0, 0, 102, 101, -
px, -
py, -pz, ee,
mass);
93 (
fMasterGen->event).
append(-
particleID, 1, 1, 0, 0, 0, 0, 0, -
px, -
py, -pz, ee,
mass);
95 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0, -
px, -
py, -pz, ee,
mass);
97 int eventSize = (
fMasterGen->event).size() - 1;
109 event() = std::make_unique<HepMC::GenEvent>();
T getParameter(std::string const &) const
Sin< T >::type sin(const T &t)
edm::GeneratorFilter< gen::Py8PtotGun, gen::ExternalDecayDriver > Pythia8PtotGun
bool generatePartonsAndHadronize() override
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
std::unique_ptr< HepMC::GenEvent > & event()
std::vector< int > fPartIDs
Py8PtotGun(edm::ParameterSet const &)
P8RndmEngine & randomEngine()
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
const char * classname() const override