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));
63 double pp =
pt /
sin(the);
68 double pz = pp *
cos(the);
74 (
fMasterGen->event).
append(
particleID, 23, 1, 0, 0, 0, 101, 0,
px,
py, pz, ee,
mass);
76 (
fMasterGen->event).append(21, 23, 1, 0, 0, 0, 101, 102,
px,
py, pz, ee,
mass);
79 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0,
px,
py, pz, ee,
mass);
80 int eventSize = (
fMasterGen->event).size() - 1;
92 (
fMasterGen->event).
append(-
particleID, 23, 1, 0, 0, 0, 0, 101, -
px, -
py, -pz, ee,
mass);
94 (
fMasterGen->event).
append(21, 23, 1, 0, 0, 0, 102, 101, -
px, -
py, -pz, ee,
mass);
97 (
fMasterGen->event).
append(-
particleID, 1, 1, 0, 0, 0, 0, 0, -
px, -
py, -pz, ee,
mass);
99 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0, -
px, -
py, -pz, ee,
mass);
101 int eventSize = (
fMasterGen->event).size() - 1;
113 event() = std::make_unique<HepMC::GenEvent>();
T getParameter(std::string const &) const
const char * classname() const override
Sin< T >::type sin(const T &t)
Py8PtExpGun(edm::ParameterSet const &)
edm::GeneratorFilter< gen::Py8PtExpGun, gen::ExternalDecayDriver > Pythia8PtExpGun
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
P8RndmEngine & randomEngine()
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
bool generatePartonsAndHadronize() override