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() [1/2]

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

Definition at line 55 of file DDShapes.cc.

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 }

References cms::DDFilteredView::isAConeSeg().

◆ DDCons() [2/2]

cms::dd::DDCons::DDCons ( void  )
delete

Member Function Documentation

◆ deltaPhi()

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

Definition at line 63 of file DDShapes.h.

63 { return (phi2_); }

References phi2_.

◆ phiFrom()

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

Definition at line 62 of file DDShapes.h.

62 { return (phi1_); }

References phi1_.

◆ rInMinusZ()

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

Definition at line 58 of file DDShapes.h.

58 { return (rmin1_); }

References rmin1_.

◆ rInPlusZ()

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

Definition at line 60 of file DDShapes.h.

60 { return (rmin2_); }

References rmin2_.

◆ rOutMinusZ()

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

Definition at line 59 of file DDShapes.h.

59 { return (rmax1_); }

References rmax1_.

◆ rOutPlusZ()

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

Definition at line 61 of file DDShapes.h.

61 { return (rmax2_); }

References rmax2_.

◆ zhalf()

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

Definition at line 57 of file DDShapes.h.

57 { return (dz_); }

References dz_.

Member Data Documentation

◆ dz_

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

Definition at line 68 of file DDShapes.h.

Referenced by zhalf().

◆ phi1_

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

Definition at line 73 of file DDShapes.h.

Referenced by phiFrom().

◆ phi2_

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

Definition at line 74 of file DDShapes.h.

Referenced by deltaPhi().

◆ rmax1_

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

Definition at line 70 of file DDShapes.h.

Referenced by rOutMinusZ().

◆ rmax2_

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

Definition at line 72 of file DDShapes.h.

Referenced by rOutPlusZ().

◆ rmin1_

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

Definition at line 69 of file DDShapes.h.

Referenced by rInMinusZ().

◆ rmin2_

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

Definition at line 71 of file DDShapes.h.

Referenced by rInPlusZ().

◆ valid

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

Definition at line 65 of file DDShapes.h.

cms::dd::DDCons::rmin1_
double rmin1_
Definition: DDShapes.h:69
cms::dd::DDCons::dz_
double dz_
Definition: DDShapes.h:68
cms::dd::DDCons::valid
const bool valid
Definition: DDShapes.h:65
cms::dd::DDCons::rmin2_
double rmin2_
Definition: DDShapes.h:71
angle_units::operators::convertDegToRad
constexpr long double convertDegToRad(NumType degrees)
Definition: angle_units.h:27
cms::dd::DDCons::rmax1_
double rmax1_
Definition: DDShapes.h:70
cms::dd::DDCons::rmax2_
double rmax2_
Definition: DDShapes.h:72
cms::dd::DDCons::phi2_
double phi2_
Definition: DDShapes.h:74
cms::dd::DDCons::phi1_
double phi1_
Definition: DDShapes.h:73
Geom::NormalizeWrapper
Definition: Phi.h:29