7 #include "CLHEP/Units/GlobalPhysicalConstants.h" 8 #include "CLHEP/Units/GlobalSystemOfUnits.h" 9 #include "CLHEP/Units/SystemOfUnits.h" 22 p_.emplace_back(zhalf);
23 p_.emplace_back(rInMinusZ);
24 p_.emplace_back(rOutMinusZ);
25 p_.emplace_back(rInPlusZ);
26 p_.emplace_back(rOutPlusZ);
27 p_.emplace_back(startPhi);
28 p_.emplace_back(deltaPhi);
34 os <<
" zhalf=" <<
p_[0]/cm
35 <<
" rIn-Z=" <<
p_[1]/cm
36 <<
" rOut-Z=" <<
p_[2]/cm
37 <<
" rIn+Z=" <<
p_[3]/cm
38 <<
" rOut+Z=" <<
p_[4]/cm
39 <<
" startPhi=" <<
p_[5]/deg
40 <<
" deltaPhi=" <<
p_[6]/deg;
64 double rInMinusZ=
p_[1];
65 double rOutMinusZ=
p_[2];
66 double rInPlusZ=
p_[3];
67 double rOutPlusZ=
p_[4];
72 double volume1=
pi*(rInPlusZ*rInPlusZ+rInMinusZ*rInMinusZ+rInMinusZ*rInPlusZ)*z/3;
74 double volume2=
pi*(rOutPlusZ*rOutPlusZ+rOutMinusZ*rOutMinusZ+rOutMinusZ*rOutPlusZ)*z/3;
76 double slice=deltaPhi/(2*
pi);
77 double volume=slice*(volume2-volume1);
double volume() const override
void stream(std::ostream &) const override
Cons(double zhalf, double rInMinusZ, double rOutMinusZ, double rInPlusZ, double rOutPlusZ, double startPhi, double deltaPhi)