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 }
DDSolidShapes.h
DDSolidShape
DDSolidShape
Definition: DDSolidShapes.h:6
TruncTubs.h
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
DDI::TruncTubs::TruncTubs
TruncTubs(double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
Definition: TruncTubs.cc:11
geant_units::operators
Definition: GeantUnits.h:18
DDI::TruncTubs::stream
void stream(std::ostream &os) const override
Definition: TruncTubs.cc:30
Solid.h
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
DDSolidShape::ddtrunctubs
GeantUnits.h
DDI::Solid
Definition: Solid.h:10
geant_units::operators::convertMmToCm
constexpr NumType convertMmToCm(NumType millimeters)
Definition: GeantUnits.h:62
DDI::Solid::p_
std::vector< double > p_
Definition: Solid.h:30