11 using namespace geant_units;
12 using namespace geant_units::operators;
15 p_.emplace_back(pRMin);
16 p_.emplace_back(pRMax);
17 p_.emplace_back(pRTor);
18 p_.emplace_back(pSPhi);
19 p_.emplace_back(pDPhi);
34 volume = p_[4] *
piRadians * p_[2] * (p_[1] * p_[1] - p_[0] * p_[0]);
constexpr NumType convertRadToDeg(NumType radians)
void stream(std::ostream &) const override
double volume() const override
constexpr double piRadians(M_PI)
Torus(double pRMin, double pRMax, double pRTor, double pSPhi, double pDPhi)
constexpr NumType convertMmToCm(NumType millimeters)