Geant4  10.02.p03
RunActionMessenger Class Reference

#include <RunActionMessenger.hh>

Inheritance diagram for RunActionMessenger:
Collaboration diagram for RunActionMessenger:

Public Member Functions

 RunActionMessenger (RunAction *)
 
virtual ~RunActionMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 
 RunActionMessenger (RunAction *)
 
virtual ~RunActionMessenger ()
 
void SetNewValue (G4UIcommand *, G4String)
 
 RunActionMessenger (RunAction *)
 
 ~RunActionMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 
 RunActionMessenger (RunAction *)
 
virtual ~RunActionMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 
- 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

RunActionfRun
 
G4UIdirectoryfRunDir
 
G4UIcmdWith3VectorfAccCmd
 
G4UIcmdWithAnIntegerfVerbCmd
 
G4UIdirectoryfHistoDir
 
G4UIcmdWithAStringfHFileCmd
 
RunActionfRunAction
 
G4UIcommandfAccCmd
 
G4UIcmdWithABoolfLimCmd
 
G4UIdirectoryfActDir
 
G4UIcmdWithADoublefBinSizeCmd
 
G4UIcmdWithAnIntegerfVerboseCmd
 
G4UIcmdWithAStringfFactoryCmd
 

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

Constructor & Destructor Documentation

◆ RunActionMessenger() [1/4]

RunActionMessenger::RunActionMessenger ( RunAction run)

Definition at line 44 of file electromagnetic/TestEm2/src/RunActionMessenger.cc.

45 :G4UImessenger(),fRun(run),
46  fRunDir(0),
47  fAccCmd(0),
48  fVerbCmd(0),
49  fHistoDir(0),
50  fHFileCmd(0)
51 {
52  fRunDir = new G4UIdirectory("/testem/run/");
53  fRunDir->SetGuidance("run control");
54 
55  fAccCmd = new G4UIcmdWith3Vector("/testem/run/acceptance",this);
56  fAccCmd->SetGuidance("set Edep and RMS");
57  fAccCmd->SetGuidance("acceptance values for first layer");
58  fAccCmd->SetParameterName("edep","rms","limit",true);
59  fAccCmd->SetRange("edep>0 && edep<1 && rms>0");
61 
62  fVerbCmd = new G4UIcmdWithAnInteger("/testem/run/verbose",this);
63  fVerbCmd->SetGuidance("set verbose level for runAction");
64  fVerbCmd->SetParameterName("verbose",false);
65 
66  fHistoDir = new G4UIdirectory("/testem/histo/");
67  fHistoDir->SetGuidance("histograms control");
68 
69  fHFileCmd = new G4UIcmdWithAString("/testem/histo/setFileName",this);
70  fHFileCmd->SetGuidance("set name for the histograms file");
71 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
void SetRange(const char *rs)
Definition: G4UIcommand.hh:125
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:

◆ ~RunActionMessenger() [1/4]

RunActionMessenger::~RunActionMessenger ( )
virtual

◆ RunActionMessenger() [2/4]

RunActionMessenger::RunActionMessenger ( RunAction )

◆ ~RunActionMessenger() [2/4]

virtual RunActionMessenger::~RunActionMessenger ( )
virtual

◆ RunActionMessenger() [3/4]

RunActionMessenger::RunActionMessenger ( RunAction )

◆ ~RunActionMessenger() [3/4]

RunActionMessenger::~RunActionMessenger ( )

◆ RunActionMessenger() [4/4]

RunActionMessenger::RunActionMessenger ( RunAction )

◆ ~RunActionMessenger() [4/4]

virtual RunActionMessenger::~RunActionMessenger ( )
virtual

Member Function Documentation

◆ SetNewValue() [1/4]

void RunActionMessenger::SetNewValue ( G4UIcommand ,
G4String   
)
virtual

Reimplemented from G4UImessenger.

◆ SetNewValue() [2/4]

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

Reimplemented from G4UImessenger.

Definition at line 86 of file electromagnetic/TestEm2/src/RunActionMessenger.cc.

87 {
88  if (command == fAccCmd )
90 
91  if (command == fVerbCmd )
92  { fRun->SetVerbose(fVerbCmd->GetNewIntValue(newValue));}
93 
94  if (command == fHFileCmd)
95  { fRun->SetHistoName(newValue);}
96 }
static G4int GetNewIntValue(const char *paramString)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
Here is the call graph for this function:

◆ SetNewValue() [3/4]

virtual void RunActionMessenger::SetNewValue ( G4UIcommand ,
G4String   
)
virtual

Reimplemented from G4UImessenger.

◆ SetNewValue() [4/4]

virtual void RunActionMessenger::SetNewValue ( G4UIcommand ,
G4String   
)
virtual

Reimplemented from G4UImessenger.

Member Data Documentation

◆ fAccCmd [1/2]

G4UIcommand* RunActionMessenger::fAccCmd
private

◆ fAccCmd [2/2]

G4UIcmdWith3Vector* RunActionMessenger::fAccCmd
private

◆ fActDir

G4UIdirectory* RunActionMessenger::fActDir
private

◆ fBinSizeCmd

G4UIcmdWithADouble* RunActionMessenger::fBinSizeCmd
private

◆ fFactoryCmd

G4UIcmdWithAString* RunActionMessenger::fFactoryCmd
private

◆ fHFileCmd

G4UIcmdWithAString* RunActionMessenger::fHFileCmd
private

◆ fHistoDir

G4UIdirectory* RunActionMessenger::fHistoDir
private

◆ fLimCmd

G4UIcmdWithABool* RunActionMessenger::fLimCmd
private

◆ fRun

RunAction * RunActionMessenger::fRun
private

◆ fRunAction

RunAction * RunActionMessenger::fRunAction
private

◆ fRunDir

G4UIdirectory * RunActionMessenger::fRunDir
private

◆ fVerbCmd

G4UIcmdWithAnInteger* RunActionMessenger::fVerbCmd
private

◆ fVerboseCmd

G4UIcmdWithAnInteger* RunActionMessenger::fVerboseCmd
private

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