9 #include "Pythia8Plugins/EvtGen.h"
64 double the = 2.*atan(
exp(-eta));
66 double mass = (
fMasterGen->particleData).m0( particleID );
68 double pp =
sqrt( ee*ee - mass*mass );
69 double px = pp *
sin(the) *
cos(phi);
70 double py = pp *
sin(the) *
sin(phi);
71 double pz = pp *
cos(the);
73 if ( !((
fMasterGen->particleData).isParticle( particleID )) )
75 particleID = std::fabs(particleID) ;
85 if ( (
fMasterGen->particleData).isParticle( -particleID ) )
101 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
bool generatePartonsAndHadronize() override
Cos< T >::type cos(const T &t)
EvtGenDecays * evtgenDecays
edm::GeneratorFilter< gen::Py8EGun, gen::ExternalDecayDriver > Pythia8EGun
std::vector< int > fPartIDs
std::auto_ptr< HepMC::GenEvent > & event()
const char * classname() const override
P8RndmEngine & randomEngine()
Geom::Phi< T > phi() const
HepMC::Pythia8ToHepMC toHepMC
Py8EGun(edm::ParameterSet const &)