Geant4  10.02.p03
ExG4EventAction01Messenger Class Reference

#include <ExG4EventAction01Messenger.hh>

Inheritance diagram for ExG4EventAction01Messenger:
Collaboration diagram for ExG4EventAction01Messenger:

Public Member Functions

 ExG4EventAction01Messenger (ExG4EventAction01 *eventAction)
 
 ~ExG4EventAction01Messenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
 ExG4EventAction01Messenger (ExG4EventAction01 *eventAction)
 
 ~ExG4EventAction01Messenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
 ExG4EventAction01Messenger (ExG4EventAction01 *eventAction)
 
 ~ExG4EventAction01Messenger ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
- 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

ExG4EventAction01fEventAction
 
G4UIdirectoryfTopDirectory
 
G4UIdirectoryfDirectory
 
G4UIcmdWithAnIntegerfSetVerboseLevelCmd
 
G4UIcmdWithABoolfSetSaveRndmCmd
 

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

Messenger class that defines commands for ExG4EventAction01

It implements commands:

  • /ExG4/event/verboseLevel level
  • /ExG4/event/printModulo modulo
  • /ExG4/event/saveRndm true|false

Definition at line 49 of file common/include/ExG4EventAction01Messenger.hh.

Constructor & Destructor Documentation

◆ ExG4EventAction01Messenger() [1/3]

ExG4EventAction01Messenger::ExG4EventAction01Messenger ( ExG4EventAction01 eventAction)

Definition at line 41 of file common/src/ExG4EventAction01Messenger.cc.

43  : G4UImessenger(),
44  fEventAction(eventAction),
45  fTopDirectory(0),
46  fDirectory(0),
49 {
50  fTopDirectory = new G4UIdirectory("/ExG4/");
51  fTopDirectory->SetGuidance("UI commands of common example classes");
52 
53  fDirectory = new G4UIdirectory("/ExG4/event/");
54  fDirectory->SetGuidance("Event control");
55 
57  = new G4UIcmdWithAnInteger("/ExG4/event/verboseLevel",this);
58  fSetVerboseLevelCmd->SetGuidance("Set event verbose level ." );
59  fSetVerboseLevelCmd->SetParameterName("VerboseLevel",false);
61 
62  fSetSaveRndmCmd = new G4UIcmdWithABool("/ExG4/event/saveRndm",this);
64  ->SetGuidance("Activate saving random number at endOfEvent.");
65  fSetSaveRndmCmd->SetParameterName("SaveRndm",false);
67 }
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:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
Here is the call graph for this function:

◆ ~ExG4EventAction01Messenger() [1/3]

ExG4EventAction01Messenger::~ExG4EventAction01Messenger ( )

◆ ExG4EventAction01Messenger() [2/3]

ExG4EventAction01Messenger::ExG4EventAction01Messenger ( ExG4EventAction01 eventAction)

◆ ~ExG4EventAction01Messenger() [2/3]

ExG4EventAction01Messenger::~ExG4EventAction01Messenger ( )

◆ ExG4EventAction01Messenger() [3/3]

ExG4EventAction01Messenger::ExG4EventAction01Messenger ( ExG4EventAction01 eventAction)

◆ ~ExG4EventAction01Messenger() [3/3]

ExG4EventAction01Messenger::~ExG4EventAction01Messenger ( )

Member Function Documentation

◆ SetNewValue() [1/3]

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

Reimplemented from G4UImessenger.

Definition at line 81 of file common/src/ExG4EventAction01Messenger.cc.

83 {
84  if(command == fSetVerboseLevelCmd) {
87  }
88  else if ( command == fSetSaveRndmCmd ) {
90  }
91 }
static G4int GetNewIntValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
Here is the call graph for this function:

◆ SetNewValue() [2/3]

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

Reimplemented from G4UImessenger.

◆ SetNewValue() [3/3]

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

Reimplemented from G4UImessenger.

Member Data Documentation

◆ fDirectory

G4UIdirectory * ExG4EventAction01Messenger::fDirectory
private

Definition at line 61 of file common/include/ExG4EventAction01Messenger.hh.

◆ fEventAction

ExG4EventAction01 * ExG4EventAction01Messenger::fEventAction
private

Definition at line 59 of file common/include/ExG4EventAction01Messenger.hh.

◆ fSetSaveRndmCmd

G4UIcmdWithABool * ExG4EventAction01Messenger::fSetSaveRndmCmd
private

Definition at line 63 of file common/include/ExG4EventAction01Messenger.hh.

◆ fSetVerboseLevelCmd

G4UIcmdWithAnInteger * ExG4EventAction01Messenger::fSetVerboseLevelCmd
private

Definition at line 62 of file common/include/ExG4EventAction01Messenger.hh.

◆ fTopDirectory

G4UIdirectory * ExG4EventAction01Messenger::fTopDirectory
private

Definition at line 60 of file common/include/ExG4EventAction01Messenger.hh.


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