CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDEllipticalTube Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDEllipticalTube (const DDSolid &s)
double xSemiAxis () const
double ySemiAxis () const
double zHeight () const

Private Member Functions

 DDEllipticalTube ()

Detailed Description

Definition at line 373 of file DDSolid.h.


Constructor & Destructor Documentation

DDEllipticalTube::DDEllipticalTube ( const DDSolid s)

Definition at line 596 of file DDSolid.cc.

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

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

Member Function Documentation

double DDEllipticalTube::xSemiAxis ( ) const

Definition at line 605 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipticaltube().

{ return rep().parameters()[0]; }
double DDEllipticalTube::ySemiAxis ( ) const

Definition at line 607 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipticaltube().

{ return rep().parameters()[1]; }
double DDEllipticalTube::zHeight ( ) const

Definition at line 609 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipticaltube().

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