36 HepMC::GenVertex* Vtx =
new HepMC::GenVertex(HepMC::FourVector(0., 0., 0.));
44 int py6PID = HepPID::translatePDTtoPythia(
fPartonID);
46 double ee = 0, the = 0,
eta = 0;
52 pyjets.p[4][ip - 1] =
mass;
57 the = 2. * atan(
exp(-
eta));
59 py1ent_(ip, py6PID, ee, the, phi);
61 double px = pyjets.p[0][ip - 1];
62 double py = pyjets.p[1][ip - 1];
63 double pz = pyjets.p[2][ip - 1];
65 HepMC::FourVector
p(
px,
py, pz, ee);
67 Part->suggest_barcode(ip);
68 Vtx->add_particle_out(Part);
74 Vtx->add_particle_out(APart);
81 double qmax = 2. * ee;
85 fEvt->add_vertex(Vtx);
T getParameter(std::string const &) const
~Pythia6PartonEGun() override
#define DEFINE_FWK_MODULE(type)
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
void joinPartons(double qmax)
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
Pythia6Service * fPy6Service
void generateEvent(CLHEP::HepRandomEngine *) override