G4DMmessenger Class Reference

#include <G4DMmessenger.hh>

Inheritance diagram for G4DMmessenger:

G4UImessenger

Public Member Functions

 G4DMmessenger (G4DigiManager *DigiManager)
 ~G4DMmessenger ()
void SetNewValue (G4UIcommand *command, G4String newValues)

Detailed Description

Definition at line 53 of file G4DMmessenger.hh.


Constructor & Destructor Documentation

G4DMmessenger::G4DMmessenger ( G4DigiManager DigiManager  ) 

Definition at line 38 of file G4DMmessenger.cc.

References G4UIcommand::SetGuidance(), G4UIcmdWithAnInteger::SetParameterName(), and G4UIcmdWithAString::SetParameterName().

00038                                                       :fDMan(DigiManager)
00039 {
00040   digiDir = new G4UIdirectory("/digi/");
00041   digiDir->SetGuidance("DigitizerModule");
00042 
00043   listCmd = new G4UIcmdWithoutParameter("/digi/List",this);
00044   listCmd->SetGuidance("List names of digitizer modules.");
00045 
00046   digiCmd = new G4UIcmdWithAString("/digi/Digitize",this);
00047   digiCmd->SetGuidance("Invoke Digitize method of a digitizer module");
00048   digiCmd->SetParameterName("moduleName",false);
00049 
00050   verboseCmd = new G4UIcmdWithAnInteger("/digi/Verbose",this);
00051   verboseCmd->SetGuidance("Set the Verbose level.");
00052   verboseCmd->SetParameterName("level",false);
00053 }

G4DMmessenger::~G4DMmessenger (  ) 

Definition at line 55 of file G4DMmessenger.cc.

00056 {
00057   delete listCmd;
00058   delete digiCmd;
00059   delete verboseCmd;
00060   delete digiDir;
00061 }


Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 63 of file G4DMmessenger.cc.

References G4DigiManager::Digitize(), G4UIcmdWithAnInteger::GetNewIntValue(), G4DigiManager::List(), and G4DigiManager::SetVerboseLevel().

00064 {
00065   if( command==listCmd )
00066   { fDMan->List(); }
00067   if( command==digiCmd )
00068   { fDMan->Digitize(newVal); }
00069   if( command==verboseCmd )
00070   { fDMan->SetVerboseLevel(verboseCmd->GetNewIntValue(newVal)); }
00071   return;
00072 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:47 2013 for Geant4 by  doxygen 1.4.7