39 HepMC::GenVertex* Vtx =
new HepMC::GenVertex(HepMC::FourVector(0., 0., 0.));
51 double phi,
eta, the, ee,
pp;
55 int py6PID = HepPID::translatePDTtoPythia(
particleID);
60 the = std::acos(-1. + 2. *
pyr_(&dum));
70 pyjets.p[4][ip - 1] =
mass;
74 py1ent_(ip, py6PID, ee, the, phi);
78 totPx += pyjets.p[0][ip - 1];
79 totPy += pyjets.p[1][ip - 1];
80 totPz += pyjets.p[2][ip - 1];
81 totE += pyjets.p[3][ip - 1];
89 totM =
std::sqrt(totE * totE - (totPx * totPx + totPy * totPy + totPz * totPz));
100 the = 2. * atan(
exp(-
eta));
111 double rothe = 0, rophi = 0.;
118 for (
int i = 0;
i < pyjets.n;
i++) {
119 HepMC::FourVector
p(pyjets.p[0][
i], pyjets.p[1][
i], pyjets.p[2][
i], pyjets.p[3][
i]);
121 Part->suggest_barcode(
i + 1);
122 Vtx->add_particle_out(Part);
124 fEvt->add_vertex(Vtx);