80 pp =
sqrt( ee*ee - mass*mass );
82 double px = pp *
sin(the) *
cos(phi);
83 double py = pp *
sin(the) *
sin(phi);
84 double pz = pp *
cos(the);
86 if ( !((
fMasterGen->particleData).isParticle( particleID )) )
88 particleID = std::fabs(particleID) ;
101 totM =
sqrt( totE*totE - (totPx*totPx+totPy*totPy+totPz*totPz) );
106 ee =
sqrt( totM*totM + pp*pp );
112 the = 2.*atan(
exp(-eta));
116 double betaZ = pp/ee *
std::cos(the);
120 (
fMasterGen->event).bst( betaX, betaY, betaZ );
124 event().reset(
new HepMC::GenEvent);
T getParameter(std::string const &) const
std::auto_ptr< Pythia8::Pythia > fMasterGen
CLHEP::HepRandomEngine * randomEngine
const char * classname() const
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
Py8JetGun(edm::ParameterSet const &)
Cos< T >::type cos(const T &t)
std::vector< int > fPartIDs
std::auto_ptr< HepMC::GenEvent > & event()
edm::GeneratorFilter< gen::Py8JetGun, gen::ExternalDecayDriver > Pythia8JetGun
HepMC::Pythia8ToHepMC toHepMC
bool generatePartonsAndHadronize()