Geant4_10
Classes | Namespaces | Enumerations | Functions
UUtils.hh File Reference
#include <iostream>
#include <fstream>
#include <limits>
#include <cmath>
#include <cfloat>
#include <vector>
#include <algorithm>
#include "UVector3.hh"
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  ExceptionSeverity {
  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, ExceptionSeverity 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)
 
int UUtils::SaveVectorToExternalFile (const std::vector< double > &vector, const std::string &filename)
 
int UUtils::SaveVectorToExternalFile (const std::vector< UVector3 > &vector, const std::string &filename)
 
int UUtils::SaveVectorToExternalFile (const std::vector< int > &vector, const std::string &filename)
 
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)
 

Enumeration Type Documentation

Enumerator
FatalError 
FatalErrorInArguments 
Error 
Warning 
Info 

Definition at line 35 of file UUtils.hh.