36 #if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
42 using namespace CLHEP;
49 G4UBox::G4UBox(
const G4String& pName,
53 : Base_t(pName, pX, pY, pZ)
62 G4UBox::G4UBox( __void__&
a )
79 G4UBox::G4UBox(
const G4UBox& rhs)
88 G4UBox& G4UBox::operator = (
const G4UBox& rhs)
92 if (
this == &rhs) {
return *
this; }
96 Base_t::operator=(rhs);
105 G4double G4UBox::GetXHalfLength()
const
109 G4double G4UBox::GetYHalfLength()
const
113 G4double G4UBox::GetZHalfLength()
const
118 void G4UBox::SetXHalfLength(
G4double dx)
121 fRebuildPolyhedron =
true;
123 void G4UBox::SetYHalfLength(
G4double dy)
126 fRebuildPolyhedron =
true;
128 void G4UBox::SetZHalfLength(
G4double dz)
131 fRebuildPolyhedron =
true;
152 return new G4UBox(*
this);
164 pMin.
set(-dx,-dy,-dz);
165 pMax.
set( dx, dy, dz);
169 if (pMin.
x() >= pMax.
x() || pMin.
y() >= pMax.
y() || pMin.
z() >= pMax.
z())
172 message <<
"Bad bounding box (min >= max) for solid: "
174 <<
"\npMin = " << pMin
175 <<
"\npMax = " << pMax;
176 G4Exception(
"G4UBox::BoundingLimits()",
"GeomMgt0001",
187 G4UBox::CalculateExtent(
const EAxis pAxis,
195 BoundingLimits(bmin,bmax);
199 return bbox.CalculateExtent(pAxis,pVoxelLimit,pTransform,pMin,pMax);
214 #endif // G4GEOM_USE_USOLIDS
void set(double x, double y, double z)
std::vector< ExP01TrackerHit * > a
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const
void message(RunManager *runmanager)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout