23 p_.emplace_back(zhalf);
24 p_.emplace_back(rInMinusZ);
25 p_.emplace_back(rOutMinusZ);
26 p_.emplace_back(rInPlusZ);
27 p_.emplace_back(rOutPlusZ);
28 p_.emplace_back(startPhi);
29 p_.emplace_back(deltaPhi);
65 double rInMinusZ=
p_[1];
66 double rOutMinusZ=
p_[2];
67 double rInPlusZ=
p_[3];
68 double rOutPlusZ=
p_[4];
73 double volume1=1_pi*(rInPlusZ*rInPlusZ+rInMinusZ*rInMinusZ+rInMinusZ*rInPlusZ)*z/3;
75 double volume2=1_pi*(rOutPlusZ*rOutPlusZ+rOutMinusZ*rOutMinusZ+rOutMinusZ*rOutPlusZ)*z/3;
77 double slice=deltaPhi/(2_pi);
78 double volume=slice*(volume2-volume1);
double volume() const override
constexpr NumType convertRadToDeg(NumType radians)
void stream(std::ostream &) const override
Cons(double zhalf, double rInMinusZ, double rOutMinusZ, double rInPlusZ, double rOutPlusZ, double startPhi, double deltaPhi)
Abs< T >::type abs(const T &t)
constexpr NumType convertMmToCm(NumType millimeters)