14 p_.emplace_back(zhalf);
16 p_.emplace_back(rOut);
17 p_.emplace_back(startPhi);
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
constexpr NumType convertMmToCm(NumType millimeters)
void stream(std::ostream &) const override