CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDBox Class Reference

Interface to a Box. More...

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDBox (const DDSolid &s)
double halfX (void) const
double halfY (void) const
double halfZ (void) const

Private Member Functions

 DDBox (void)

Detailed Description

Interface to a Box.

The definition (parameters, local frame) of the Box is the same than in Geant4.

Definition at line 162 of file DDSolid.h.


Constructor & Destructor Documentation

DDBox::DDBox ( const DDSolid s)

Definition at line 244 of file DDSolid.cc.

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

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

Member Function Documentation

double DDBox::halfX ( void  ) const
double DDBox::halfY ( void  ) const
double DDBox::halfZ ( void  ) const