All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends
nemo3::sim_primary_event Class Reference

NEMO3 ANA event model : simulated primary event. More...

#include <sim_event_utils.h>

List of all members.

Public Types

typedef std::vector< sim_vertexvertex_col
typedef std::vector< sim_particleparticle_col

Public Member Functions

virtual void clear ()
 resets the simulated primary event
virtual const std::string & get_serial_tag () const
 const virtual function that returns the reference to the serialization tag
void set_time (double t_)
 sets the time of the simulated primary event
double get_time () const
 returns the time of the simulated primary event
 sim_primary_event ()
 constructor
virtual ~sim_primary_event ()
 destructor
size_t get_number_of_vertices () const
 returns the number of vertices
const vertex_col & get_vertices () const
 returns the const reference of the list of vertices
vertex_col & get_vertices ()
 returns the reference of the list of vertices
const sim_vertexget_vertex (int i_) const
 returns the const reference to the vertex number i_
void add_vertex (const sim_vertex &)
 adds a vertex to the list of vertices
const sim_particleget_particle (int i_) const
 returns the const reference to the simulated particle number i_
size_t get_number_of_particles () const
 returns the number of simulated particles
void add_particle (const sim_particle &)
 adds a particle to the list of simulated particles
const particle_col & get_particles () const
 returns the const reference to the list of simulated particles
particle_col & get_particles ()
 returns the reference to the list of simulated particles
const
datatools::utils::properties & 
get_properties () const
 returns the const reference of the properties field
const
datatools::utils::properties & 
get_properties_ro () const
 returns the const reference of the properties field
datatools::utils::properties & get_properties ()
 returns the reference of the properties field
datatools::utils::properties & get_properties_rw ()
 returns the reference of the properties field
bool is_locked () const
 returns true if the simulated primary event is locked
void lock ()
 sets the simulated primary event to locked
void unlock ()
 sets the simulated primary event to unlock
void sync ()
 synchronizes the vertices from the particle list to the vertices list

Static Public Attributes

static const std::string SERIAL_TAG
 serialization tag

Private Member Functions

void __reset ()
 resets the simulated primary event
template<class Archive >
void serialize (Archive &ar_, const unsigned int version_)
 serialization

Private Attributes

bool __lock
double __time
vertex_col __vertices
particle_col __particles
datatools::utils::properties __properties

Friends

class boost::serialization::access
 friend class access

Detailed Description

NEMO3 ANA event model : simulated primary event.


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