16 #ifndef GENVTX_BOX_VG_H 17 #define GENVTX_BOX_VG_H 1 64 void set_bulk (
double skin_thickness_);
100 void tree_dump (std::ostream & out_ = std::clog,
101 const std::string & title_ =
"",
102 const std::string & indent_ =
"",
103 bool inherit_ =
false)
const;
112 virtual void initialize(const ::datatools::properties &,
117 virtual void reset();
136 void _set_defaults_();
148 double _skin_thickness_;
149 double _sum_weight_[6];
161 #endif // GENVTX_BOX_VG_H static const int MODE_BULK
Definition: box_vg.h:42
static const int MODE_DEFAULT
Definition: box_vg.h:44
virtual void reset()
Reset.
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
void set_box(const geomtools::box &box_)
Set the embedded cylinder.
virtual void _shoot_vertex(::mygsl::rng &random_, ::geomtools::vector_3d &vertex_)
Randomize vertex.
void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
static const int MODE_SURFACE
Definition: box_vg.h:43
void set_mode(int mode_)
Set mode.
void set_bulk(double skin_thickness_)
Set bulk mode.
virtual ~box_vg()
Destructor.
void set_logical(const geomtools::logical_volume &)
Set the reference to an external logical.
void set_surface(int surface_mask_)
Set surface mode.
int get_mode() const
Return mode.
void set_box_ref(const geomtools::box &box_)
Set the reference to an external cylinder.
bool has_logical() const
Check if a referenced logical is available.
static const int MODE_INVALID
Definition: box_vg.h:41
const geomtools::box & get_box_safe() const
Return a safe const reference to the cylinder.
virtual void initialize(const ::datatools::properties &, ::datatools::service_manager &, ::genvtx::vg_dict_type &)
Initialization.
The base interface class for all vertex generator classes.
Definition: i_vertex_generator.h:59
A vertex generator based on the geometry of a 3D box.
Definition: box_vg.h:37
#define GENVTX_VG_REGISTRATION_INTERFACE(GENVTX_CLASS_NAME)
Definition: vg_macros.h:46
void set_skin_skip(double skin_skip_)
Set the skin skip distance.
virtual bool is_initialized() const
Check initialization status.
bool has_box_ref() const
Check if a referenced cylinder is available.
void set_surface_mask(int surface_mask_)
Set the surface mask.
const geomtools::box & get_box_ref() const
Return a const reference to the referenced external cylinder.
std::map< std::string, vg_entry_type > vg_dict_type
Definition: vg_tools.h:125
const geomtools::box & get_box() const
Return a const referece to the embedded cylinder.
void set_skin_thickness(double skin_thickness_)
Set the skin thickness.
void reset_logical()
Reset the reference to an external logical.
bool has_box_safe() const
Check if a safe referenced cylinder is available.
Pseudo random number generator.
Definition: rng.h:53