59 double phi,
eta, the, ee,
pp;
75 pp =
sqrt( ee*ee - mass*mass );
77 double px = pp *
sin(the) *
cos(phi);
78 double py = pp *
sin(the) *
sin(phi);
79 double pz = pp *
cos(the);
81 if ( !((
fMasterGen->particleData).isParticle( particleID )) )
83 particleID = std::fabs(particleID) ;
100 totM =
sqrt( totE*totE - (totPx*totPx+totPy*totPy+totPz*totPz) );
105 ee =
sqrt( totM*totM + pp*pp );
111 the = 2.*atan(
exp(-eta));
115 double betaZ = pp/ee *
std::cos(the);
119 (
fMasterGen->event).bst( betaX, betaY, betaZ );
T getParameter(std::string const &) const
const char * classname() const override
Sin< T >::type sin(const T &t)
Py8JetGun(edm::ParameterSet const &)
#define DEFINE_FWK_MODULE(type)
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
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
bool generatePartonsAndHadronize() override