CMS 3D CMS Logo

List of all members | Public Member Functions
DDI::TruncTubs Class Reference

#include <TruncTubs.h>

Inheritance diagram for DDI::TruncTubs:
DDI::Solid

Public Member Functions

void stream (std::ostream &os) const override
 
 TruncTubs (double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
 
double volume () const override
 
- Public Member Functions inherited from DDI::Solid
const std::vector< double > & parameters () const
 
void setParameters (std::vector< double > const &p)
 
DDSolidShape shape () const
 
 Solid ()
 
 Solid (DDSolidShape shape)
 
virtual ~Solid ()
 

Additional Inherited Members

- Protected Attributes inherited from DDI::Solid
std::vector< double > p_
 
DDSolidShape shape_
 

Detailed Description

Definition at line 9 of file TruncTubs.h.

Constructor & Destructor Documentation

◆ TruncTubs()

DDI::TruncTubs::TruncTubs ( double  zHalf,
double  rIn,
double  rOut,
double  startPhi,
double  deltaPhi,
double  cutAtStart,
double  cutAtDelta,
bool  cutInside 
)

Definition at line 11 of file TruncTubs.cc.

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 }

References ddtrunctubs, SiPixelRawToDigiRegional_cfi::deltaPhi, and DDI::Solid::p_.

Member Function Documentation

◆ stream()

void DDI::TruncTubs::stream ( std::ostream &  os) const
overridevirtual

Reimplemented from DDI::Solid.

Definition at line 30 of file TruncTubs.cc.

30  {
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 }

References geant_units::operators::convertMmToCm(), and angle_units::operators::convertRadToDeg().

◆ volume()

double DDI::TruncTubs::volume ( void  ) const
inlineoverridevirtual

Reimplemented from DDI::Solid.

Definition at line 20 of file TruncTubs.h.

20 { return -1; }
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
DDSolidShape::ddtrunctubs
DDI::Solid::Solid
Solid()
Definition: Solid.h:12
geant_units::operators::convertMmToCm
constexpr NumType convertMmToCm(NumType millimeters)
Definition: GeantUnits.h:62
DDI::Solid::p_
std::vector< double > p_
Definition: Solid.h:30