CMS 3D CMS Logo

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

#include <DDShapes.h>

Public Member Functions

 DDCons (const cms::DDFilteredView &fview)
 
 DDCons (void)=delete
 
double deltaPhi (void) const
 
double phiFrom (void) const
 
double rInMinusZ (void) const
 
double rInPlusZ (void) const
 
double rOutMinusZ (void) const
 
double rOutPlusZ (void) const
 
double zhalf (void) const
 

Public Attributes

const bool valid
 

Private Attributes

double dz_
 
double phi1_
 
double phi2_
 
double rmax1_
 
double rmax2_
 
double rmin1_
 
double rmin2_
 

Detailed Description

Definition at line 52 of file DDShapes.h.

Constructor & Destructor Documentation

DDCons::DDCons ( const cms::DDFilteredView fview)

Definition at line 55 of file DDShapes.cc.

References angle_units::operators::convertDegToRad(), dz_, cms::DDFilteredView::isAConeSeg(), phi1_, phi2_, rmax1_, rmax2_, rmin1_, rmin2_, and valid.

55  : valid{fv.isAConeSeg()} {
56  if (valid) {
57  const TGeoConeSeg *coneSeg = fv.getShapePtr<TGeoConeSeg>();
58  dz_ = coneSeg->GetDZ();
59  phi1_ = convertDegToRad(coneSeg->GetPhi1());
60  phi2_ = convertDegToRad(coneSeg->GetPhi2()) - phi1_;
61 
62  // Limit to range -pi to pi
64  rmin1_ = coneSeg->GetRmin1();
65  rmin2_ = coneSeg->GetRmin2();
66  rmax1_ = coneSeg->GetRmax1();
67  rmax2_ = coneSeg->GetRmax2();
68  }
69 }
constexpr long double convertDegToRad(NumType degrees)
Definition: angle_units.h:27
double rmin2_
Definition: DDShapes.h:71
double dz_
Definition: DDShapes.h:68
double phi1_
Definition: DDShapes.h:73
double rmax1_
Definition: DDShapes.h:70
const bool valid
Definition: DDShapes.h:65
double rmax2_
Definition: DDShapes.h:72
double rmin1_
Definition: DDShapes.h:69
double phi2_
Definition: DDShapes.h:74
cms::dd::DDCons::DDCons ( void  )
delete

Member Function Documentation

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

Definition at line 63 of file DDShapes.h.

63 { return (phi2_); }
double phi2_
Definition: DDShapes.h:74
double cms::dd::DDCons::phiFrom ( void  ) const
inline

Definition at line 62 of file DDShapes.h.

62 { return (phi1_); }
double phi1_
Definition: DDShapes.h:73
double cms::dd::DDCons::rInMinusZ ( void  ) const
inline

Definition at line 58 of file DDShapes.h.

58 { return (rmin1_); }
double rmin1_
Definition: DDShapes.h:69
double cms::dd::DDCons::rInPlusZ ( void  ) const
inline

Definition at line 60 of file DDShapes.h.

60 { return (rmin2_); }
double rmin2_
Definition: DDShapes.h:71
double cms::dd::DDCons::rOutMinusZ ( void  ) const
inline

Definition at line 59 of file DDShapes.h.

59 { return (rmax1_); }
double rmax1_
Definition: DDShapes.h:70
double cms::dd::DDCons::rOutPlusZ ( void  ) const
inline

Definition at line 61 of file DDShapes.h.

61 { return (rmax2_); }
double rmax2_
Definition: DDShapes.h:72
double cms::dd::DDCons::zhalf ( void  ) const
inline

Definition at line 57 of file DDShapes.h.

References cms::dd::DDBox::dz_.

57 { return (dz_); }
double dz_
Definition: DDShapes.h:68

Member Data Documentation

double cms::dd::DDCons::dz_
private

Definition at line 68 of file DDShapes.h.

Referenced by DDCons().

double cms::dd::DDCons::phi1_
private

Definition at line 73 of file DDShapes.h.

Referenced by DDCons().

double cms::dd::DDCons::phi2_
private

Definition at line 74 of file DDShapes.h.

Referenced by DDCons().

double cms::dd::DDCons::rmax1_
private

Definition at line 70 of file DDShapes.h.

Referenced by DDCons().

double cms::dd::DDCons::rmax2_
private

Definition at line 72 of file DDShapes.h.

Referenced by DDCons().

double cms::dd::DDCons::rmin1_
private

Definition at line 69 of file DDShapes.h.

Referenced by DDCons().

double cms::dd::DDCons::rmin2_
private

Definition at line 71 of file DDShapes.h.

Referenced by DDCons().

const bool cms::dd::DDCons::valid

Definition at line 65 of file DDShapes.h.

Referenced by DDCons().