Geant4  10.02.p03
G4DMmessenger Class Reference

#include <G4DMmessenger.hh>

Inheritance diagram for G4DMmessenger:
Collaboration 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)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

G4DigiManagerfDMan
 
G4UIdirectorydigiDir
 
G4UIcmdWithoutParameterlistCmd
 
G4UIcmdWithAStringdigiCmd
 
G4UIcmdWithAnIntegerverboseCmd
 

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, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

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)
G4UIcmdWithAString * digiCmd
G4UIcmdWithoutParameter * listCmd
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
G4UIcmdWithAnInteger * verboseCmd
G4UIdirectory * digiDir
G4DigiManager * fDMan
Here is the call graph for this function:

◆ ~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 }
G4UIcmdWithAString * digiCmd
G4UIcmdWithoutParameter * listCmd
G4UIcmdWithAnInteger * verboseCmd
G4UIdirectory * digiDir

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 )
71  return;
72 }
static G4int GetNewIntValue(const char *paramString)
void List() const
G4UIcmdWithAString * digiCmd
void SetVerboseLevel(G4int vl)
void Digitize(G4String mName)
G4UIcmdWithoutParameter * listCmd
G4UIcmdWithAnInteger * verboseCmd
G4DigiManager * fDMan
Here is the call graph for this function:

Member Data Documentation

◆ digiCmd

G4UIcmdWithAString* G4DMmessenger::digiCmd
private

Definition at line 64 of file G4DMmessenger.hh.

◆ digiDir

G4UIdirectory* G4DMmessenger::digiDir
private

Definition at line 62 of file G4DMmessenger.hh.

◆ fDMan

G4DigiManager* G4DMmessenger::fDMan
private

Definition at line 61 of file G4DMmessenger.hh.

◆ listCmd

G4UIcmdWithoutParameter* G4DMmessenger::listCmd
private

Definition at line 63 of file G4DMmessenger.hh.

◆ verboseCmd

G4UIcmdWithAnInteger* G4DMmessenger::verboseCmd
private

Definition at line 65 of file G4DMmessenger.hh.


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