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 (void) const
double rMax (void) const
double rMin (void) const
double rTorus (void) const
double startPhi (void) const

Private Member Functions

 DDTorus (void)

Detailed Description

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

Member Function Documentation

double DDTorus::deltaPhi ( void  ) 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 ( void  ) 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 ( void  ) 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 ( void  ) 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 ( void  ) 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]; }