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

Private Member Functions

 DDEllipticalTube (void)

Detailed Description

Definition at line 348 of file DDSolid.h.


Constructor & Destructor Documentation

DDEllipticalTube::DDEllipticalTube ( const DDSolid s)

Definition at line 593 of file DDSolid.cc.

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

Member Function Documentation

double DDEllipticalTube::xSemiAxis ( void  ) const

Definition at line 602 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipticaltube().

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

Definition at line 604 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipticaltube().

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

Definition at line 606 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipticaltube().

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