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,
13  double rOut,
14  double startPhi,
15  double deltaPhi,
16  double cutAtStart,
17  double cutAtDelta,
18  bool cutInside)
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 void DDI::TruncTubs::stream(std::ostream& os) const {
31  os << " zHalf=" << convertMmToCm(p_[0]) << "cm rIn=" << convertMmToCm(p_[1]) << "cm rOut=" << convertMmToCm(p_[2])
32  << "cm startPhi=" << convertRadToDeg(p_[3]) << "deg deltaPhi=" << convertRadToDeg(p_[4])
33  << "deg cutAtStart=" << convertMmToCm(p_[5]) << "cm cutAtDelta=" << convertMmToCm(p_[6])
34  << "cm cutInside=" << p_[7];
35 }
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
void stream(std::ostream &os) const override
Definition: TruncTubs.cc:30
DDSolidShape
Definition: DDSolidShapes.h:6
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:30
constexpr NumType convertMmToCm(NumType millimeters)
Definition: GeantUnits.h:62