6 #define GENVTX_UTILS_H 1 14 #include <boost/type_traits/integral_constant.hpp> 142 void dump(std::ostream & = std::clog,
const std::string & title_ =
"")
const;
153 #endif // GENVTX_UTILS_H weight_info()
Default constructor.
weighting by volume
Definition: utils.h:91
const geomtools::geom_info & get_ginfo() const
Return a reference to the non mutable geometry info.
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
bool has_mass() const
Check for mass weigthing.
No weighting.
Definition: utils.h:89
void dump(std::ostream &=std::clog, const std::string &title_="") const
Print.
void invalidate()
Invalidate the weight parameters.
weighting by surface
Definition: utils.h:90
double get_weight() const
Return the weight.
double get_value() const
Return the reference weighting value.
double get_cumulated_weight() const
Return the cumulated weight.
double get_volume() const
Return the associated volume.
weight_entry_type()
Default constructor.
bool has_surface() const
Check for surface weigthing.
static const int MODE_DEFAULT
Definition: utils.h:32
static const int MODE_SURFACE
Definition: utils.h:31
datatools::properties config
Definition: utils.h:40
weighting by volume
Definition: utils.h:92
const geomtools::geom_info * ginfo
Handle to associated geometry data.
Definition: utils.h:79
Utilities for vertex generators.
Definition: utils.h:25
bool has_type() const
Check if a weighting type is present.
weighting by mass
Definition: utils.h:93
void set_value(double)
Set the reference weighting value.
void invalidate()
Invalidate the weighting informations.
bool is_valid() const
Check the validity of weight parameters.
weighting_type
Weighting type for combined vertex generators.
Definition: utils.h:88
static bool origin_is_invalid(const std::string &)
bool has_ginfo() const
Check if geometry info is available.
void set_mass(double)
Set the associated mass.
double get_surface() const
Return the associated surface.
static void origin_invalidate(std::string &)
bool has_volume() const
Check for volume weigthing.
int get_type() const
Return the weighting type.
Information about the weighting of combined vertex generators.
Definition: utils.h:84
double get_mass() const
Return the associated mass.
void reset()
Reset the weight parameters.
Weight data for combined vertex generators.
Definition: utils.h:47
double cumulated_weight
Cumulated weight.
Definition: utils.h:78
void set_type(int)
Set the weighting type.
double weight
Weight.
Definition: utils.h:77
void load(const datatools::properties &config_)
static const int MODE_INVALID
Definition: utils.h:29
static const int MODE_BULK
Definition: utils.h:30
bool is_valid() const
Check the validity of weighting informations.