CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
cms::dd::DDTubs Class Reference

#include <DDShapes.h>

Public Member Functions

 DDTubs (const cms::DDFilteredView &fview)
 
 DDTubs (void)=delete
 
double deltaPhi (void) const
 
double rIn (void) const
 
double rOut (void) const
 
double startPhi (void) const
 
double zhalf (void) const
 

Public Attributes

const bool valid
 

Private Attributes

double deltaPhi_
 
double rIn_
 
double rOut_
 
double startPhi_
 
double zHalf_
 

Detailed Description

Definition at line 30 of file DDShapes.h.

Constructor & Destructor Documentation

◆ DDTubs() [1/2]

DDTubs::DDTubs ( const cms::DDFilteredView fview)

Definition at line 115 of file DDShapes.cc.

115  : valid{fv.isATubeSeg()} {
116  if (valid) {
117  const TGeoTubeSeg *tube = fv.getShapePtr<TGeoTubeSeg>();
118  zHalf_ = tube->GetDz();
119  rIn_ = tube->GetRmin();
120  rOut_ = tube->GetRmax();
121  startPhi_ = convertDegToRad(tube->GetPhi1());
122  deltaPhi_ = convertDegToRad(tube->GetPhi2()) - startPhi_;
123 
124  // Limit to range -pi to pi
126  }
127 }

References cms::DDFilteredView::isATubeSeg().

◆ DDTubs() [2/2]

cms::dd::DDTubs::DDTubs ( void  )
delete

Member Function Documentation

◆ deltaPhi()

double cms::dd::DDTubs::deltaPhi ( void  ) const
inline

Definition at line 39 of file DDShapes.h.

39 { return (deltaPhi_); }

References deltaPhi_.

◆ rIn()

double cms::dd::DDTubs::rIn ( void  ) const
inline

Definition at line 36 of file DDShapes.h.

36 { return (rIn_); }

References rIn_.

Referenced by HGCalGeomParameters::loadGeometryHexagon().

◆ rOut()

double cms::dd::DDTubs::rOut ( void  ) const
inline

Definition at line 37 of file DDShapes.h.

37 { return (rOut_); }

References rOut_.

Referenced by HGCalGeomParameters::loadGeometryHexagon().

◆ startPhi()

double cms::dd::DDTubs::startPhi ( void  ) const
inline

Definition at line 38 of file DDShapes.h.

38 { return (startPhi_); }

References startPhi_.

◆ zhalf()

double cms::dd::DDTubs::zhalf ( void  ) const
inline

Definition at line 35 of file DDShapes.h.

35 { return (zHalf_); }

References zHalf_.

Member Data Documentation

◆ deltaPhi_

double cms::dd::DDTubs::deltaPhi_
private

Definition at line 48 of file DDShapes.h.

Referenced by deltaPhi().

◆ rIn_

double cms::dd::DDTubs::rIn_
private

Definition at line 45 of file DDShapes.h.

Referenced by rIn().

◆ rOut_

double cms::dd::DDTubs::rOut_
private

Definition at line 46 of file DDShapes.h.

Referenced by rOut().

◆ startPhi_

double cms::dd::DDTubs::startPhi_
private

Definition at line 47 of file DDShapes.h.

Referenced by startPhi().

◆ valid

const bool cms::dd::DDTubs::valid

Definition at line 41 of file DDShapes.h.

◆ zHalf_

double cms::dd::DDTubs::zHalf_
private

Definition at line 44 of file DDShapes.h.

Referenced by zhalf().

angle_units::operators::convertDegToRad
constexpr long double convertDegToRad(NumType degrees)
Definition: angle_units.h:27
cms::dd::DDTubs::rOut_
double rOut_
Definition: DDShapes.h:46
cms::dd::DDTubs::deltaPhi_
double deltaPhi_
Definition: DDShapes.h:48
cms::dd::DDTubs::startPhi_
double startPhi_
Definition: DDShapes.h:47
cms::dd::DDTubs::valid
const bool valid
Definition: DDShapes.h:41
cms::dd::DDTubs::zHalf_
double zHalf_
Definition: DDShapes.h:44
Geom::NormalizeWrapper
Definition: Phi.h:29
cms::dd::DDTubs::rIn_
double rIn_
Definition: DDShapes.h:45