CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDParallelepiped Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

double alpha (void) const
 DDParallelepiped (const DDSolid &s)
double phi (void) const
double theta (void) const
double xHalf (void) const
double yHalf (void) const
double zHalf (void) const

Private Member Functions

 DDParallelepiped (void)

Detailed Description

Definition at line 374 of file DDSolid.h.


Constructor & Destructor Documentation

DDParallelepiped::DDParallelepiped ( const DDSolid s)

Definition at line 634 of file DDSolid.cc.

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

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

Member Function Documentation

double DDParallelepiped::alpha ( void  ) const

Definition at line 649 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::para().

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

Definition at line 653 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::para().

{ return rep().parameters()[5]; }
double DDParallelepiped::theta ( void  ) const

Definition at line 651 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::para().

{ return rep().parameters()[4]; }
double DDParallelepiped::xHalf ( void  ) const

Definition at line 643 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::para().

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

Definition at line 645 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::para().

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

Definition at line 647 of file DDSolid.cc.

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

Referenced by DDG4SolidConverter::para().

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