Geant4 10.7.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, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () 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)
 
G4long StoL (G4String s)
 
G4double StoD (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 52 of file G4DMmessenger.hh.

Constructor & Destructor Documentation

◆ G4DMmessenger()

G4DMmessenger::G4DMmessenger ( G4DigiManager DigiManager)

Definition at line 37 of file G4DMmessenger.cc.

37 :fDMan(DigiManager)
38{
39 digiDir = new G4UIdirectory("/digi/");
40 digiDir->SetGuidance("DigitizerModule");
41
42 listCmd = new G4UIcmdWithoutParameter("/digi/List",this);
43 listCmd->SetGuidance("List names of digitizer modules.");
44
45 digiCmd = new G4UIcmdWithAString("/digi/Digitize",this);
46 digiCmd->SetGuidance("Invoke Digitize method of a digitizer module");
47 digiCmd->SetParameterName("moduleName",false);
48
49 verboseCmd = new G4UIcmdWithAnInteger("/digi/Verbose",this);
50 verboseCmd->SetGuidance("Set the Verbose level.");
51 verboseCmd->SetParameterName("level",false);
52}
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 54 of file G4DMmessenger.cc.

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

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 62 of file G4DMmessenger.cc.

63{
64 if( command==listCmd )
65 { fDMan->List(); }
66 if( command==digiCmd )
67 { fDMan->Digitize(newVal); }
68 if( command==verboseCmd )
69 { fDMan->SetVerboseLevel(verboseCmd->GetNewIntValue(newVal)); }
70 return;
71}
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: