Geant4.10
|
Data Structures | |
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) |
int | SaveVectorToExternalFile (const std::vector< double > &vector, const std::string &filename) |
int | SaveVectorToExternalFile (const std::vector< UVector3 > &vector, const std::string &filename) |
int | SaveVectorToExternalFile (const std::vector< int > &vector, const std::string &filename) |
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) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void UUtils::Exception | ( | const char * | originOfException, |
const char * | exceptionCode, | ||
ExceptionSeverity | severity, | ||
int | level, | ||
const char * | description | ||
) |
Definition at line 177 of file UUtils.cc.
References Error, FatalError, FatalErrorInArguments, and Warning.
Referenced by UTubs::ApproxSurfaceNormal(), UTrd::CheckAndSetAllParameters(), 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(), g4mini::main(), g4vrmlview::main(), UTrd::Normal(), UTubs::Normal(), UCons::Normal(), USphere::Normal(), UPolyhedra::Reset(), UOrb::SafetyFromInside(), UTrd::SafetyFromInside(), UTubs::SafetyFromInside(), USphere::SafetyFromInside(), UCons::SafetyFromInside(), 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().
int UUtils::FileSize | ( | const std::string & | filePath | ) |
|
inline |
Definition at line 160 of file UUtils.hh.
References Random(), and sqr().
Referenced by UTubs::GetPointOnSurface(), USphere::GetPointOnSurface(), and UCons::GetPointOnSurface().
|
inline |
Definition at line 177 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(), UPolyhedraSide::GetPointOnPlane(), UPolyhedra::GetPointOnPlane(), UPolycone::GetPointOnRing(), UTet::GetPointOnSurface(), UOrb::GetPointOnSurface(), UTubs::GetPointOnSurface(), UBox::GetPointOnSurface(), UTrd::GetPointOnSurface(), USphere::GetPointOnSurface(), UCons::GetPointOnSurface(), UPolyhedra::GetPointOnSurface(), UPolycone::GetPointOnSurface(), UVCSGfaceted::GetPointOnSurfaceGeneric(), UPolyhedra::GetPointOnTriangle(), UPolycone::GetPointOnTubs(), GetRadiusInRing(), UPolyhedraSide::SurfaceTriangle(), UPolyPhiFace::SurfaceTriangle(), and UPolyPhiFace::Triangulate().
int UUtils::SaveVectorToExternalFile | ( | const std::vector< double > & | vector, |
const std::string & | filename | ||
) |
int UUtils::SaveVectorToExternalFile | ( | const std::vector< UVector3 > & | vector, |
const std::string & | filename | ||
) |
Definition at line 114 of file UUtils.cc.
References UVector3::x, UVector3::y, and UVector3::z.
int UUtils::SaveVectorToExternalFile | ( | const std::vector< int > & | vector, |
const std::string & | filename | ||
) |
|
inline |
Definition at line 184 of file UUtils.hh.
Referenced by UBox::DistanceToOut(), UBox::Normal(), and G4QGSDiffractiveExcitation::String().
|
inline |
Definition at line 142 of file UUtils.hh.
References test::x.
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 | ) |
string UUtils::ToString | ( | double | number | ) |
void UUtils::TransformLimits | ( | UVector3 & | min, |
UVector3 & | max, | ||
const UTransform3D & | transformation | ||
) |
Definition at line 29 of file UUtils.cc.
References UTransform3D::GlobalPoint(), UVector3::Set(), UVector3::x, UVector3::y, and UVector3::z.