CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDSphere Class Reference

#include <DDSolid.h>

Inheritance diagram for DDSphere:
DDSolid DDBase< DDName, DDI::Solid * >

List of all members.

Public Member Functions

 DDSphere (const DDSolid &s)
double deltaPhi (void) const
double deltaTheta (void) const
double innerRadius (void) const
double outerRadius (void) const
double startPhi (void) const
double startTheta (void) const

Private Member Functions

 DDSphere (void)

Detailed Description

Definition at line 323 of file DDSolid.h.


Constructor & Destructor Documentation

DDSphere::DDSphere ( const DDSolid s)

Definition at line 560 of file DDSolid.cc.

References ddsphere, DDName::name(), DDBase< N, C >::name(), DDName::ns(), and DDSolid::shape().

  : DDSolid(s) {
  if (s.shape() != ddsphere) {
    std::string ex  = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDSphere (or sphere section).\n";
    ex = ex + "Use a different solid interface!";
    throw DDException(ex);
  }
}
DDSphere::DDSphere ( void  ) [private]

Member Function Documentation

double DDSphere::deltaPhi ( void  ) const

Definition at line 575 of file DDSolid.cc.

References DDBase< DDName, DDI::Solid * >::rep().

Referenced by DDG4SolidConverter::sphere().

{ return rep().parameters()[3]; }
double DDSphere::deltaTheta ( void  ) const

Definition at line 579 of file DDSolid.cc.

References DDBase< DDName, DDI::Solid * >::rep().

Referenced by DDG4SolidConverter::sphere().

{ return rep().parameters()[5]; }
double DDSphere::innerRadius ( void  ) const

Definition at line 569 of file DDSolid.cc.

References DDBase< DDName, DDI::Solid * >::rep().

Referenced by DDG4SolidConverter::sphere().

{ return rep().parameters()[0]; }
double DDSphere::outerRadius ( void  ) const

Definition at line 571 of file DDSolid.cc.

References DDBase< DDName, DDI::Solid * >::rep().

Referenced by DDG4SolidConverter::sphere().

{ return rep().parameters()[1]; }
double DDSphere::startPhi ( void  ) const

Definition at line 573 of file DDSolid.cc.

References DDBase< DDName, DDI::Solid * >::rep().

Referenced by DDG4SolidConverter::sphere().

{ return rep().parameters()[2]; }
double DDSphere::startTheta ( void  ) const

Definition at line 577 of file DDSolid.cc.

References DDBase< DDName, DDI::Solid * >::rep().

Referenced by DDG4SolidConverter::sphere().

{ return rep().parameters()[4]; }