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

#include <G4DMmessenger.hh>

+ Inheritance diagram for G4DMmessenger:

Public Member Functions

 G4DMmessenger (G4DigiManager *DigiManager)
 
 ~G4DMmessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
G4bool operator== (const G4UImessenger &messenger) const
 

Additional Inherited Members

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

Detailed Description

Definition at line 53 of file G4DMmessenger.hh.

Constructor & Destructor Documentation

◆ G4DMmessenger()

G4DMmessenger::G4DMmessenger ( G4DigiManager DigiManager)

Definition at line 38 of file G4DMmessenger.cc.

38 :fDMan(DigiManager)
39{
40 digiDir = new G4UIdirectory("/digi/");
41 digiDir->SetGuidance("DigitizerModule");
42
43 listCmd = new G4UIcmdWithoutParameter("/digi/List",this);
44 listCmd->SetGuidance("List names of digitizer modules.");
45
46 digiCmd = new G4UIcmdWithAString("/digi/Digitize",this);
47 digiCmd->SetGuidance("Invoke Digitize method of a digitizer module");
48 digiCmd->SetParameterName("moduleName",false);
49
50 verboseCmd = new G4UIcmdWithAnInteger("/digi/Verbose",this);
51 verboseCmd->SetGuidance("Set the Verbose level.");
52 verboseCmd->SetParameterName("level",false);
53}
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:156

◆ ~G4DMmessenger()

G4DMmessenger::~G4DMmessenger ( )

Definition at line 55 of file G4DMmessenger.cc.

56{
57 delete listCmd;
58 delete digiCmd;
59 delete verboseCmd;
60 delete digiDir;
61}

Member Function Documentation

◆ SetNewValue()

void G4DMmessenger::SetNewValue ( G4UIcommand command,
G4String  newValues 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 63 of file G4DMmessenger.cc.

64{
65 if( command==listCmd )
66 { fDMan->List(); }
67 if( command==digiCmd )
68 { fDMan->Digitize(newVal); }
69 if( command==verboseCmd )
70 { fDMan->SetVerboseLevel(verboseCmd->GetNewIntValue(newVal)); }
71 return;
72}
void List() const
void SetVerboseLevel(G4int vl)
void Digitize(G4String mName)
static G4int GetNewIntValue(const char *paramString)

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