Geant4-11
|
#include <G4tgrUtils.hh>
Public Member Functions | |
G4tgrUtils () | |
~G4tgrUtils () | |
Static Public Member Functions | |
static G4bool | AreWordsEquivalent (const G4String &word1, const G4String &word2) |
static G4bool | CheckListSize (unsigned int nWreal, unsigned int nWcheck, WLSIZEtype st, G4String &outstr) |
static void | CheckWLsize (const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName) |
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 G4bool | GetBool (const G4String &str) |
static G4double | GetDouble (const G4String &str, G4double unitval=1.) |
static G4int | GetInt (const G4String &str) |
static G4RotationMatrix | GetRotationFromDirection (G4ThreeVector dir) |
static G4String | GetString (const G4String &str) |
static G4bool | IsFunction (const G4String &word) |
static G4bool | IsInteger (const G4double val, const G4double precision=1.e-6) |
static G4bool | IsNumber (const G4String &str) |
static G4bool | IsSeparator (char) |
static G4String | SubColon (const G4String &str) |
static G4bool | WordIsUnit (const G4String &word) |
Static Private Attributes | |
static G4ThreadLocal G4tgrEvaluator * | theEvaluator = nullptr |
Definition at line 55 of file G4tgrUtils.hh.
G4tgrUtils::G4tgrUtils | ( | ) |
Definition at line 47 of file G4tgrUtils.cc.
References theEvaluator.
G4tgrUtils::~G4tgrUtils | ( | ) |
Definition at line 56 of file G4tgrUtils.cc.
References theEvaluator.
Definition at line 653 of file G4tgrUtils.cc.
References FatalException, and G4Exception().
Referenced by G4tgrVolumeMgr::FindVolumes().
|
static |
Definition at line 512 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().
|
static |
Definition at line 490 of file G4tgrUtils.cc.
References CheckListSize(), G4UIcommand::ConvertToString(), DumpVS(), FatalException, and G4Exception().
Referenced by G4tgrVolume::AddCheckOverlaps(), G4tgrVolume::AddPlace(), G4tgrVolumeAssembly::AddPlace(), G4tgrVolume::AddPlaceReplica(), G4tgrVolume::AddRGBColour(), G4tgrVolume::AddVisibility(), G4tgrParameterMgr::CheckIfNewParameter(), G4tgrElementFromIsotopes::G4tgrElementFromIsotopes(), G4tgrElementSimple::G4tgrElementSimple(), G4tgrIsotope::G4tgrIsotope(), G4tgrMaterialMixture::G4tgrMaterialMixture(), G4tgrMaterialSimple::G4tgrMaterialSimple(), G4tgrPlaceDivRep::G4tgrPlaceDivRep(), G4tgrPlaceParameterisation::G4tgrPlaceParameterisation(), G4tgrVolumeAssembly::G4tgrVolumeAssembly(), and G4tgrVolumeDivision::G4tgrVolumeDivision().
|
static |
|
static |
Definition at line 131 of file G4tgrUtils.cc.
References G4cout, G4endl, CLHEP::HepRotation::xx(), CLHEP::HepRotation::xy(), CLHEP::HepRotation::xz(), CLHEP::HepRotation::yx(), CLHEP::HepRotation::yy(), CLHEP::HepRotation::yz(), CLHEP::HepRotation::zx(), CLHEP::HepRotation::zy(), and CLHEP::HepRotation::zz().
|
static |
Definition at line 153 of file G4tgrUtils.cc.
References DumpVS(), and G4cout.
Referenced by G4tgrRotationMatrixFactory::AddRotMatrix(), CheckWLsize(), DumpVS(), G4tgrMaterialFactory::ErrorAlreadyExists(), G4tgrSolidBoolean::G4tgrSolidBoolean(), G4tgrSolidMultiUnion::G4tgrSolidMultiUnion(), G4tgrSolidScaled::G4tgrSolidScaled(), G4tgrLineProcessor::ProcessLine(), and G4tgrFileReader::ReadFiles().
|
static |
Definition at line 141 of file G4tgrUtils.cc.
References G4endl.
Definition at line 464 of file G4tgrUtils.cc.
References FatalException, and G4Exception().
Referenced by G4tgrVolume::AddCheckOverlaps(), and G4tgrVolume::AddVisibility().
Definition at line 198 of file G4tgrUtils.cc.
References G4UIcommand::ConvertToString(), DBL_MAX, DBL_MIN, HepTool::Evaluator::evaluate(), FatalException, G4tgrParameterMgr::FindParameter(), FLT_MAX, FLT_MIN, G4cout, G4endl, G4Exception(), G4tgrParameterMgr::GetInstance(), G4UnitDefinition::GetValueOf(), G4tgrMessenger::GetVerboseLevel(), INT_MAX, INT_MIN, IsFunction(), IsNumber(), HepTool::Evaluator::OK, G4tgrEvaluator::print_error(), HepTool::Evaluator::status(), theEvaluator, and WordIsUnit().
Referenced by G4tgrParameterMgr::AddParameterNumber(), G4tgrVolume::AddPlaceReplica(), G4tgrVolume::AddRGBColour(), G4tgrSolid::FillSolidParams(), G4tgrElementFromIsotopes::G4tgrElementFromIsotopes(), G4tgrElementSimple::G4tgrElementSimple(), G4tgrIsotope::G4tgrIsotope(), G4tgrMaterialMixture::G4tgrMaterialMixture(), G4tgrMaterialSimple::G4tgrMaterialSimple(), G4tgrPlaceDivRep::G4tgrPlaceDivRep(), G4tgrPlaceParameterisation::G4tgrPlaceParameterisation(), G4tgrPlaceSimple::G4tgrPlaceSimple(), G4tgrRotationMatrix::G4tgrRotationMatrix(), G4tgrSolidBoolean::G4tgrSolidBoolean(), G4tgrSolidMultiUnion::G4tgrSolidMultiUnion(), G4tgrSolidScaled::G4tgrSolidScaled(), G4tgrVolumeAssembly::G4tgrVolumeAssembly(), G4tgrVolumeDivision::G4tgrVolumeDivision(), GetInt(), and G4tgrLineProcessor::ProcessLine().
Definition at line 447 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(), G4tgrSolidMultiUnion::G4tgrSolidMultiUnion(), G4tgrVolumeAssembly::G4tgrVolumeAssembly(), and G4tgrVolumeDivision::G4tgrVolumeDivision().
|
static |
Definition at line 608 of file G4tgrUtils.cc.
References G4UIcommand::ConvertToString(), G4Exception(), G4GeometryTolerance::GetInstance(), G4GeometryTolerance::GetSurfaceTolerance(), JustWarning, CLHEP::Hep3Vector::mag(), pi, CLHEP::HepRotation::rotateX(), CLHEP::HepRotation::rotateY(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Definition at line 173 of file G4tgrUtils.cc.
References G4tgrParameterMgr::FindParameter(), G4cout, G4endl, G4tgrParameterMgr::GetInstance(), and G4tgrMessenger::GetVerboseLevel().
Referenced by G4tgrMaterialFactory::AddElementFromIsotopes(), G4tgrMaterialFactory::AddElementSimple(), G4tgrMaterialFactory::AddIsotope(), G4tgrMaterialFactory::AddMaterialMixture(), G4tgrMaterialFactory::AddMaterialSimple(), G4tgrRotationMatrixFactory::AddRotMatrix(), G4tgrElementFromIsotopes::G4tgrElementFromIsotopes(), G4tgrElementSimple::G4tgrElementSimple(), G4tgrIsotope::G4tgrIsotope(), G4tgrMaterialMixture::G4tgrMaterialMixture(), G4tgrMaterialSimple::G4tgrMaterialSimple(), G4tgrPlaceDivRep::G4tgrPlaceDivRep(), G4tgrPlaceParameterisation::G4tgrPlaceParameterisation(), G4tgrPlaceSimple::G4tgrPlaceSimple(), G4tgrRotationMatrix::G4tgrRotationMatrix(), G4tgrSolid::G4tgrSolid(), G4tgrSolidBoolean::G4tgrSolidBoolean(), G4tgrSolidMultiUnion::G4tgrSolidMultiUnion(), G4tgrSolidScaled::G4tgrSolidScaled(), G4tgrVolume::G4tgrVolume(), G4tgrVolumeAssembly::G4tgrVolumeAssembly(), G4tgrVolumeDivision::G4tgrVolumeDivision(), and G4tgrLineProcessor::ProcessLine().
Definition at line 591 of file G4tgrUtils.cc.
Referenced by GetDouble().
Definition at line 111 of file G4tgrUtils.cc.
Referenced by GetInt().
Definition at line 77 of file G4tgrUtils.cc.
Referenced by GetDouble(), and WordIsUnit().
|
static |
Definition at line 63 of file G4tgrUtils.cc.
Definition at line 159 of file G4tgrUtils.cc.
References FatalException, and G4Exception().
Definition at line 570 of file G4tgrUtils.cc.
References IsNumber().
Referenced by GetDouble().
|
staticprivate |
Definition at line 108 of file G4tgrUtils.hh.
Referenced by G4tgrUtils(), GetDouble(), and ~G4tgrUtils().