Interface to a Box. More...
#include <DDSolid.h>
Public Member Functions | |
DDBox (const DDSolid &s) | |
double | halfX (void) const |
double | halfY (void) const |
double | halfZ (void) const |
Private Member Functions | |
DDBox (void) |
Interface to a Box.
The definition (parameters, local frame) of the Box is the same than in Geant4.
DDBox::DDBox | ( | const DDSolid & | s | ) |
Definition at line 244 of file DDSolid.cc.
References ddbox, Exception, DDName::name(), DDBase< N, C >::name(), DDName::ns(), DDSolid::shape(), and AlCaHLTBitMon_QueryRunRegistry::string.
: 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] |
double DDBox::halfX | ( | void | ) | const |
Definition at line 254 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginRun(), DDDividedBoxX::DDDividedBoxX(), DDDividedBoxX::getMaxParameter(), HcalNumberingFromDDD::loadGeometry(), DDDividedBoxX::makeDDTranslation(), and DDCoreToDDXMLOutput::solid().
{ return rep().parameters()[0]; }
double DDBox::halfY | ( | void | ) | const |
Definition at line 256 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginRun(), DDDividedBoxY::DDDividedBoxY(), DDDividedBoxZ::DDDividedBoxZ(), DDDividedBoxY::getMaxParameter(), HcalNumberingFromDDD::loadGeometry(), DDDividedBoxY::makeDDTranslation(), and DDCoreToDDXMLOutput::solid().
{ return rep().parameters()[1]; }
double DDBox::halfZ | ( | void | ) | const |
Definition at line 258 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginRun(), DDDividedBoxZ::DDDividedBoxZ(), DDDividedBoxZ::getMaxParameter(), HcalNumberingFromDDD::loadGeometry(), DDDividedBoxZ::makeDDTranslation(), and DDCoreToDDXMLOutput::solid().
{ return rep().parameters()[2]; }