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
std::auto_ptr< Pythia8::Pythia > fMasterGen
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
std::auto_ptr< HepMC::GenEvent > & event()
Py8JetGun(edm::ParameterSet const &)
Cos< T >::type cos(const T &t)
std::vector< int > fPartIDs
P8RndmEngine & randomEngine()
edm::GeneratorFilter< gen::Py8JetGun, gen::ExternalDecayDriver > Pythia8JetGun
HepMC::Pythia8ToHepMC toHepMC
bool generatePartonsAndHadronize() override