|
Falaise
4.0.1
SuperNEMO Software Toolkit
|
SuperNEMO particle track. More...
#include <falaise/snemo/datamodels/particle_track.h>
Public Types | |
| enum | charge_type { INVALID = 0x0, invalid = INVALID, UNDEFINED = datatools::bit_mask::bit00, undefined = UNDEFINED, NEUTRAL = datatools::bit_mask::bit01, neutral = NEUTRAL, POSITIVE = datatools::bit_mask::bit02, positive = POSITIVE, NEGATIVE = datatools::bit_mask::bit03, negative = NEGATIVE } |
| Electric charge enumeration. More... | |
| enum | vertex_type { VERTEX_NONE = 0x0, VERTEX_ON_SOURCE_FOIL = datatools::bit_mask::bit00, VERTEX_ON_MAIN_CALORIMETER = datatools::bit_mask::bit01, VERTEX_ON_X_CALORIMETER = datatools::bit_mask::bit02, VERTEX_ON_GAMMA_VETO = datatools::bit_mask::bit03, VERTEX_ON_WIRE = datatools::bit_mask::bit04 } |
| Vertex flags. More... | |
| typedef datatools::handle< geomtools::blur_spot > | handle_spot |
| Handle on vertex spot. More... | |
| typedef std::vector< handle_spot > | vertex_collection_type |
| Collection of vertex spots. More... | |
| typedef datatools::handle< particle_track > | handle_type |
| Handle on particle track. More... | |
Public Types inherited from geomtools::base_hit | |
| enum | store_mask_type |
Public Types inherited from datatools::i_tree_dumpable | |
| enum | ostream_type |
Public Member Functions | |
| particle_track () | |
| Default constructor. More... | |
| virtual | ~particle_track () |
| Destructor. More... | |
| bool | has_track_id () const |
| Check if there is a valid track ID. More... | |
| int | get_track_id () const |
| Get the track ID. More... | |
| void | set_track_id (int32_t track_id_) |
| Set the track ID. More... | |
| void | invalidate_track_id () |
| Invalidate the track ID. More... | |
| void | set_charge (charge_type charge_) |
| charge_type | get_charge () const |
| Get particle charge. More... | |
| bool | has_trajectory () const |
| Check if the trajectory is present. More... | |
| void | detach_trajectory () |
| Detach the trajectory. More... | |
| void | set_trajectory_handle (const tracker_trajectory::handle_type &trajectory_handle_) |
| Attach a trajectory by handle. More... | |
| tracker_trajectory::handle_type & | grab_trajectory_handle () |
| Return a mutable reference on the trajectory handle. More... | |
| const tracker_trajectory::handle_type & | get_trajectory_handle () const |
| Return a non mutable reference on the trajectory handle. More... | |
| tracker_trajectory & | grab_trajectory () |
| Return a mutable reference on the trajectory. More... | |
| const tracker_trajectory & | get_trajectory () const |
| Return a non mutable reference on the trajectory. More... | |
| bool | has_vertices () const |
| Check if there are some vertices along the fitted trajectory. More... | |
| void | reset_vertices () |
| Reset the collection of vertices. More... | |
| vertex_collection_type & | grab_vertices () |
| Return a mutable reference on the collection of vertices (handles) More... | |
| const vertex_collection_type & | get_vertices () const |
| Return a non mutable reference on the collection of vertices (handles) More... | |
| size_t | fetch_vertices (vertex_collection_type &vertices_, const uint32_t flags_, const bool clear_=false) const |
| bool | has_associated_calorimeter_hits () const |
| Check if there are some associated calorimeter hits. More... | |
| void | reset_associated_calorimeter_hits () |
| Reset the collection of associated calorimeter hits. More... | |
| calibrated_calorimeter_hit::collection_type & | grab_associated_calorimeter_hits () |
| Return a mutable reference on the collection of associated calorimeter hits (handles) More... | |
| const calibrated_calorimeter_hit::collection_type & | get_associated_calorimeter_hits () const |
| Return a non mutable reference on the collection of associated calorimeter hits (handles) More... | |
| void | clear () |
| Empty the contents of the particle track. More... | |
| void | reset () |
| Reset the particle track (see clear) More... | |
| virtual void | tree_dump (std::ostream &out=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const |
| Smart print. More... | |
Public Member Functions inherited from geomtools::base_hit | |
| bool | has_hit_id () const |
| int32_t | get_hit_id () const |
| void | set_hit_id (int32_t) |
| void | invalidate_hit_id () |
| bool | has_geom_id () const |
| const geomtools::geom_id & | get_geom_id () const |
| geomtools::geom_id & | grab_geom_id () |
| void | set_geom_id (const geomtools::geom_id &) |
| void | invalidate_geom_id () |
| bool | has_auxiliaries () const |
| const datatools::properties & | get_auxiliaries () const |
| datatools::properties & | grab_auxiliaries () |
| void | set_auxiliaries (const datatools::properties &) |
| void | invalidate_auxiliaries () |
| base_hit () | |
| virtual | ~base_hit () |
| virtual bool | is_valid () const |
| virtual void | invalidate () |
| void | reset () |
| base_hit & | measure (i_measurement &) |
| void | print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=datatools::i_tree_dumpable::empty_options()) const override |
| void | dump () const |
Public Member Functions inherited from datatools::i_serializable | |
| i_serializable () | |
| virtual | ~i_serializable () |
| virtual const std::string & | get_serial_tag () const=0 |
Public Member Functions inherited from datatools::i_tree_dumpable | |
| i_tree_dumpable () | |
| virtual | ~i_tree_dumpable () |
| void | print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const |
| void | print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const |
| void | tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const |
| void | tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const |
| void | smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const |
Public Member Functions inherited from datatools::i_clear | |
| virtual | ~i_clear () |
Static Public Member Functions | |
| static bool | particle_has (const particle_track &, charge_type) |
| Check a particle charge type. More... | |
| static bool | particle_has_negative_charge (const particle_track &) |
| Check a particle is electron. More... | |
| static bool | particle_has_positive_charge (const particle_track &) |
| Check a particle is positron. More... | |
| static bool | particle_has_undefined_charge (const particle_track &) |
| Check a particle is alpha. More... | |
| static bool | particle_has_neutral_charge (const particle_track &) |
| Check a particle is gamma. More... | |
| static const std::string & | vertex_type_key () |
| Key for the vertex type property. More... | |
| static const std::string & | vertex_type_to_label (vertex_type) |
| Return the label from the vertex type. More... | |
| static vertex_type | label_to_vertex_type (const std::string &) |
| Return the vertex type from the label. More... | |
| static const std::string & | vertex_none_label () |
| Associated 'VERTEX_NONE' flag for auxiliary property. More... | |
| static const std::string & | vertex_on_source_foil_label () |
| Associated 'VERTEX_ON_SOURCE_FOIL' flag for auxiliary property. More... | |
| static const std::string & | vertex_on_main_calorimeter_label () |
| Associated 'VERTEX_ON_MAIN_CALORIMETER' flag for auxiliary property. More... | |
| static const std::string & | vertex_on_x_calorimeter_label () |
| Associated 'VERTEX_ON_X_CALORIMETER' flag for auxiliary property. More... | |
| static const std::string & | vertex_on_gamma_veto_label () |
| Associated 'VERTEX_ON_GAMMA_CALORIMETER' flag for auxiliary property. More... | |
| static const std::string & | vertex_on_wire_label () |
| Associated 'VERTEX_ON_WIRE' flag for auxiliary property. More... | |
| static bool | vertex_is (const geomtools::blur_spot &, vertex_type) |
| Check a vertex type. More... | |
| static bool | vertex_is_on_source_foil (const geomtools::blur_spot &) |
| Check a vertex on source foil. More... | |
| static bool | vertex_is_on_main_calorimeter (const geomtools::blur_spot &) |
| Check a vertex on main calorimeter. More... | |
| static bool | vertex_is_on_x_calorimeter (const geomtools::blur_spot &) |
| Check a vertex on X calorimeter. More... | |
| static bool | vertex_is_on_gamma_veto (const geomtools::blur_spot &) |
| Check a vertex on gamma veto. More... | |
| static bool | vertex_is_on_wire (const geomtools::blur_spot &) |
| Check a vertex on wire. More... | |
Static Public Member Functions inherited from datatools::i_tree_dumpable | |
| static const boost::property_tree::ptree & | empty_options () |
| static boost::property_tree::ptree | make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false) |
| static std::ostream & | last_skip_tag (std::ostream &out_) |
| static std::ostream & | skip_tag (std::ostream &out_) |
| static std::ostream & | last_tag (std::ostream &out_) |
| static std::ostream & | tag (std::ostream &out_) |
Additional Inherited Members | |
Public Attributes inherited from geomtools::base_hit | |
| STORE_NOTHING | |
| STORE_HIT_ID | |
| STORE_GEOM_ID | |
| STORE_AUXILIARIES | |
| STORE_RESERVED30 | |
| STORE_RESERVED31 | |
Public Attributes inherited from datatools::i_tree_dumpable | |
| OSTREAM_COUT | |
| OSTREAM_CERR | |
| OSTREAM_CLOG | |
Static Public Attributes inherited from geomtools::base_hit | |
| static const int32_t | INVALID_HIT_ID |
Protected Member Functions inherited from geomtools::base_hit | |
| void | _store_set (uint32_t bit_mask_) |
| void | _store_unset (uint32_t bit_mask_) |
| bool | _store_check (uint32_t bit_mask_) const |
Protected Attributes inherited from geomtools::base_hit | |
| uint32_t | _store |
SuperNEMO particle track.
Handle on vertex spot.
Handle on particle track.
| typedef std::vector<handle_spot> snemo::datamodel::particle_track::vertex_collection_type |
Collection of vertex spots.
| snemo::datamodel::particle_track::particle_track | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
virtual |
Empty the contents of the particle track.
Reimplemented from geomtools::base_hit.
| void snemo::datamodel::particle_track::detach_trajectory | ( | ) |
Detach the trajectory.
| size_t snemo::datamodel::particle_track::fetch_vertices | ( | vertex_collection_type & | vertices_, |
| const uint32_t | flags_, | ||
| const bool | clear_ = false |
||
| ) | const |
Function to return the number of vertices found given a 'vertex' flag bits. The list of vertices can be retrieved, the 'clear' option meaning that the list will be cleaned before pushing new vertex spot.
| const calibrated_calorimeter_hit::collection_type& snemo::datamodel::particle_track::get_associated_calorimeter_hits | ( | ) | const |
Return a non mutable reference on the collection of associated calorimeter hits (handles)
| charge_type snemo::datamodel::particle_track::get_charge | ( | ) | const |
Get particle charge.
| int snemo::datamodel::particle_track::get_track_id | ( | ) | const |
Get the track ID.
| const tracker_trajectory& snemo::datamodel::particle_track::get_trajectory | ( | ) | const |
Return a non mutable reference on the trajectory.
| const tracker_trajectory::handle_type& snemo::datamodel::particle_track::get_trajectory_handle | ( | ) | const |
Return a non mutable reference on the trajectory handle.
| const vertex_collection_type& snemo::datamodel::particle_track::get_vertices | ( | ) | const |
Return a non mutable reference on the collection of vertices (handles)
| calibrated_calorimeter_hit::collection_type& snemo::datamodel::particle_track::grab_associated_calorimeter_hits | ( | ) |
Return a mutable reference on the collection of associated calorimeter hits (handles)
| tracker_trajectory& snemo::datamodel::particle_track::grab_trajectory | ( | ) |
Return a mutable reference on the trajectory.
| tracker_trajectory::handle_type& snemo::datamodel::particle_track::grab_trajectory_handle | ( | ) |
Return a mutable reference on the trajectory handle.
| vertex_collection_type& snemo::datamodel::particle_track::grab_vertices | ( | ) |
Return a mutable reference on the collection of vertices (handles)
| bool snemo::datamodel::particle_track::has_associated_calorimeter_hits | ( | ) | const |
Check if there are some associated calorimeter hits.
| bool snemo::datamodel::particle_track::has_track_id | ( | ) | const |
Check if there is a valid track ID.
| bool snemo::datamodel::particle_track::has_trajectory | ( | ) | const |
Check if the trajectory is present.
| bool snemo::datamodel::particle_track::has_vertices | ( | ) | const |
Check if there are some vertices along the fitted trajectory.
| void snemo::datamodel::particle_track::invalidate_track_id | ( | ) |
Invalidate the track ID.
|
static |
Return the vertex type from the label.
|
static |
Check a particle charge type.
|
static |
Check a particle is electron.
|
static |
Check a particle is gamma.
|
static |
Check a particle is positron.
|
static |
Check a particle is alpha.
| void snemo::datamodel::particle_track::reset | ( | ) |
Reset the particle track (see clear)
| void snemo::datamodel::particle_track::reset_associated_calorimeter_hits | ( | ) |
Reset the collection of associated calorimeter hits.
| void snemo::datamodel::particle_track::reset_vertices | ( | ) |
Reset the collection of vertices.
| void snemo::datamodel::particle_track::set_charge | ( | charge_type | charge_ | ) |
| void snemo::datamodel::particle_track::set_track_id | ( | int32_t | track_id_ | ) |
Set the track ID.
| void snemo::datamodel::particle_track::set_trajectory_handle | ( | const tracker_trajectory::handle_type & | trajectory_handle_ | ) |
Attach a trajectory by handle.
|
virtual |
Smart print.
Reimplemented from geomtools::base_hit.
|
static |
Check a vertex type.
|
static |
Check a vertex on gamma veto.
|
static |
Check a vertex on main calorimeter.
|
static |
Check a vertex on source foil.
|
static |
Check a vertex on wire.
|
static |
Check a vertex on X calorimeter.
|
static |
Associated 'VERTEX_NONE' flag for auxiliary property.
|
static |
Associated 'VERTEX_ON_GAMMA_CALORIMETER' flag for auxiliary property.
|
static |
Associated 'VERTEX_ON_MAIN_CALORIMETER' flag for auxiliary property.
|
static |
Associated 'VERTEX_ON_SOURCE_FOIL' flag for auxiliary property.
|
static |
Associated 'VERTEX_ON_WIRE' flag for auxiliary property.
|
static |
Associated 'VERTEX_ON_X_CALORIMETER' flag for auxiliary property.
|
static |
Key for the vertex type property.
|
static |
Return the label from the vertex type.
1.8.15