Geant4  10.02.p03
Em10EventActionMessenger Class Reference

#include <Em10EventActionMessenger.hh>

Inheritance diagram for Em10EventActionMessenger:
Collaboration diagram for Em10EventActionMessenger:

Public Member Functions

 Em10EventActionMessenger (Em10EventAction *)
 
 ~Em10EventActionMessenger ()
 
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

Em10EventActioneventAction
 
G4UIcmdWithAnIntegersetVerboseCmd
 
G4UIcmdWithAStringDrawCmd
 
G4UIcmdWithAnIntegerPrintCmd
 

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 50 of file Em10EventActionMessenger.hh.

Constructor & Destructor Documentation

◆ Em10EventActionMessenger()

Em10EventActionMessenger::Em10EventActionMessenger ( Em10EventAction EvAct)

Definition at line 47 of file Em10EventActionMessenger.cc.

48 :G4UImessenger(),eventAction(EvAct)
49 {
50  setVerboseCmd = new G4UIcmdWithAnInteger("/event/setverbose",this);
51  setVerboseCmd->SetGuidance("Set verbose level ." );
52  setVerboseCmd->SetParameterName("level",true);
54 
55  DrawCmd = new G4UIcmdWithAString("/event/drawTracks",this);
56  DrawCmd->SetGuidance("Draw the tracks in the event");
57  DrawCmd->SetGuidance(" Choice : none,charged, all");
58  DrawCmd->SetParameterName("choice",true);
59  DrawCmd->SetDefaultValue("all");
60  DrawCmd->SetCandidates("none charged all");
62 
63  PrintCmd = new G4UIcmdWithAnInteger("/event/printModulo",this);
64  PrintCmd->SetGuidance("Print events modulo n");
65  PrintCmd->SetParameterName("EventNb",false);
66  PrintCmd->SetRange("EventNb>0");
68 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithAnInteger * setVerboseCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithAnInteger * PrintCmd
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
void SetDefaultValue(const char *defVal)
void SetCandidates(const char *candidateList)
void SetDefaultValue(G4int defVal)
Here is the call graph for this function:

◆ ~Em10EventActionMessenger()

Em10EventActionMessenger::~Em10EventActionMessenger ( )

Definition at line 72 of file Em10EventActionMessenger.cc.

73 {
74  delete setVerboseCmd;
75  delete DrawCmd;
76  delete PrintCmd;
77 }
G4UIcmdWithAnInteger * setVerboseCmd
G4UIcmdWithAnInteger * PrintCmd

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 81 of file Em10EventActionMessenger.cc.

82 {
83  if(command == setVerboseCmd)
85 
86  if(command == DrawCmd)
87  {eventAction->SetDrawFlag(newValue);}
88 
89  if(command == PrintCmd)
91 }
G4UIcmdWithAnInteger * setVerboseCmd
static G4int GetNewIntValue(const char *paramString)
G4UIcmdWithAnInteger * PrintCmd
void setEventVerbose(G4int level)
void SetDrawFlag(G4String val)
void SetPrintModulo(G4int val)
Here is the call graph for this function:

Member Data Documentation

◆ DrawCmd

G4UIcmdWithAString* Em10EventActionMessenger::DrawCmd
private

Definition at line 61 of file Em10EventActionMessenger.hh.

◆ eventAction

Em10EventAction* Em10EventActionMessenger::eventAction
private

Definition at line 59 of file Em10EventActionMessenger.hh.

◆ PrintCmd

G4UIcmdWithAnInteger* Em10EventActionMessenger::PrintCmd
private

Definition at line 62 of file Em10EventActionMessenger.hh.

◆ setVerboseCmd

G4UIcmdWithAnInteger* Em10EventActionMessenger::setVerboseCmd
private

Definition at line 60 of file Em10EventActionMessenger.hh.


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