15 GenEvent p_event(Units::GEV, Units::MM);
16 for(
int i=0; i<10; i++)
19 GenVertexPtr vertex=std::make_shared<GenVertex>();
20 vertex->set_position(vector);
22 for(
int j=0; j<3; j++)
24 GenParticlePtr particle = std::make_shared<GenParticle>(vector,1,2);
25 vertex->add_particle_in(particle);
27 for(
int j=0; j<3; j++)
29 GenParticlePtr particle = std::make_shared<GenParticle>(vector,1,2);
30 vertex->add_particle_out(particle);
32 p_event.add_vertex(vertex);
Definition of class GenEvent.
Definition of class GenParticle.
Definition of class GenVertex.
Implementation of ostreams for the objects.
Definition of static class Print.
Stores event-related information.
static void content(std::ostream &os, const GenEvent &event)
Print content of all GenEvent containers.
static void listing(std::ostream &os, const GenEvent &event, unsigned short precision=2)
Print event in listing (HepMC2) format.