CMS 3D CMS Logo

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

#include <DDShapes.h>

Public Member Functions

 DDBox (const cms::DDFilteredView &fview)
 
 DDBox (void)=delete
 
double halfX () const
 
double halfY () const
 
double halfZ () const
 

Public Attributes

const bool valid
 

Private Attributes

double dx_
 
double dy_
 
double dz_
 

Detailed Description

Definition at line 14 of file DDShapes.h.

Constructor & Destructor Documentation

◆ DDBox() [1/2]

DDBox::DDBox ( const cms::DDFilteredView fview)

Definition at line 42 of file DDShapes.cc.

42  : valid{fv.isABox()} {
43  if (valid) {
44  const TGeoBBox *box = fv.getShapePtr<TGeoBBox>();
45  dx_ = box->GetDX();
46  dy_ = box->GetDY();
47  dz_ = box->GetDZ();
48  }
49 }

References cms::DDFilteredView::isABox().

◆ DDBox() [2/2]

cms::dd::DDBox::DDBox ( void  )
delete

Member Function Documentation

◆ halfX()

double cms::dd::DDBox::halfX ( void  ) const
inline

Definition at line 19 of file DDShapes.h.

19 { return (dx_); }

References dx_.

◆ halfY()

double cms::dd::DDBox::halfY ( void  ) const
inline

Definition at line 20 of file DDShapes.h.

20 { return (dy_); }

References dy_.

◆ halfZ()

double cms::dd::DDBox::halfZ ( void  ) const
inline

Definition at line 21 of file DDShapes.h.

21 { return (dz_); }

References dz_.

Member Data Documentation

◆ dx_

double cms::dd::DDBox::dx_
private

Definition at line 26 of file DDShapes.h.

Referenced by halfX().

◆ dy_

double cms::dd::DDBox::dy_
private

Definition at line 26 of file DDShapes.h.

Referenced by halfY().

◆ dz_

double cms::dd::DDBox::dz_
private

Definition at line 26 of file DDShapes.h.

Referenced by halfZ().

◆ valid

const bool cms::dd::DDBox::valid

Definition at line 23 of file DDShapes.h.

cms::dd::DDBox::dz_
double dz_
Definition: DDShapes.h:26
cms::dd::DDBox::dx_
double dx_
Definition: DDShapes.h:26
cms::dd::DDBox::valid
const bool valid
Definition: DDShapes.h:23
cms::dd::DDBox::dy_
double dy_
Definition: DDShapes.h:26