Geant4_10
Classes | Functions
UUtils Namespace Reference

Classes

struct  CompareDesc
 
struct  CompareAsc
 

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 >
sqr (const T &x)
 
bool StrEnds (std::string const &fullString, std::string const &ending)
 

Function Documentation

double UUtils::ACos ( double  x)
inline

Definition at line 218 of file UUtils.hh.

Here is the caller graph for this function:

bool UUtils::AreEqualAbs ( double  af,
double  bf,
double  epsilon 
)
inline

Definition at line 76 of file UUtils.hh.

bool UUtils::AreEqualRel ( double  af,
double  bf,
double  relPrec 
)
inline

Definition at line 81 of file UUtils.hh.

double UUtils::ASin ( double  x)
inline

Definition at line 211 of file UUtils.hh.

Here is the caller graph for this function:

double UUtils::ATan ( double  )
inline

Here is the caller graph for this function:

double UUtils::ATan2 ( double  y,
double  x 
)
inline

Definition at line 226 of file UUtils.hh.

Here is the caller graph for this function:

void UUtils::Exception ( const char *  originOfException,
const char *  exceptionCode,
ExceptionSeverity  severity,
int  level,
const char *  description 
)

Definition at line 177 of file UUtils.cc.

Here is the caller graph for this function:

int UUtils::FileSize ( const std::string &  filePath)

Definition at line 146 of file UUtils.cc.

double UUtils::GetRadiusInRing ( double  rmin,
double  rmax 
)
inline

Definition at line 160 of file UUtils.hh.

Here is the call graph for this function:

Here is the caller graph for this function:

double UUtils::Infinity ( )
inline

Definition at line 177 of file UUtils.hh.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

int UUtils::SaveVectorToExternalFile ( const std::vector< double > &  vector,
const std::string &  filename 
)

Definition at line 77 of file UUtils.cc.

int UUtils::SaveVectorToExternalFile ( const std::vector< UVector3 > &  vector,
const std::string &  filename 
)

Definition at line 114 of file UUtils.cc.

int UUtils::SaveVectorToExternalFile ( const std::vector< int > &  vector,
const std::string &  filename 
)

Definition at line 97 of file UUtils.cc.

short UUtils::Sign ( short  a,
short  b 
)
inline

Definition at line 184 of file UUtils.hh.

Here is the caller graph for this function:

int UUtils::Sign ( int  a,
int  b 
)
inline

Definition at line 189 of file UUtils.hh.

long UUtils::Sign ( long  a,
long  b 
)
inline

Definition at line 194 of file UUtils.hh.

float UUtils::Sign ( float  a,
float  b 
)
inline

Definition at line 199 of file UUtils.hh.

double UUtils::Sign ( double  a,
double  b 
)
inline

Definition at line 204 of file UUtils.hh.

template<class T >
T UUtils::sqr ( const T &  x)
inline

Definition at line 142 of file UUtils.hh.

Here is the caller graph for this function:

bool UUtils::StrEnds ( std::string const &  fullString,
std::string const &  ending 
)
inline

Definition at line 147 of file UUtils.hh.

int UUtils::StrPos ( const std::string &  haystack,
const std::string &  needle 
)

Definition at line 160 of file UUtils.cc.

string UUtils::ToString ( int  number)

Definition at line 132 of file UUtils.cc.

string UUtils::ToString ( double  number)

Definition at line 139 of file UUtils.cc.

void UUtils::TransformLimits ( UVector3 min,
UVector3 max,
const UTransform3D transformation 
)

Definition at line 29 of file UUtils.cc.

Here is the call graph for this function: