37 HepMC::GenVertex* Vtx =
new HepMC::GenVertex(HepMC::FourVector(0., 0., 0.));
46 int py6PID = HepPID::translatePDTtoPythia(particleID);
48 double pt = 0, mom = 0, ee = 0, the = 0,
eta = 0;
54 pyjets.p[4][ip - 1] =
mass;
60 the = 2. * atan(
exp(-
eta));
65 ee =
sqrt(mom * mom + mass * mass);
67 py1ent_(ip, py6PID, ee, the, phi);
69 double px = pyjets.p[0][ip - 1];
70 double py = pyjets.p[1][ip - 1];
71 double pz = pyjets.p[2][ip - 1];
73 HepMC::FourVector
p(px, py, pz, ee);
75 Part->suggest_barcode(ip);
76 Vtx->add_particle_out(Part);
82 Vtx->add_particle_out(APart);
87 fEvt->add_vertex(Vtx);
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
void generateEvent(CLHEP::HepRandomEngine *) override
Exp< T >::type exp(const T &t)
std::vector< int > fPartIDs
T getParameter(std::string const &) const
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
Pythia6Service * fPy6Service