EpIC 1.1.0
Monte Carlo generator for exclusive processes
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EPIC::Event Class Reference

Single event. More...

#include <Event.h>

Inheritance diagram for EPIC::Event:

Public Member Functions

 Event ()
 
 Event (const Event &other)
 
virtual ~Event ()
 
std::string toString () const
 
void alterParticleCode (size_t i, ParticleCodeType::Type code)
 
const std::vector< std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > > & getParticles () const
 
void setParticles (const std::vector< std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > > &particles)
 
void addParticle (const std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > &particle)
 
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::map< EventAttributeType::Type, double > & getAttributes () const
 
void setAttributes (const std::map< EventAttributeType::Type, double > &attributes)
 
void addAttribute (EventAttributeType::Type type, double value)
 

Detailed Description

Single event.

This class defines a single event containing events and vertices, and eventually a weight.

Constructor & Destructor Documentation

◆ Event() [1/2]

EPIC::Event::Event ( )

Default constructor.

◆ Event() [2/2]

EPIC::Event::Event ( const Event other)

Copy constructor.

◆ ~Event()

virtual EPIC::Event::~Event ( )
virtual

Destructor.

Member Function Documentation

◆ addAttribute()

void EPIC::Event::addAttribute ( EventAttributeType::Type  type,
double  value 
)

Add attribute.

◆ addParticle()

void EPIC::Event::addParticle ( const std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > &  particle)

Add particle.

◆ addVertex()

void EPIC::Event::addVertex ( std::shared_ptr< Vertex vertex)

Add vertex.

◆ alterParticleCode()

void EPIC::Event::alterParticleCode ( size_t  i,
ParticleCodeType::Type  code 
)

Alter code of particle specified by iterator.

◆ getAttributes()

const std::map< EventAttributeType::Type, double > & EPIC::Event::getAttributes ( ) const

Get attributes.

◆ getParticles()

const std::vector< std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > > & EPIC::Event::getParticles ( ) const

Get particles.

◆ getVertices()

const std::vector< std::shared_ptr< Vertex > > & EPIC::Event::getVertices ( ) const

Get vertices.

◆ setAttributes()

void EPIC::Event::setAttributes ( const std::map< EventAttributeType::Type, double > &  attributes)

Set attributes.

◆ setParticles()

void EPIC::Event::setParticles ( const std::vector< std::pair< ParticleCodeType::Type, std::shared_ptr< Particle > > > &  particles)

Set particles.

◆ setVertices()

void EPIC::Event::setVertices ( const std::vector< std::shared_ptr< Vertex > > &  vertices)

Set vertices.


The documentation for this class was generated from the following file: