#include <DetectorDescription/Core/interface/DDSolid.h>
Public Member Functions | |
DDBox (const DDSolid &s) | |
double | halfX () const |
double | halfY () const |
double | halfZ () const |
Private Member Functions | |
DDBox () |
Definition at line 185 of file DDSolid.h.
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] |
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]; }