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 () const
double deltaTheta () const
double innerRadius () const
double outerRadius () const
double startPhi () const
double startTheta () const

Private Member Functions

 DDSphere ()

Detailed Description

Definition at line 348 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 ( ) [private]

Member Function Documentation

double DDSphere::deltaPhi ( ) 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 ( ) 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 ( ) 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 ( ) 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 ( ) 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 ( ) const

Definition at line 577 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::sphere().

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