Geant4  10.01.p02
G4tgrUtils Class Reference

#include <G4tgrUtils.hh>

+ Collaboration diagram for G4tgrUtils:

Public Member Functions

 G4tgrUtils ()
 
 ~G4tgrUtils ()
 

Static Public Member Functions

static G4bool IsSeparator (char)
 
static G4bool IsNumber (const G4String &str)
 
static G4bool IsInteger (const G4double val, const G4double precision=1.e-6)
 
static G4bool IsFunction (const G4String &word)
 
static G4bool WordIsUnit (const G4String &word)
 
static void Dump3v (const G4ThreeVector &vec, const char *msg)
 
static void Dumprm (const G4RotationMatrix &rm, const char *msg)
 
static void DumpVS (const std::vector< G4String > &wl, const char *msg)
 
static void DumpVS (const std::vector< G4String > &wl, const char *msg, std::ostream &outs)
 
static void CheckWLsize (const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
 
static G4bool CheckListSize (unsigned int nWreal, unsigned int nWcheck, WLSIZEtype st, G4String &outstr)
 
static G4String SubColon (const G4String &str)
 
static G4String GetString (const G4String &str)
 
static G4double GetDouble (const G4String &str, G4double unitval=1.)
 
static G4int GetInt (const G4String &str)
 
static G4bool GetBool (const G4String &str)
 
static G4RotationMatrix GetRotationFromDirection (G4ThreeVector dir)
 
static G4bool AreWordsEquivalent (const G4String &word1, const G4String &word2)
 

Static Private Attributes

static G4ThreadLocal
G4tgrEvaluator
theEvaluator = 0
 

Detailed Description

Definition at line 54 of file G4tgrUtils.hh.

Constructor & Destructor Documentation

G4tgrUtils::G4tgrUtils ( )

Definition at line 52 of file G4tgrUtils.cc.

References theEvaluator.

G4tgrUtils::~G4tgrUtils ( )

Definition at line 59 of file G4tgrUtils.cc.

References theEvaluator.

Member Function Documentation

G4bool G4tgrUtils::AreWordsEquivalent ( const G4String word1,
const G4String word2 
)
static

Definition at line 672 of file G4tgrUtils.cc.

References FatalException, and G4Exception().

Referenced by ExTGRCRegionCutsMgr::FindRegionData(), and G4tgrVolumeMgr::FindVolumes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4tgrUtils::CheckListSize ( unsigned int  nWreal,
unsigned int  nWcheck,
WLSIZEtype  st,
G4String outstr 
)
static

Definition at line 497 of file G4tgrUtils.cc.

References G4cerr, G4endl, WLSIZE_EQ, WLSIZE_GE, WLSIZE_GT, WLSIZE_LE, WLSIZE_LT, and WLSIZE_NE.

Referenced by G4tgbPlaceParameterisation::CheckNExtraData(), and CheckWLsize().

+ Here is the caller graph for this function:

void G4tgrUtils::CheckWLsize ( const std::vector< G4String > &  wl,
unsigned int  nWCheck,
WLSIZEtype  st,
const G4String methodName 
)
static
void G4tgrUtils::Dump3v ( const G4ThreeVector vec,
const char *  msg 
)
static

Definition at line 126 of file G4tgrUtils.cc.

References G4cout, and G4endl.

void G4tgrUtils::Dumprm ( const G4RotationMatrix rm,
const char *  msg 
)
static

Definition at line 134 of file G4tgrUtils.cc.

References G4cout, and G4endl.

void G4tgrUtils::DumpVS ( const std::vector< G4String > &  wl,
const char *  msg 
)
static

Definition at line 158 of file G4tgrUtils.cc.

References G4cout.

Referenced by G4tgrRotationMatrixFactory::AddRotMatrix(), CheckWLsize(), G4tgrMaterialFactory::ErrorAlreadyExists(), G4tgrSolidBoolean::G4tgrSolidBoolean(), G4tgrLineProcessor::ProcessLine(), and G4tgrFileReader::ReadFiles().

+ Here is the caller graph for this function:

void G4tgrUtils::DumpVS ( const std::vector< G4String > &  wl,
const char *  msg,
std::ostream &  outs 
)
static

Definition at line 144 of file G4tgrUtils.cc.

References G4endl.

G4bool G4tgrUtils::GetBool ( const G4String str)
static

Definition at line 448 of file G4tgrUtils.cc.

References FatalException, and G4Exception().

Referenced by G4tgrVolume::AddCheckOverlaps(), and G4tgrVolume::AddVisibility().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4tgrUtils::GetDouble ( const G4String str,
G4double  unitval = 1. 
)
static
G4int G4tgrUtils::GetInt ( const G4String str)
static

Definition at line 430 of file G4tgrUtils.cc.

References FatalException, G4Exception(), GetDouble(), and IsInteger().

Referenced by G4tgrElementFromIsotopes::G4tgrElementFromIsotopes(), G4tgrElementSimple::G4tgrElementSimple(), G4tgrIsotope::G4tgrIsotope(), G4tgrMaterialMixture::G4tgrMaterialMixture(), G4tgrPlaceDivRep::G4tgrPlaceDivRep(), G4tgrPlaceParameterisation::G4tgrPlaceParameterisation(), G4tgrPlaceSimple::G4tgrPlaceSimple(), G4tgrVolumeAssembly::G4tgrVolumeAssembly(), and G4tgrVolumeDivision::G4tgrVolumeDivision().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4RotationMatrix G4tgrUtils::GetRotationFromDirection ( G4ThreeVector  dir)
static

Definition at line 626 of file G4tgrUtils.cc.

References G4UIcommand::ConvertToString(), G4Exception(), G4GeometryTolerance::GetInstance(), G4GeometryTolerance::GetSurfaceTolerance(), JustWarning, and G4INCL::Math::pi.

+ Here is the call graph for this function:

G4bool G4tgrUtils::IsFunction ( const G4String word)
static

Definition at line 595 of file G4tgrUtils.cc.

Referenced by GetDouble().

+ Here is the caller graph for this function:

G4bool G4tgrUtils::IsInteger ( const G4double  val,
const G4double  precision = 1.e-6 
)
static

Definition at line 112 of file G4tgrUtils.cc.

Referenced by GetInt().

+ Here is the caller graph for this function:

G4bool G4tgrUtils::IsNumber ( const G4String str)
static

Definition at line 81 of file G4tgrUtils.cc.

Referenced by GetDouble(), and WordIsUnit().

+ Here is the caller graph for this function:

G4bool G4tgrUtils::IsSeparator ( char  ch)
static

Definition at line 66 of file G4tgrUtils.cc.

G4String G4tgrUtils::SubColon ( const G4String str)
static

Definition at line 165 of file G4tgrUtils.cc.

References FatalException, and G4Exception().

+ Here is the call graph for this function:

G4bool G4tgrUtils::WordIsUnit ( const G4String word)
static

Definition at line 556 of file G4tgrUtils.cc.

References IsNumber().

Referenced by GetDouble().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4ThreadLocal G4tgrEvaluator * G4tgrUtils::theEvaluator = 0
staticprivate

Definition at line 108 of file G4tgrUtils.hh.

Referenced by G4tgrUtils(), GetDouble(), and ~G4tgrUtils().


The documentation for this class was generated from the following files: