Geant4  10.01.p01
UUtils.hh File Reference
#include <iostream>
#include <fstream>
#include <limits>
#include <cmath>
#include <cfloat>
#include <vector>
#include <algorithm>
+ Include dependency graph for UUtils.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UUtils::CompareDesc< T >
 
struct  UUtils::CompareAsc< T >
 

Namespaces

 UUtils
 

Enumerations

enum  UExceptionSeverity {
  FatalError, FatalErrorInArguments, Error, Warning,
  Info
}
 

Functions

short UUtils::Sign (short a, short b)
 
int UUtils::Sign (int a, int b)
 
long UUtils::Sign (long a, long b)
 
float UUtils::Sign (float a, float b)
 
double UUtils::Sign (double a, double b)
 
double UUtils::Infinity ()
 
double UUtils::ASin (double)
 
double UUtils::ACos (double)
 
double UUtils::ATan (double)
 
double UUtils::ATan2 (double, double)
 
void UUtils::Exception (const char *originOfException, const char *exceptionCode, UExceptionSeverity severity, int level, const char *description)
 
bool UUtils::AreEqualAbs (double af, double bf, double epsilon)
 
bool UUtils::AreEqualRel (double af, double bf, double relPrec)
 
long UUtils::LocMin (long n, const double *a)
 
long UUtils::LocMax (long n, const double *a)
 
void UUtils::TransformLimits (UVector3 &min, UVector3 &max, const UTransform3D &transformation)
 
double UUtils::Random (double min=0.0, double max=1.0)
 
std::string UUtils::ToString (int number)
 
std::string UUtils::ToString (double number)
 
int UUtils::FileSize (const std::string &filePath)
 
int UUtils::StrPos (const std::string &haystack, const std::string &needle)
 
double UUtils::GetRadiusInRing (double rmin, double rmax)
 
template<class T >
UUtils::sqr (const T &x)
 
bool UUtils::StrEnds (std::string const &fullString, std::string const &ending)
 

Variables

static const double UUtils::kPi = 3.14159265358979323846
 
static const double UUtils::kTwoPi = 2.0 * kPi
 
static const double UUtils::kRadToDeg = 180.0 / kPi
 
static const double UUtils::kDegToRad = kPi / 180.0
 
static const double UUtils::kSqrt2 = 1.4142135623730950488016887242097
 
static const double UUtils::kInfinity = DBL_MAX
 
static const double UUtils::kMeshAngleDefault = (kPi / 4)
 
static const int UUtils::kMinMeshSections = 3
 
static const int UUtils::kMaxMeshSections = 37
 

Enumeration Type Documentation

Enumerator
FatalError 
FatalErrorInArguments 
Error 
Warning 
Info 

Definition at line 34 of file UUtils.hh.