CMS 3D CMS Logo

TruncTubs.cc
Go to the documentation of this file.
2 
3 #include <vector>
4 
8 
9 using namespace geant_units::operators;
10 
12  double rIn, double rOut,
13  double startPhi,
14  double deltaPhi,
15  double cutAtStart,
16  double cutAtDelta,
17  bool cutInside)
19 {
20  p_.emplace_back(zHalf);
21  p_.emplace_back(rIn);
22  p_.emplace_back(rOut);
23  p_.emplace_back(startPhi);
24  p_.emplace_back(deltaPhi);
25  p_.emplace_back(cutAtStart);
26  p_.emplace_back(cutAtDelta);
27  p_.emplace_back(cutInside);
28 }
29 
30 
31 void DDI::TruncTubs::stream(std::ostream & os) const
32 {
33  os << " zHalf=" << convertMmToCm( p_[0] )
34  << "cm rIn=" << convertMmToCm( p_[1] )
35  << "cm rOut=" << convertMmToCm( p_[2] )
36  << "cm startPhi=" << convertRadToDeg( p_[3] )
37  << "deg deltaPhi=" << convertRadToDeg( p_[4] )
38  << "deg cutAtStart=" << convertMmToCm( p_[5] )
39  << "cm cutAtDelta=" << convertMmToCm( p_[6] )
40  << "cm cutInside=" << p_[7];
41 }
DDSolidShape
Definition: DDSolidShapes.h:6
constexpr NumType convertRadToDeg(NumType radians)
Definition: GeantUnits.h:98
void stream(std::ostream &os) const override
Definition: TruncTubs.cc:31
TruncTubs(double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
Definition: TruncTubs.cc:11
std::vector< double > p_
Definition: Solid.h:32
constexpr NumType convertMmToCm(NumType millimeters)
Definition: GeantUnits.h:110