43 HepMC::GenVertex* Vtx =
new HepMC::GenVertex(HepMC::FourVector(0., 0., 0.));
53 int py6PID = HepPID::translatePDTtoPythia(
particleID);
56 double pt = 0, y = 0, u = 0, ee = 0, the = 0;
67 pyjets.p[4][ip - 1] =
mass;
81 py1ent_(ip, py6PID, ee, the, phi);
87 double px = pyjets.p[0][ip - 1];
88 double py = pyjets.p[1][ip - 1];
89 pz = pyjets.p[2][ip - 1];
91 HepMC::FourVector
p(
px,
py, pz, ee);
93 Part->suggest_barcode(ip);
94 Vtx->add_particle_out(Part);
99 fEvt->add_vertex(Vtx);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
~Pythia6PtYDistGun() override
double firePt(CLHEP::HepRandomEngine *)
void generateEvent(CLHEP::HepRandomEngine *) override
double fireY(CLHEP::HepRandomEngine *)
PtYDistributor * fPtYGenerator
std::vector< int > fPartIDs
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
Pythia6Service * fPy6Service