46 HepMC::GenVertex* Vtx =
new HepMC::GenVertex( HepMC::FourVector(0.,0.,0.));
54 int py6PID = HepPID::translatePDTtoPythia(
fPartonID );
56 double pt=0, mom=0, ee=0, the=0,
eta=0;
62 pyjets.p[4][ip-1]=
mass;
73 ee =
sqrt(mom*mom+mass*mass);
75 py1ent_(ip, py6PID, ee, the, phi);
77 double px = pyjets.p[0][ip-1];
78 double py = pyjets.p[1][ip-1];
79 double pz = pyjets.p[2][ip-1];
81 HepMC::FourVector
p(px,py,pz,ee) ;
83 Part->suggest_barcode( ip ) ;
84 Vtx->add_particle_out(Part);
91 Vtx->add_particle_out(APart) ;
104 fEvt->add_vertex(Vtx);
T getParameter(std::string const &) const
Sin< T >::type sin(const T &t)
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
#define DEFINE_FWK_MODULE(type)
~Pythia6PartonPtGun() override
void joinPartons(double qmax)
void generateEvent(CLHEP::HepRandomEngine *) override
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
Pythia6Service * fPy6Service