15 #ifndef GENVTX_VERTEX_VALIDATION_H 16 #define GENVTX_VERTEX_VALIDATION_H 1 24 #include <boost/scoped_ptr.hpp> 194 void tree_dump(std::ostream & out = std::clog,
195 const std::string & title_ =
"",
196 const std::string & indent_ =
"",
197 bool inherit_ =
false)
const;
218 bool _owned_validator_;
220 boost::scoped_ptr<geometry_context> _geo_context_;
221 size_t _maximum_number_of_tries_;
222 size_t _number_of_tries_;
228 #endif // GENVTX_VERTEX_VALIDATION_H void set_maximum_number_of_tries(const size_t tries_)
Set the maximum number of tries.
bool has_validator() const
Check if there is a vertex validator.
void set_local_candidate_vertex(const geomtools::vector_3d &)
Set the local candidate vertex.
size_t get_maximum_number_of_tries() const
Return the maximum number of tries.
static datatools::factory_register< cuts::i_cut > & validator_factory_system_register()
Return a handle to the validator factory register (system singleton)
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
bool is_initialized() const
Check initialization status.
Vertex validation status is not defined.
Definition: vertex_validation.h:136
static const size_t DEFAULT_MAX_NUMBER_OF_TRIES
The default maximum number of tries.
Definition: vertex_validation.h:132
void initialize(const datatools::properties &config_)
Initialize the validation system.
const geomtools::vector_3d & get_global_candidate_vertex() const
Return the non mutable referecence to the global candidate vertex.
The cut abstract base class (interface)
Definition: i_cut.h:62
const geomtools::vector_3d & get_local_candidate_vertex() const
Return the non mutable referecence to the local candidate vertex.
const geomtools::geom_id & get_gid() const
Check geometry Id.
Vertex is rejected.
Definition: vertex_validation.h:138
bool has_ginfo() const
Check geometry info.
geometry_context()
Default constructor.
Top-level namespace of the Bayeux/cuts module library.
Definition: accept_cut.h:21
void reset_number_of_tries()
Reset the current number of tries.
const geomtools::geom_info & get_ginfo() const
Check geometry info.
validate_status_type validate()
Validation.
void set_global_candidate_vertex(const geomtools::vector_3d &)
Set the global candidate vertex.
void tree_dump(std::ostream &out=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
void set_validator(cuts::i_cut &validator_)
Set the vertex validator by reference.
void reset_geometry_context()
Reset the current geometry context.
bool has_logical_volume() const
Check logical volume.
validate_status_type
Status of the validation.
Definition: vertex_validation.h:135
void set_gid(const geomtools::geom_id &)
Set the referenced geometry Id.
The vertex validation.
Definition: vertex_validation.h:52
void set_logging_priority(datatools::logger::priority)
Set logging priority.
bool is_maximum_number_of_tries_reached() const
Check if the maximum number of tries is reached.
bool has_local_candidate_vertex() const
Check local candidate vertex.
void set_logical_volume(const geomtools::logical_volume &)
Set the referenced logical volume.
size_t get_number_of_tries() const
Return the current number of tries.
Object which embeds the geometry context of a given vertex.
Definition: vertex_validation.h:62
bool is_valid() const
Check validity.
vertex_validation()
Default constructor.
const geomtools::logical_volume & get_logical_volume() const
Return a non mutable reference to the logical volume.
bool has_global_candidate_vertex() const
Check global candidate vertex.
void reset_validator()
Reset the vertex validator.
geometry_context & grab_geometry_context()
Return a reference to the mutable current geometry context.
Utilities for logging information.
datatools::logger::priority get_logging_priority() const
Returns logging priority.
bool has_gid() const
Check geometry id.
Vertex validation reaches max number of tries.
Definition: vertex_validation.h:139
bool is_owned_validator() const
Check the vertex validator cut ownership.
virtual ~vertex_validation()
Destructor.
void set_ginfo(const geomtools::geom_info &)
Set the referenced geometry info.
void reset()
Reset the internals.
const geometry_context & get_geometry_context() const
Return a reference to the current geometry context.
Vertex is accepted.
Definition: vertex_validation.h:137
static void ocd_support(datatools::object_configuration_description &, const std::string &label_="")
OCD support.