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;
69 pp =
sqrt(ee * ee - mass * mass);
71 double px = pp *
sin(the) *
cos(phi);
72 double py = pp *
sin(the) *
sin(phi);
73 double pz = pp *
cos(the);
75 if (!((
fMasterGen->particleData).isParticle(particleID))) {
76 particleID = std::fabs(particleID);
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>();
static std::vector< std::string > checklist log
const char * classname() const override
#define DEFINE_FWK_MODULE(type)
boost::dynamic_bitset append(const boost::dynamic_bitset<> &bs1, const boost::dynamic_bitset<> &bs2)
this method takes two bitsets bs1 and bs2 and returns result of bs2 appended to the end of bs1 ...
Sin< T >::type sin(const T &t)
Exp< T >::type exp(const T &t)
Py8JetGun(edm::ParameterSet const &)
Cos< T >::type cos(const T &t)
std::unique_ptr< HepMC::GenEvent > & event()
std::vector< int > fPartIDs
P8RndmEngine & randomEngine()
edm::GeneratorFilter< gen::Py8JetGun, gen::ExternalDecayDriver > Pythia8JetGun
T getParameter(std::string const &) const
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
tuple size
Write out results.
bool generatePartonsAndHadronize() override