#include <DetectorDescription/Core/interface/DDSolid.h>
Public Member Functions | |
bool | atMinusZ () const |
true, if cut-out or rounding is on the -z side | |
DDPseudoTrap (const DDSolid &s) | |
double | halfZ () const |
half of the z-Axis | |
double | radius () const |
radius of the cut-out (neg.) or rounding (pos.) | |
double | x1 () const |
half length along x on -z | |
double | x2 () const |
half length along x on +z | |
double | y1 () const |
half length along y on -z | |
double | y2 () const |
half length along y on +z |
Definition at line 143 of file DDSolid.h.
DDPseudoTrap::DDPseudoTrap | ( | const DDSolid & | s | ) |
Definition at line 202 of file DDSolid.cc.
References ddpseudotrap, DDName::name(), DDBase< N, C >::name(), DDName::ns(), and DDSolid::shape().
00202 : DDSolid(s) 00203 { 00204 if (s.shape() != ddpseudotrap) { 00205 std::string ex = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is no DDPseudoTrap\n"; 00206 ex = ex + "Use a different solid interface!"; 00207 throw DDException(ex); 00208 } 00209 }
bool DDPseudoTrap::atMinusZ | ( | ) | const |
true, if cut-out or rounding is on the -z side
Definition at line 223 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginJob(), and DDG4SolidConverter::pseudotrap().
00223 { return rep().parameters()[6]; }
double DDPseudoTrap::halfZ | ( | ) | const |
half of the z-Axis
Definition at line 211 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginJob(), and DDG4SolidConverter::pseudotrap().
00211 { return rep().parameters()[4]; }
double DDPseudoTrap::radius | ( | ) | const |
radius of the cut-out (neg.) or rounding (pos.)
Definition at line 221 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginJob(), and DDG4SolidConverter::pseudotrap().
00221 { return rep().parameters()[5]; }
double DDPseudoTrap::x1 | ( | ) | const |
half length along x on -z
Definition at line 213 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginJob(), and DDG4SolidConverter::pseudotrap().
00213 { return rep().parameters()[0]; }
double DDPseudoTrap::x2 | ( | ) | const |
half length along x on +z
Definition at line 215 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginJob(), and DDG4SolidConverter::pseudotrap().
00215 { return rep().parameters()[1]; }
double DDPseudoTrap::y1 | ( | ) | const |
half length along y on -z
Definition at line 217 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginJob(), and DDG4SolidConverter::pseudotrap().
00217 { return rep().parameters()[2]; }
double DDPseudoTrap::y2 | ( | ) | const |
half length along y on +z
Definition at line 219 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginJob(), and DDG4SolidConverter::pseudotrap().
00219 { return rep().parameters()[3]; }