47 HepMC::GenVertex* Vtx =
new HepMC::GenVertex( HepMC::FourVector(0.,0.,0.));
51 fEvt =
new HepMC::GenEvent() ;
57 int py6PID = HepPID::translatePDTtoPythia( particleID );
59 double pt=0, mom=0, ee=0, the=0,
eta=0;
65 pyjets.p[4][ip-1]=mass;
76 ee =
sqrt(mom*mom+mass*mass);
78 py1ent_(ip, py6PID, ee, the, phi);
80 double px = pyjets.p[0][ip-1];
81 double py = pyjets.p[1][ip-1];
82 double pz = pyjets.p[2][ip-1];
84 HepMC::FourVector
p(px,py,pz,ee) ;
87 Part->suggest_barcode( ip ) ;
88 Vtx->add_particle_out(Part);
94 if ( APart ) Vtx->add_particle_out(APart) ;
99 fEvt->add_vertex(Vtx);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
std::vector< int > fPartIDs
Geom::Phi< T > phi() const
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
void generateEvent(CLHEP::HepRandomEngine *)
Pythia6Service * fPy6Service