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 (void) const

Private Member Functions

 DDOrb (void)

Detailed Description

Definition at line 338 of file DDSolid.h.


Constructor & Destructor Documentation

DDOrb::DDOrb ( const DDSolid s)

Definition at line 580 of file DDSolid.cc.

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

  : 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 cms::Exception("DDException") << ex;
  }
}
DDOrb::DDOrb ( void  ) [private]

Member Function Documentation

double DDOrb::radius ( void  ) const

Definition at line 589 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::orb().

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