14 #ifndef GENVTX_IN_MATERIALS_VERTEX_VALIDATOR_H 15 #define GENVTX_IN_MATERIALS_VERTEX_VALIDATOR_H 1 57 bool has_material(
const std::string & material_name_)
const;
69 virtual void tree_dump(std::ostream & out_ = std::clog,
70 const std::string & title_ =
"",
71 const std::string & indent_ =
"",
72 bool inherit_ =
false)
const;
82 std::set<std::string> _materials_;
92 #endif // GENVTX_IN_MATERIALS_VERTEX_VALIDATOR_H
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
bool has_material(const std::string &material_name_) const
Check if a given material name is set.
The cut abstract base class (interface)
Definition: i_cut.h:62
void add_material(const std::string &material_name_)
Add the name of a material to be validated.
virtual void reset()
Reset.
bool is_reversed() const
Check reversed flag.
in_materials_vertex_validator(datatools::logger::priority a_logging_priority=datatools::logger::PRIO_FATAL)
Constructor.
int get_max_depth() const
Return the maximum depth in the hierarchy of daughter volumes to investigate materials.
virtual void initialize(const datatools::properties &, datatools::service_manager &, cuts::cut_handle_dict_type &)
Initialization.
void set_reversed(bool)
Set the reversed flag.
virtual int _accept()
Selection.
#define CUT_REGISTRATION_INTERFACE(T)
Definition: i_cut.h:411
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
void set_max_depth(int)
Set the maximum depth in the hierarchy of daughter volumes to investigate materials.
std::map< std::string, cut_entry_type > cut_handle_dict_type
Alias type of a dictionary of cut entry.
Definition: cut_tools.h:175
bool has_max_depth() const
Check the use of a maximum depth in the hierarchy of daughter volumes to investigate materials.
The vertex validation.
Definition: in_materials_vertex_validator.h:28
virtual ~in_materials_vertex_validator()
Destructor.