16 #ifndef GENVTX_SPHERE_VG_H 17 #define GENVTX_SPHERE_VG_H 1 56 void set_bulk (
double skin_thickness_);
83 void tree_dump (std::ostream & out_ = std::clog,
84 const std::string & title_ =
"",
85 const std::string & indent_ =
"",
86 bool inherit_ =
false)
const;
95 virtual void initialize(const ::datatools::properties &,
100 virtual void reset();
119 void _set_defaults_ ();
131 double _skin_thickness_;
132 double _sum_weight_[6];
141 double r1_,
double r2_,
142 double theta1_,
double theta2_,
143 double phi1_,
double phi2_,
148 #endif // GENVTX_SPHERE_VG_H
void set_surface_mask(int surface_mask_)
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
void set_sphere_ref(const geomtools::sphere &sphere_)
void set_sphere(const geomtools::sphere &sphere_)
void set_logical(const geomtools::logical_volume &)
Set the reference to an external logical.
virtual void _shoot_vertex(::mygsl::rng &random_, ::geomtools::vector_3d &vertex_)
Randomize vertex.
virtual ~sphere_vg()
Destructor.
virtual bool is_initialized() const
Check initialization status.
bool has_sphere_ref() const
void set_skin_skip(double skin_skip_)
void set_surface(int surface_mask_)
virtual void initialize(const ::datatools::properties &, ::datatools::service_manager &, ::genvtx::vg_dict_type &)
Initialization.
void reset_logical()
Reset the reference to an external logical.
void randomize_sphere(mygsl::rng &random_, double r1_, double r2_, double theta1_, double theta2_, double phi1_, double phi2_, geomtools::vector_3d &vertex_)
const geomtools::sphere & get_sphere_ref() const
void set_skin_thickness(double skin_thickness_)
The base interface class for all vertex generator classes.
Definition: i_vertex_generator.h:59
static const int MODE_DEFAULT
Definition: sphere_vg.h:44
bool has_logical() const
Check if a referenced logical is available.
#define GENVTX_VG_REGISTRATION_INTERFACE(GENVTX_CLASS_NAME)
Definition: vg_macros.h:46
static const int MODE_INVALID
Definition: sphere_vg.h:41
virtual void reset()
Reset.
static const int MODE_BULK
Definition: sphere_vg.h:42
bool has_sphere_safe() const
std::map< std::string, vg_entry_type > vg_dict_type
Definition: vg_tools.h:125
Vertex generator from a sphere.
Definition: sphere_vg.h:37
static const int MODE_SURFACE
Definition: sphere_vg.h:43
const geomtools::sphere & get_sphere_safe() const
const geomtools::sphere & get_sphere() const
void set_bulk(double skin_thickness_)
Pseudo random number generator.
Definition: rng.h:53