47 HepMC::GenVertex* Vtx =
new HepMC::GenVertex( HepMC::FourVector(0.,0.,0.));
57 int py6PID = HepPID::translatePDTtoPythia( particleID );
59 double ee=0,the=0,
eta=0;
65 pyjets.p[4][ip-1]=
mass;
72 py1ent_(ip, py6PID, ee, the, phi);
74 double px = pyjets.p[0][ip-1];
75 double py = pyjets.p[1][ip-1];
76 double pz = pyjets.p[2][ip-1];
78 HepMC::FourVector
p(px,py,pz,ee) ;
81 Part->suggest_barcode( ip ) ;
82 Vtx->add_particle_out(Part);
88 if ( APart ) Vtx->add_particle_out(APart) ;
93 fEvt->add_vertex(Vtx);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
void generateEvent(CLHEP::HepRandomEngine *)
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
std::vector< int > fPartIDs
Geom::Phi< T > phi() const
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
Pythia6Service * fPy6Service