CMS 3D CMS Logo

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

#include <CutTubs.h>

Inheritance diagram for DDI::CutTubs:
DDI::Solid

Public Member Functions

 CutTubs (double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double lx, double ly, double lz, double tx, double ty, double tz)
 
void stream (std::ostream &os) const override
 
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 CutTubs.h.

Constructor & Destructor Documentation

◆ CutTubs()

DDI::CutTubs::CutTubs ( double  zHalf,
double  rIn,
double  rOut,
double  startPhi,
double  deltaPhi,
double  lx,
double  ly,
double  lz,
double  tx,
double  ty,
double  tz 
)

Definition at line 13 of file CutTubs.cc.

25  p_.emplace_back(zhalf);
26  p_.emplace_back(rIn);
27  p_.emplace_back(rOut);
28  p_.emplace_back(startPhi);
29  p_.emplace_back(deltaPhi);
30  p_.emplace_back(lx);
31  p_.emplace_back(ly);
32  p_.emplace_back(lz);
33  p_.emplace_back(tx);
34  p_.emplace_back(ty);
35  p_.emplace_back(tz);
36 }

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

Member Function Documentation

◆ stream()

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

Reimplemented from DDI::Solid.

Definition at line 38 of file CutTubs.cc.

38  {
39  os << " zhalf=" << convertMmToCm(p_[0]) << " rIn=" << convertMmToCm(p_[1]) << " rOut=" << convertMmToCm(p_[2])
40  << " startPhi=" << convertRadToDeg(p_[3]) << " deltaPhi=" << convertRadToDeg(p_[4]) << " Outside Normal at -z ("
41  << p_[5] << "," << p_[6] << "," << p_[7] << ")"
42  << " Outside Normal at +z (" << p_[8] << "," << p_[9] << "," << p_[10] << ")";
43 }

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

◆ volume()

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

Reimplemented from DDI::Solid.

Definition at line 23 of file CutTubs.h.

23 { 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
DDI::Solid::Solid
Solid()
Definition: Solid.h:12
DDSolidShape::ddcuttubs
geant_units::operators::convertMmToCm
constexpr NumType convertMmToCm(NumType millimeters)
Definition: GeantUnits.h:63
DDI::Solid::p_
std::vector< double > p_
Definition: Solid.h:30