11 using namespace geant_units::operators;
14 p_.emplace_back(zhalf);
16 p_.emplace_back(rOut);
17 p_.emplace_back(startPhi);
18 p_.emplace_back(deltaPhi);
28 double z = 2. * p_[0];
33 double volume1 = 1_pi * rIn * rIn * z;
34 double volume2 = 1_pi * rOut * rOut * z;
36 double slice = fabs(phi / (2_pi));
38 volume = slice * (volume2 - volume1);
constexpr NumType convertRadToDeg(NumType radians)
Tubs(double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
double volume() const override
void stream(std::ostream &) const override
constexpr NumType convertMmToCm(NumType millimeters)