CMS 3D CMS Logo

DDBox Class Reference

#include <DetectorDescription/Core/interface/DDSolid.h>

Inheritance diagram for DDBox:

DDSolid DDBase< DDName, DDI::Solid * >

List of all members.

Public Member Functions

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

Private Member Functions

 DDBox ()


Detailed Description

Definition at line 185 of file DDSolid.h.


Constructor & Destructor Documentation

DDBox::DDBox ( const DDSolid s  ) 

Definition at line 227 of file DDSolid.cc.

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

00228  : DDSolid(s) 
00229 { 
00230  if (s.shape() != ddbox) {
00231     std::string ex  = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDBox.\n";
00232     ex = ex + "Use a different solid interface!";
00233     throw DDException(ex);
00234  }
00235 }

DDBox::DDBox (  )  [private]


Member Function Documentation

double DDBox::halfX (  )  const

Definition at line 237 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginJob(), DDDividedBoxX::DDDividedBoxX(), DDDividedBoxX::getMaxParameter(), and DDDividedBoxX::makeDDTranslation().

00238 { return rep().parameters()[0]; }

double DDBox::halfY (  )  const

Definition at line 239 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginJob(), DDDividedBoxY::DDDividedBoxY(), DDDividedBoxZ::DDDividedBoxZ(), DDDividedBoxY::getMaxParameter(), and DDDividedBoxY::makeDDTranslation().

00240 { return rep().parameters()[1]; }

double DDBox::halfZ (  )  const

Definition at line 241 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginJob(), DDDividedBoxZ::DDDividedBoxZ(), DDDividedBoxZ::getMaxParameter(), and DDDividedBoxZ::makeDDTranslation().

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:46 2009 for CMSSW by  doxygen 1.5.4