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.

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

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 }
Solid()
Definition: Solid.h:12
std::vector< double > p_
Definition: Solid.h:30

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.

References angle_units::operators::convertMmToCm(), angle_units::operators::convertRadToDeg(), and l1tGTMenu_BTagSeeds_cff::os.

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 }
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
constexpr NumType convertMmToCm(NumType millimeters)
Definition: angle_units.h:44
std::vector< double > p_
Definition: Solid.h:30

◆ volume()

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

Reimplemented from DDI::Solid.

Definition at line 23 of file CutTubs.h.

23 { return -1; }