CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDOrb Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDOrb (const DDSolid &s)
double radius () const

Private Member Functions

 DDOrb ()

Detailed Description

Definition at line 363 of file DDSolid.h.


Constructor & Destructor Documentation

DDOrb::DDOrb ( const DDSolid s)

Definition at line 583 of file DDSolid.cc.

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

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

Member Function Documentation

double DDOrb::radius ( ) const

Definition at line 592 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::orb().

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