16 template <
typename Quantity>
19 typedef typename Quantity::value_type real_type;
20 typedef std::uniform_real_distribution<real_type> distribution_type;
23 typedef Quantity value_type;
28 : min_{value_type(phys::units::detail::magnitude_tag, 0)}
41 if (
this == &other)
return *
this;
55 value_type
getMax()
const {
return max_; }
65 void setMax(value_type
const& pmax) { max_ = pmax; }
75 value_type
getMin()
const {
return min_; }
85 void setMin(value_type
const& pmin) { min_ = pmin; }
97 template <
class Generator>
99 return min_ + dist_(g) * (max_ - min_);
103 distribution_type dist_{real_type(0.), real_type(1.)};
Import and extend the phys::units package.
The cascade namespace assembles all objects needed to simulate full particles cascades.