CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDPolyhedra Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDPolyhedra (const DDSolid &s)
double deltaPhi () const
std::vector< double > rMaxVec () const
std::vector< double > rMinVec () const
std::vector< double > rVec () const
int sides () const
double startPhi () const
std::vector< double > zVec () const

Private Member Functions

 DDPolyhedra ()

Detailed Description

Definition at line 259 of file DDSolid.h.


Constructor & Destructor Documentation

DDPolyhedra::DDPolyhedra ( const DDSolid s)

Definition at line 406 of file DDSolid.cc.

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

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

Member Function Documentation

double DDPolyhedra::deltaPhi ( ) const
std::vector< double > DDPolyhedra::rMaxVec ( ) const
std::vector< double > DDPolyhedra::rMinVec ( ) const
std::vector< double > DDPolyhedra::rVec ( ) const

Definition at line 422 of file DDSolid.cc.

References ddpolyhedra_rz, DDPolySolid::getVec(), and DDSolid::shape().

Referenced by DDCoreToDDXMLOutput::solid().

                                          {
  std::vector<double> tvec;
  if (shape() == ddpolyhedra_rz)
    tvec = getVec(1, 3, 2);
  return tvec;
}
int DDPolyhedra::sides ( ) const
double DDPolyhedra::startPhi ( ) const
std::vector< double > DDPolyhedra::zVec ( ) const