9 #ifndef FALAISE_SNEMO_DATAMODELS_TRACKER_CLUSTERING_SOLUTION_H 10 #define FALAISE_SNEMO_DATAMODELS_TRACKER_CLUSTERING_SOLUTION_H 1 18 #include <boost/cstdint.hpp> 158 virtual void tree_dump(std::ostream &out_ = std::clog,
const std::string &title_ =
"",
159 const std::string &indent_ =
"",
bool inherit_ =
false)
const;
207 int32_t _solution_id_;
226 #endif // FALAISE_SNEMO_DATAMODELS_TRACKER_CLUSTERING_SOLUTION_H
void set_solution_id(int32_t)
Set the solution ID.
tracker_cluster::handle_type cluster_handle_type
Handle on tracker cluster.
Definition: tracker_clustering_solution.h:91
void invalidate_solution_id()
Invalidate the solution ID.
static void compute_hit_belonging_from_solution(const tracker_clustering_solution &tcs_, hit_belonging_col_type &hbc_)
Compute the hit belonging informations from a given clustering solution.
const hit_collection_type & get_unclustered_hits() const
bool has_hit_belonging() const
Test if some hit belonging information is available.
A cluster of Geiger calibrated hits referenced by handles.
Definition: tracker_cluster.h:28
int get_solution_id() const
Get the solution ID.
void compute_hit_belonging()
Compute hit belonging.
tracker_clustering_solution()
Default constructor.
virtual ~tracker_clustering_solution()
Default constructor.
#define DATATOOLS_SERIALIZATION_DECLARATION()
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
A collection of tracker clusters.
Definition: tracker_clustering_solution.h:88
void clear()
Empty the contents of the tracker cluster solution.
bool hit_is_clustered(const calibrated_tracker_hit &hit_) const
Test if a given hit is clusterized.
bool hit_belongs_to_several_clusters(const calibrated_tracker_hit &hit_) const
Test if a given hit belongs to several clusters.
Model of a calibrated tracker hit (Geiger regime)
Definition: calibrated_tracker_hit.h:35
static int copy_one_solution_in_one(const tracker_clustering_solution &source_, tracker_clustering_solution &target_)
Copy one clustering solution in another one.
calibrated_tracker_hit::collection_type hit_collection_type
Collection of calibrated hit handles.
Definition: tracker_clustering_solution.h:100
Definition: calo_tapered_scin_box_model.h:54
void reset_hit_belonging()
Clear the hit belonging informations.
static int merge_two_solutions_in_ones(const tracker_clustering_solution &source0_, const tracker_clustering_solution &source1_, tracker_clustering_solution &target_)
datatools::properties & grab_auxiliaries()
Return a mutable reference on the container of auxiliary properties.
const hit_belonging_col_type & get_hit_belonging() const
Returns the hit belonging informations.
datatools::handle< tracker_clustering_solution > handle_type
Handle on tracker cluster solution.
Definition: tracker_clustering_solution.h:97
std::map< int32_t, cluster_col_type > hit_belonging_col_type
Dictionary of hit/cluster belonging.
Definition: tracker_clustering_solution.h:103
bool has_solution_id() const
Check if there is a valid solution ID.
void reset()
Reset the tracker cluster solution(see clear)
std::vector< cluster_handle_type > cluster_col_type
Collection of handles on tracker clusters.
Definition: tracker_clustering_solution.h:94
hit_collection_type & grab_unclustered_hits()
Return a mutable reference on the container of handles on unclustered calibrated tracker hits.
cluster_col_type & grab_clusters()
Return a mutable reference on the container of clusters.
const cluster_col_type & get_clusters() const
Return a non mutable reference on the container of clusters.
bool has_unclustered_hits() const
Check if there is some unclustered hits.
std::vector< handle_type > collection_type
Alias for a collection of handles on calibrated tracker hits.
Definition: calibrated_tracker_hit.h:54
bool hit_belongs_to_cluster(int32_t hit_id, int32_t cluster_id_) const
Test if hit with given ID belongs to a cluster with a given ID.
const datatools::properties & get_auxiliaries() const
Return a non mutable reference on the container of auxiliary properties.