Geant4 11.4.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 ()=default
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
virtual ~G4UImessenger ()
virtual G4String GetCurrentValue (G4UIcommand *command)
G4bool CommandsShouldBeInMaster () const

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 (const 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}

◆ ~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}

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