65 double the = 2.*atan(
exp(-eta));
69 double pp =
sqrt( ee*ee - mass*mass );
70 double px = pp *
sin(the) *
cos(phi);
71 double py = pp *
sin(the) *
sin(phi);
72 double pz = pp *
cos(the);
74 if ( !((
fMasterGen->particleData).isParticle( particleID )) )
76 particleID = std::fabs(particleID) ;
86 if ( (
fMasterGen->particleData).isParticle( -particleID ) )
100 event().reset(
new HepMC::GenEvent);
T getParameter(std::string const &) const
std::auto_ptr< Pythia8::Pythia > fMasterGen
CLHEP::HepRandomEngine * randomEngine
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
const char * classname() const
bool generatePartonsAndHadronize()
Cos< T >::type cos(const T &t)
edm::GeneratorFilter< gen::Py8EGun, gen::ExternalDecayDriver > Pythia8EGun
std::vector< int > fPartIDs
std::auto_ptr< HepMC::GenEvent > & event()
HepMC::Pythia8ToHepMC toHepMC
Py8EGun(edm::ParameterSet const &)