38 HepMC::GenVertex* Vtx =
new HepMC::GenVertex(HepMC::FourVector(0., 0., 0.));
47 int py6PID = HepPID::translatePDTtoPythia(
particleID);
49 double pt = 0, mom = 0, ee = 0, the = 0,
eta = 0;
55 pyjets.p[4][ip - 1] =
mass;
61 the = 2. * atan(
exp(-
eta));
68 py1ent_(ip, py6PID, ee, the, phi);
70 double px = pyjets.p[0][ip - 1];
71 double py = pyjets.p[1][ip - 1];
72 double pz = pyjets.p[2][ip - 1];
74 HepMC::FourVector
p(
px,
py, pz, ee);
76 Part->suggest_barcode(ip);
77 Vtx->add_particle_out(Part);
83 Vtx->add_particle_out(APart);
88 fEvt->add_vertex(Vtx);