13 #ifndef FALAISE_SNEMO_DATAMODELS_PARTICLE_TRACK_DATA_H 14 #define FALAISE_SNEMO_DATAMODELS_PARTICLE_TRACK_DATA_H 1 21 #include <boost/serialization/access.hpp> 80 const bool clear_ =
false)
const;
107 virtual void clear();
110 virtual void tree_dump(std::ostream& out_ = std::clog,
const std::string& title_ =
"",
111 const std::string& indent_ =
"",
bool inherit_ =
false)
const;
116 _non_associated_calorimeters_;
126 #include <boost/serialization/export.hpp> 128 "snemo::datamodel::particle_track_data")
130 #endif // FALAISE_SNEMO_DATAMODELS_PARTICLE_TRACK_DATA_H void reset_non_associated_calorimeters()
Reset the non associated calorimeters.
bool has_particles() const
Check if there are some particles.
void invalidate_particles()
Reset the particle tracks.
const calibrated_calorimeter_hit::collection_type & get_non_associated_calorimeters() const
Return a non mutable reference to non associated calorimeters.
datatools::properties & grab_auxiliaries()
Return a non mutable reference on the container of auxiliary properties.
void remove_particles(std::vector< size_t > &indexes_)
Remove particles given a list of indexes.
const particle_track & get_particle(size_t index_) const
Return a non mutable reference to a particle by index.
#define DATATOOLS_SERIALIZATION_DECLARATION()
virtual ~particle_track_data()
Destructor:
size_t get_number_of_particles() const
Returns the number of particle.
const datatools::properties & get_auxiliaries() const
Return a mutable reference on the container of auxiliary properties.
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
void reset()
Reset the internals.
calibrated_calorimeter_hit::collection_type & grab_non_associated_calorimeters()
Return a mutable reference to non associated calorimeters.
Definition: calo_tapered_scin_box_model.h:54
void add_particle(const particle_track::handle_type &handle_)
Add a particle track.
std::vector< particle_track::handle_type > particle_collection_type
Collection of handles on particle tracks.
Definition: particle_track_data.h:43
bool has_non_associated_calorimeters() const
Check if there are some non associated calorimeters.
void remove_particle(size_t index_)
Remove a particle given its index.
particle_track_data()
Default constructor.
bool is_valid() const
Check if the object has a valid internal structure.
SuperNEMO particle track.
Definition: particle_track.h:34
std::vector< handle_type > collection_type
Collection of handles of calibrated calorimeter hit.
Definition: calibrated_calorimeter_hit.h:51
virtual void clear()
Clear the object.
particle_collection_type & grab_particles()
Return a mutable reference to particles.
SuperNEMO particle track model.
Definition: particle_track_data.h:38
size_t fetch_particles(particle_collection_type &particles_, const uint32_t flags_, const bool clear_=false) const
Retrieve particles given their charge.
const particle_collection_type & get_particles() const
Return a non mutable reference to particles.