64 double the = 2.*atan(
exp(-eta));
68 double mass = (
fMasterGen->particleData).mass( particleID );
71 double pp = pt /
sin(the);
72 double ee =
sqrt( pp*pp + mass*mass );
74 double px = pt *
cos(phi);
75 double py = pt *
sin(phi);
76 double pz = pp *
cos(the);
78 if ( !((
fMasterGen->particleData).isParticle( particleID )) )
80 particleID = std::fabs(particleID) ;
90 if ( (
fMasterGen->particleData).isParticle( -particleID ) )
104 event().reset(
new HepMC::GenEvent);
edm::GeneratorFilter< gen::Py8PtGun, gen::ExternalDecayDriver > Pythia8PtGun
T getParameter(std::string const &) const
std::auto_ptr< Pythia8::Pythia > fMasterGen
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
std::vector< int > fPartIDs
std::auto_ptr< HepMC::GenEvent > & event()
CLHEP::HepRandomEngine * randomEngine
const char * classname() const
Py8PtGun(edm::ParameterSet const &)
bool generatePartonsAndHadronize()