NEMO3 ANA event model : simulated particle. More...
#include <sim_event_utils.h>
Public Member Functions | |
sim_particle (int32_t id_=INVALID_ID, int32_t type_=INVALID_TYPE, int32_t vertex_id_=sim_vertex::INVALID_ID, double time_=0.0) | |
constructor | |
virtual | ~sim_particle () |
destructor | |
int32_t | get_id () const |
returns the id of the particle | |
void | set_id (int32_t id_) |
sets the id of the particle | |
int32_t | get_type () const |
returns the type of the particle | |
void | set_type (int32_t type_) |
sets the type of the particle | |
int32_t | get_vertex_id () const |
returns the vertex id of the particle | |
void | set_vertex_id (int32_t id_) |
sets the vertex id of the particle | |
void | set_time (double time_) |
sets the time of the particle | |
double | get_time () const |
returns the time of the particle | |
const geomtools::vector_3d & | get_momentum () const |
returns the const reference of the momentum of the particle | |
void | set_momentum (const geomtools::vector_3d &) |
sets the momentum of the particle | |
bool | has_vertex () const |
returns true if the particle is associated to a vertex | |
void | clear_vertex () |
clears the associated vertex of the particle | |
void | set_vertex (const sim_vertex &) |
sets the associated vertex of the particle | |
const sim_vertex & | get_vertex () const |
returns the const reference of the vertex associated to the particle | |
Static Public Attributes | |
static const int | INVALID_ID = -1 |
static const int | INVALID_TYPE = -1 |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar_, const unsigned int version_) |
serialization | |
Private Attributes | |
int32_t | __id |
int32_t | __type |
int32_t | __vertex_id |
double | __time |
geomtools::vector_3d | __momentum |
sim_vertex * | __vertex |
Friends | |
class | boost::serialization::access |
friend class access |
NEMO3 ANA event model : simulated particle.