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 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 ( void  ) [private]

Member Function Documentation

double DDEllipticalTube::xSemiAxis ( void  ) 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 ( void  ) 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 ( void  ) const

Definition at line 609 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipticaltube().

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