CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDTorus Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDTorus (const DDSolid &s)
double deltaPhi () const
double rMax () const
double rMin () const
double rTorus () const
double startPhi () const

Private Member Functions

 DDTorus ()

Detailed Description

Definition at line 305 of file DDSolid.h.


Constructor & Destructor Documentation

DDTorus::DDTorus ( const DDSolid s)

Definition at line 477 of file DDSolid.cc.

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

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

Member Function Documentation

double DDTorus::deltaPhi ( ) const

Definition at line 494 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[4]; }
double DDTorus::rMax ( ) const

Definition at line 488 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[1]; }
double DDTorus::rMin ( ) const

Definition at line 486 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[0]; }
double DDTorus::rTorus ( ) const

Definition at line 490 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[2]; }
double DDTorus::startPhi ( ) const

Definition at line 492 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), and DDCoreToDDXMLOutput::solid().

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