60 double the = 2.*atan(
exp(-eta));
62 double mass = (
fMasterGen->particleData).m0( particleID );
64 double pp =
sqrt( ee*ee - mass*mass );
65 double px = pp *
sin(the) *
cos(phi);
66 double py = pp *
sin(the) *
sin(phi);
67 double pz = pp *
cos(the);
69 if ( !((
fMasterGen->particleData).isParticle( particleID )) )
71 particleID = std::fabs(particleID) ;
81 if ( (
fMasterGen->particleData).isParticle( -particleID ) )
96 event().reset(
new HepMC::GenEvent);
T getParameter(std::string const &) const
std::auto_ptr< Pythia8::Pythia > fMasterGen
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
virtual double flat() override
std::auto_ptr< HepMC::GenEvent > & event()
bool generatePartonsAndHadronize() override
Cos< T >::type cos(const T &t)
edm::GeneratorFilter< gen::Py8EGun, gen::ExternalDecayDriver > Pythia8EGun
std::vector< int > fPartIDs
const char * classname() const override
P8RndmEngine & randomEngine()
HepMC::Pythia8ToHepMC toHepMC
Py8EGun(edm::ParameterSet const &)