Geant4
10.00.p02
|
Classes | |
struct | CompareAsc |
struct | CompareDesc |
Functions | |
short | Sign (short a, short b) |
int | Sign (int a, int b) |
long | Sign (long a, long b) |
float | Sign (float a, float b) |
double | Sign (double a, double b) |
double | Infinity () |
double | ASin (double) |
double | ACos (double) |
double | ATan (double) |
double | ATan2 (double, double) |
void | Exception (const char *originOfException, const char *exceptionCode, ExceptionSeverity severity, int level, const char *description) |
bool | AreEqualAbs (double af, double bf, double epsilon) |
bool | AreEqualRel (double af, double bf, double relPrec) |
long | LocMin (long n, const double *a) |
long | LocMax (long n, const double *a) |
void | TransformLimits (UVector3 &min, UVector3 &max, const UTransform3D &transformation) |
double | Random (double min=0.0, double max=1.0) |
std::string | ToString (int number) |
std::string | ToString (double number) |
int | FileSize (const std::string &filePath) |
int | StrPos (const std::string &haystack, const std::string &needle) |
double | GetRadiusInRing (double rmin, double rmax) |
template<class T > | |
T | sqr (const T &x) |
bool | StrEnds (std::string const &fullString, std::string const &ending) |
Variables | |
static const double | kPi = 3.14159265358979323846 |
static const double | kTwoPi = 2.0 * kPi |
static const double | kRadToDeg = 180.0 / kPi |
static const double | kDegToRad = kPi / 180.0 |
static const double | kSqrt2 = 1.4142135623730950488016887242097 |
static const double | kInfinity = DBL_MAX |
static const double | kMeshAngleDefault = (kPi / 4) |
static const int | kMinMeshSections = 3 |
static const int | kMaxMeshSections = 37 |
|
inline |
Definition at line 213 of file UUtils.hh.
References kPi.
Referenced by UVector3::Angle(), and UVector3::Theta().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 221 of file UUtils.hh.
References kPi.
Referenced by UVector3::Phi().
void UUtils::Exception | ( | const char * | originOfException, |
const char * | exceptionCode, | ||
ExceptionSeverity | severity, | ||
int | level, | ||
const char * | description | ||
) |
Definition at line 122 of file UUtils.cc.
References Error, FatalError, FatalErrorInArguments, and Warning.
Referenced by UTubs::ApproxSurfaceNormal(), USphere::ApproxSurfaceNormal(), UCons::ApproxSurfaceNormal(), UTrd::CheckAndSetAllParameters(), USphere::CheckDPhiAngle(), USphere::CheckThetaAngles(), UGenericPolycone::Create(), UReduciblePolygon::Create(), UPolyhedra::Create(), UPolyPhiFace::Diagnose(), UOrb::DistanceToIn(), UOrb::DistanceToOut(), UTet::DistanceToOut(), UTrd::DistanceToOut(), UTubs::DistanceToOut(), UCons::DistanceToOut(), USphere::DistanceToOut(), UPolyhedra::Init(), UPolycone::Init(), UTrd::Normal(), UTubs::Normal(), UCons::Normal(), USphere::Normal(), UPolyhedra::Reset(), UOrb::SafetyFromInside(), UTrd::SafetyFromInside(), UTubs::SafetyFromInside(), USphere::SafetyFromInside(), UCons::SafetyFromInside(), G4H2Messenger::SetNewValue(), G4HnMessenger::SetNewValue(), G4H1Messenger::SetNewValue(), UPolycone::SetOriginalParameters(), UBox::SetXHalfLength(), UBox::SetYHalfLength(), UBox::SetZHalfLength(), UPolyPhiFace::Triangulate(), UBox::UBox(), UCons::UCons(), UOrb::UOrb(), UPolycone::UPolycone(), USphere::USphere(), UTet::UTet(), and UTubs::UTubs().
|
inline |
Definition at line 155 of file UUtils.hh.
References Random(), and sqr().
Referenced by UTubs::GetPointOnSurface(), USphere::GetPointOnSurface(), and UCons::GetPointOnSurface().
|
inline |
Definition at line 172 of file UUtils.hh.
Referenced by USphere::DistanceToIn(), USphere::DistanceToOut(), and USphere::Normal().
long UUtils::LocMax | ( | long | n, |
const double * | a | ||
) |
long UUtils::LocMin | ( | long | n, |
const double * | a | ||
) |
double UUtils::Random | ( | double | min = 0.0 , |
double | max = 1.0 |
||
) |
Definition at line 69 of file UUtils.cc.
References G4INCL::Math::min().
Referenced by VUSolid::EstimateCubicVolume(), VUSolid::EstimateSurfaceArea(), UPolycone::GetPointOnCone(), UPolyhedraSide::GetPointOnFace(), UPolyconeSide::GetPointOnFace(), UTet::GetPointOnFace(), UPolyhedraSide::GetPointOnPlane(), UPolyhedra::GetPointOnPlane(), UPolycone::GetPointOnRing(), UTet::GetPointOnSurface(), UOrb::GetPointOnSurface(), UBox::GetPointOnSurface(), UTrd::GetPointOnSurface(), UTubs::GetPointOnSurface(), USphere::GetPointOnSurface(), UCons::GetPointOnSurface(), UPolyhedra::GetPointOnSurface(), UPolycone::GetPointOnSurface(), UVCSGfaceted::GetPointOnSurfaceGeneric(), UPolyhedra::GetPointOnTriangle(), UPolycone::GetPointOnTubs(), GetRadiusInRing(), XrayFluoEventAction::RandomCut(), UPolyhedraSide::SurfaceTriangle(), UPolyPhiFace::SurfaceTriangle(), and UPolyPhiFace::Triangulate().
|
inline |
Definition at line 179 of file UUtils.hh.
Referenced by UBox::DistanceToOut(), G4StatMFChannel::FragmentsMomenta(), UBox::Normal(), G4ViewParameters::ReadInteger(), and G4QGSDiffractiveExcitation::String().
|
inline |
Definition at line 137 of file UUtils.hh.
Referenced by UPolyconeSide::DistanceAway(), UPolycone::GetPointOnCone(), UOrb::GetPointOnSurface(), USphere::GetPointOnSurface(), UCons::GetPointOnSurface(), UPolyhedra::GetPointOnSurface(), UPolycone::GetPointOnSurface(), UIntersectingCone::LineHitsCone1(), UIntersectingCone::LineHitsCone1Optimized(), UIntersectingCone::LineHitsCone2(), UPolyconeSide::SurfaceArea(), and UPolycone::SurfaceArea().
|
inline |
int UUtils::StrPos | ( | const std::string & | haystack, |
const std::string & | needle | ||
) |
string UUtils::ToString | ( | int | number | ) |
Definition at line 77 of file UUtils.cc.
Referenced by UVoxelizer::BuildBitmasks().
void UUtils::TransformLimits | ( | UVector3 & | min, |
UVector3 & | max, | ||
const UTransform3D & | transformation | ||
) |
Definition at line 29 of file UUtils.cc.
References UTransform3D::GlobalPoint(), kInfinity, UVector3::Set(), UVector3::x, UVector3::y, and UVector3::z.
|
static |
Definition at line 51 of file UUtils.hh.
Referenced by UTransform3D::RotateX(), UTransform3D::RotateY(), UTransform3D::RotateZ(), and UTransform3D::SetAngles().
|
static |
Definition at line 53 of file UUtils.hh.
Referenced by UGenericPolycone::Create(), UPolyhedra::Create(), UPolyhedraSide::Distance(), UVCSGfaceted::DistanceTo(), UOrb::DistanceToIn(), UTet::DistanceToIn(), UVCSGfaceted::DistanceToIn(), UGenericPolycone::DistanceToIn(), UTrd::DistanceToIn(), UBox::DistanceToIn(), UTubs::DistanceToIn(), UCons::DistanceToIn(), UPolycone::DistanceToIn(), UPolyhedra::DistanceToIn(), UVCSGfaceted::DistanceToInNoVoxels(), UVoxelizer::DistanceToNext(), UTet::DistanceToOut(), UVCSGfaceted::DistanceToOut(), UTrd::DistanceToOut(), UBox::DistanceToOut(), UTubs::DistanceToOut(), UCons::DistanceToOut(), UVCSGfaceted::DistanceToOutNoVoxels(), UPolyhedraSide::Extent(), UPolyPhiFace::Extent(), UVCSGfaceted::Inside(), UPolyPhiFace::InsideEdges(), UVCSGfaceted::InsideNoVoxels(), UVCSGfaceted::Normal(), UTubs::Normal(), UCons::Normal(), UPolyhedraSide::Safety(), UPolyconeSide::Safety(), UPolyPhiFace::Safety(), UVCSGfaceted::SafetyFromInside(), UPolycone::SafetyFromInside(), UTrd::SafetyFromInsideAccurate(), UVCSGfaceted::SafetyFromInsideSection(), and UTrd::SafetyFromOutsideAccurate().
|
static |
Definition at line 48 of file UUtils.hh.
Referenced by ACos(), UTubs::ApproxSurfaceNormal(), USphere::ApproxSurfaceNormal(), UCons::ApproxSurfaceNormal(), ASin(), ATan2(), UOrb::Capacity(), USphere::CheckDPhiAngle(), USphere::CheckSPhiAngle(), USphere::CheckThetaAngles(), UPolyhedraSide::ClosestPhiSegment(), UGenericPolycone::Create(), UPolyhedra::Create(), UPolyconeSide::DistanceAway(), USphere::DistanceToIn(), UTubs::DistanceToOut(), UCons::DistanceToOut(), USphere::DistanceToOut(), UPolyconeSide::Extent(), UPolycone::GetPointOnCone(), UOrb::GetPointOnSurface(), UTubs::GetPointOnSurface(), USphere::GetPointOnSurface(), UPolyhedra::GetPointOnSurface(), UPolycone::GetPointOnSurface(), UPolycone::GetPointOnTubs(), UPolyhedra::Init(), UTubs::Inside(), USphere::Inside(), UTubs::Normal(), UCons::Normal(), USphere::Normal(), UPolyhedraSide::PhiSegment(), UPolyconeSide::PointOnCone(), USphere::SafetyFromInside(), USphere::SafetyFromOutside(), UGenericPolycone::StreamInfo(), UTubs::StreamInfo(), UPolycone::StreamInfo(), USphere::StreamInfo(), UCons::StreamInfo(), UPolyhedra::StreamInfo(), UOrb::SurfaceArea(), USphere::SurfaceArea(), UPolycone::SurfaceArea(), UPolyconeSide::UPolyconeSide(), and UPolyhedraSide::UPolyhedraSide().
|
static |
|
static |
Definition at line 49 of file UUtils.hh.
Referenced by UPolycone::Init(), and UPolycone::InsideSection().