18#include "../types/EventAttributeType.h"
19#include "../types/ParticleCodeType.h"
36class Event :
public PARTONS::BaseObject {
54 std::string toString()
const;
68 const std::vector<std::pair<ParticleCodeType::Type, std::shared_ptr<Particle> > > &
getParticles()
const;
83 const std::vector<std::shared_ptr<Vertex> > &
getVertices()
const;
88 void setVertices(
const std::vector<std::shared_ptr<Vertex> > &vertices);
98 const std::map<EventAttributeType::Type, double> &
getAttributes()
const;
104 setAttributes(
const std::map<EventAttributeType::Type, double> &attributes);
113 std::vector<std::pair<ParticleCodeType::Type, std::shared_ptr<Particle> > > m_particles;
114 std::vector<std::shared_ptr<Vertex> > m_vertices;
116 std::map<EventAttributeType::Type, double> m_attributes;
Type
Definition: EventAttributeType.h:32
Single event.
Definition: Event.h:36
const std::vector< std::shared_ptr< Vertex > > & getVertices() const
void setVertices(const std::vector< std::shared_ptr< Vertex > > &vertices)
void addVertex(std::shared_ptr< Vertex > vertex)
const std::vector< std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > > & getParticles() const
void setAttributes(const std::map< EventAttributeType::Type, double > &attributes)
void setParticles(const std::vector< std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > > &particles)
Event(const Event &other)
const std::map< EventAttributeType::Type, double > & getAttributes() const
void alterParticleCode(size_t i, ParticleCodeType::Type code)
void addParticle(const std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > &particle)
void addAttribute(EventAttributeType::Type type, double value)
Type
Definition: ParticleCodeType.h:33