Geant4 examples
Public Member Functions | Private Attributes
ExG4EventAction01Messenger Class Reference

Messenger class that defines commands for ExG4EventAction01. More...

#include <Doxymodules_common.h>

Inheritance diagram for ExG4EventAction01Messenger:
G4UImessenger

List of all members.

Public Member Functions

 ExG4EventAction01Messenger (ExG4EventAction01 *eventAction)
 ~ExG4EventAction01Messenger ()
virtual void SetNewValue (G4UIcommand *command, G4String newValue)

Private Attributes

ExG4EventAction01fEventAction
G4UIdirectoryfTopDirectory
G4UIdirectoryfDirectory
G4UIcmdWithAnIntegerfSetVerboseLevelCmd
G4UIcmdWithAnIntegerfSetPrintModuloCmd
G4UIcmdWithABoolfSetSaveRndmCmd

Detailed Description

Messenger class that defines commands for ExG4EventAction01.

It implements commands:

Definition at line 64 of file Doxymodules_common.h.


Constructor & Destructor Documentation

ExG4EventAction01Messenger::ExG4EventAction01Messenger ( ExG4EventAction01 eventAction)

Definition at line 40 of file ExG4EventAction01Messenger.cc.

  : G4UImessenger(),
    fEventAction(eventAction),
    fTopDirectory(0),
    fDirectory(0),
    fSetVerboseLevelCmd(0),
    fSetPrintModuloCmd(0),
    fSetSaveRndmCmd(0)
{ 
  fTopDirectory = new G4UIdirectory("/ExG4/");
  fTopDirectory->SetGuidance("UI commands of common example classes");
  
  fDirectory = new G4UIdirectory("/ExG4/event/");
  fDirectory->SetGuidance("Event control");
       
  fSetVerboseLevelCmd = new G4UIcmdWithAnInteger("/ExG4/event/verboseLevel",this);
  fSetVerboseLevelCmd->SetGuidance("Set event verbose level ." );
  fSetVerboseLevelCmd->SetParameterName("VerboseLevel",false);
  fSetVerboseLevelCmd->AvailableForStates(G4State_PreInit, G4State_Init);

  fSetPrintModuloCmd = new G4UIcmdWithAnInteger("/ExG4/event/printModulo",this);
  fSetPrintModuloCmd->SetGuidance("Print events modulo n");
  fSetPrintModuloCmd->SetParameterName("PrintModulo",false);
  fSetPrintModuloCmd->SetRange("PrintModulo>0");
  fSetPrintModuloCmd->AvailableForStates(G4State_Idle, G4State_Init);     

  fSetSaveRndmCmd = new G4UIcmdWithABool("/ExG4/event/saveRndm",this);
  fSetSaveRndmCmd->SetGuidance("Activate saving random number at endOfEvent.");
  fSetSaveRndmCmd->SetParameterName("SaveRndm",false);
  fSetSaveRndmCmd->AvailableForStates(G4State_Idle, G4State_Init);     
}
ExG4EventAction01Messenger::~ExG4EventAction01Messenger ( )

Definition at line 73 of file ExG4EventAction01Messenger.cc.


Member Function Documentation

void ExG4EventAction01Messenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
) [virtual]

Reimplemented from G4UImessenger.

Definition at line 83 of file ExG4EventAction01Messenger.cc.


Member Data Documentation

Definition at line 59 of file ExG4EventAction01Messenger.hh.

Definition at line 60 of file ExG4EventAction01Messenger.hh.

Definition at line 61 of file ExG4EventAction01Messenger.hh.

Definition at line 62 of file ExG4EventAction01Messenger.hh.

Definition at line 63 of file ExG4EventAction01Messenger.hh.

Definition at line 64 of file ExG4EventAction01Messenger.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines