Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4tgrMessenger Class Reference

#include <G4tgrMessenger.hh>

+ Inheritance diagram for G4tgrMessenger:

Public Member Functions

 G4tgrMessenger ()
 
 ~G4tgrMessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
G4String GetCurrentValue (G4UIcommand *command)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()=default
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool CommandsShouldBeInMaster () const
 

Static Public Member Functions

static G4int GetVerboseLevel ()
 
static void SetVerboseLevel (G4int verb)
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String LtoS (G4long l)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (const G4String &s)
 
G4long StoL (const G4String &s)
 
G4double StoD (const G4String &s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Detailed Description

Definition at line 43 of file G4tgrMessenger.hh.

Constructor & Destructor Documentation

◆ G4tgrMessenger()

G4tgrMessenger::G4tgrMessenger ( )

Definition at line 39 of file G4tgrMessenger.cc.

40{
41 tgDirectory = new G4UIdirectory("/geometry/textInput/");
42 tgDirectory->SetGuidance("Geometry from text file control commands.");
43 verboseCmd = new G4UIcmdWithAnInteger("/geometry/textInput/verbose", this);
44 verboseCmd->SetGuidance("Set Verbose level of geometry text input category.");
45 verboseCmd->SetGuidance(" 0 : Silent");
46 verboseCmd->SetGuidance(" 1 : info verbosity");
47 verboseCmd->SetGuidance(" 2 : debug verbosity");
48 verboseCmd->SetParameterName("level", false);
49 verboseCmd->SetRange("level>=0");
50}
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetGuidance(const char *aGuidance)
void SetRange(const char *rs)

◆ ~G4tgrMessenger()

G4tgrMessenger::~G4tgrMessenger ( )

Definition at line 53 of file G4tgrMessenger.cc.

54{
55 delete verboseCmd;
56 delete tgDirectory;
57}

Member Function Documentation

◆ GetCurrentValue()

G4String G4tgrMessenger::GetCurrentValue ( G4UIcommand * command)
virtual

Reimplemented from G4UImessenger.

Definition at line 75 of file G4tgrMessenger.cc.

76{
77 G4String cv;
78 if(command == verboseCmd)
79 {
81 }
82 return cv;
83}
static G4String ConvertToString(G4bool boolVal)
static G4int GetVerboseLevel()

◆ GetVerboseLevel()

G4int G4tgrMessenger::GetVerboseLevel ( )
static

Definition at line 60 of file G4tgrMessenger.cc.

60{ return theVerboseLevel; }

Referenced by G4tgrMaterialFactory::AddMaterialMixture(), G4tgrMaterialFactory::AddMaterialSimple(), G4tgrParameterMgr::AddParameterNumber(), G4tgrParameterMgr::AddParameterString(), G4tgrVolume::AddPlace(), G4tgrVolumeAssembly::AddPlace(), G4tgrVolume::AddPlaceParam(), G4tgrVolume::AddPlaceReplica(), G4tgrRotationMatrixFactory::AddRotMatrix(), G4tgbElement::BuildG4ElementFromIsotopes(), G4tgbElement::BuildG4ElementSimple(), G4tgbIsotope::BuildG4Isotope(), G4tgbMaterialMixtureByNoAtoms::BuildG4Material(), G4tgbMaterialMixtureByVolume::BuildG4Material(), G4tgbMaterialMixtureByWeight::BuildG4Material(), G4tgbMaterialSimple::BuildG4Material(), G4tgbRotationMatrix::BuildG4RotMatrixFrom3(), G4tgbRotationMatrix::BuildG4RotMatrixFrom6(), G4tgbRotationMatrix::BuildG4RotMatrixFrom9(), G4tgbVolume::BuildSolidForDivision(), G4tgrFileIn::Close(), G4tgbPlaceParamCircle::ComputeTransformation(), G4tgbPlaceParamLinear::ComputeTransformation(), G4tgbPlaceParamSquare::ComputeTransformation(), G4tgbDetectorConstruction::Construct(), G4tgbDetectorBuilder::ConstructDetector(), G4tgbVolume::ConstructG4LogVol(), G4tgbVolume::ConstructG4PhysVol(), G4tgbVolume::ConstructG4Volumes(), G4tgbGeometryDumper::DumpPVPlacement(), G4tgrFileIn::EndOfFile(), G4tgbMaterialMgr::FindBuiltG4Element(), G4tgbMaterialMgr::FindBuiltG4Isotope(), G4tgbMaterialMgr::FindBuiltG4Material(), G4tgrMaterialFactory::FindElement(), G4tgbRotationMatrixMgr::FindG4RotMatrix(), G4tgbVolumeMgr::FindG4Solid(), G4tgbMaterialMgr::FindG4tgbElement(), G4tgbMaterialMgr::FindG4tgbIsotope(), G4tgbMaterialMgr::FindG4tgbMaterial(), G4tgrMaterialFactory::FindIsotope(), G4tgrMaterialFactory::FindMaterial(), G4tgbMaterialMgr::FindOrBuildG4Element(), G4tgbMaterialMgr::FindOrBuildG4Isotope(), G4tgbMaterialMgr::FindOrBuildG4Material(), G4tgbRotationMatrixMgr::FindOrBuildG4RotMatrix(), G4tgbVolume::FindOrConstructG4Solid(), G4tgrParameterMgr::FindParameter(), 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(), GetCurrentValue(), G4tgrUtils::GetDouble(), G4tgrUtils::GetString(), G4tgbVolumeMgr::GetTopLogVol(), G4tgbVolumeMgr::GetTopPhysVol(), G4tgrVolumeMgr::GetTopVolume(), G4tgrFileIn::GetWordsInLine(), G4tgrLineProcessor::ProcessLine(), G4tgrFileReader::ReadFiles(), G4tgbVolumeMgr::RegisterMe(), and G4tgbMaterialMixtureByVolume::TransformToFractionsByWeight().

◆ SetNewValue()

void G4tgrMessenger::SetNewValue ( G4UIcommand * command,
G4String newValues )
virtual

Reimplemented from G4UImessenger.

Definition at line 66 of file G4tgrMessenger.cc.

67{
68 if(command == verboseCmd)
69 {
70 G4tgrMessenger::SetVerboseLevel(verboseCmd->GetNewIntValue(newValues));
71 }
72}
static G4int GetNewIntValue(const char *paramString)
static void SetVerboseLevel(G4int verb)

◆ SetVerboseLevel()

void G4tgrMessenger::SetVerboseLevel ( G4int verb)
static

Definition at line 63 of file G4tgrMessenger.cc.

63{ theVerboseLevel = verb; }

Referenced by SetNewValue().


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