CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDEllipsoid Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDEllipsoid (const DDSolid &s)
double xSemiAxis (void) const
double ySemiAxis (void) const
double zBottomCut (void) const
double zSemiAxis (void) const
double zTopCut (void) const

Private Member Functions

 DDEllipsoid (void)

Detailed Description

Definition at line 360 of file DDSolid.h.


Constructor & Destructor Documentation

DDEllipsoid::DDEllipsoid ( const DDSolid s)

Definition at line 610 of file DDSolid.cc.

References ddellipsoid, Exception, DDName::name(), DDBase< N, C >::name(), DDName::ns(), DDSolid::shape(), and AlCaHLTBitMon_QueryRunRegistry::string.

  : DDSolid(s) {
  if (s.shape() != ddellipsoid) {
    std::string ex  = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDEllipsoid (or truncated ellipsoid).\n";
    ex = ex + "Use a different solid interface!";
    throw cms::Exception("DDException") << ex;
  }
}
DDEllipsoid::DDEllipsoid ( void  ) [private]

Member Function Documentation

double DDEllipsoid::xSemiAxis ( void  ) const

Definition at line 619 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipsoid().

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

Definition at line 621 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipsoid().

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

Definition at line 625 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipsoid().

{ return rep().parameters()[3]; }
double DDEllipsoid::zSemiAxis ( void  ) const

Definition at line 623 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipsoid().

{ return rep().parameters()[2]; }
double DDEllipsoid::zTopCut ( void  ) const

Definition at line 627 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::ellipsoid().

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