Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
EventActionMessenger Class Reference

#include <EventActionMessenger.hh>

Inheritance diagram for EventActionMessenger:
G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger G4UImessenger

Public Member Functions

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

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
 

Detailed Description

Definition at line 45 of file advanced/amsEcal/include/EventActionMessenger.hh.

Constructor & Destructor Documentation

EventActionMessenger::EventActionMessenger ( EventAction EvAct)

Definition at line 42 of file advanced/amsEcal/src/EventActionMessenger.cc.

References G4UIcommand::AvailableForStates(), G4State_Idle, G4State_PreInit, G4UIcmdWithAString::SetCandidates(), G4UIcmdWithAString::SetDefaultValue(), G4UIcmdWithABool::SetDefaultValue(), G4UIcommand::SetGuidance(), G4UIcmdWithAString::SetParameterName(), G4UIcmdWithAnInteger::SetParameterName(), G4UIcmdWithABool::SetParameterName(), and G4UIcommand::SetRange().

43 :eventAction(EvAct)
44 {
45  eventDir = new G4UIdirectory("/ams/event/");
46  eventDir->SetGuidance("event control");
47 
48  DrawCmd = new G4UIcmdWithAString("/ams/event/drawTracks",this);
49  DrawCmd->SetGuidance("Draw the tracks in the event");
50  DrawCmd->SetGuidance(" Choice : none, charged(default), all");
51  DrawCmd->SetParameterName("choice",true);
52  DrawCmd->SetDefaultValue("all");
53  DrawCmd->SetCandidates("none charged all");
55 
56  PrintCmd = new G4UIcmdWithAnInteger("/ams/event/printModulo",this);
57  PrintCmd->SetGuidance("Print events modulo n");
58  PrintCmd->SetParameterName("EventNb",false);
59  PrintCmd->SetRange("EventNb>0");
61 
62  WriteCmd = new G4UIcmdWithABool("/ams/event/writePixels",this);
63  WriteCmd->SetGuidance("write ascii file of fired pixels");
64  WriteCmd->SetParameterName("writeF", true);
65  WriteCmd->SetDefaultValue(true);
66 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, 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:225
void SetDefaultValue(const char *defVal)
void SetCandidates(const char *candidateList)
EventActionMessenger::~EventActionMessenger ( )

Definition at line 70 of file advanced/amsEcal/src/EventActionMessenger.cc.

71 {
72  delete DrawCmd;
73  delete PrintCmd;
74  delete WriteCmd;
75  delete eventDir;
76 }
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
virtual EventActionMessenger::~EventActionMessenger ( )
virtual
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
virtual EventActionMessenger::~EventActionMessenger ( )
virtual
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
virtual EventActionMessenger::~EventActionMessenger ( )
virtual
EventActionMessenger::EventActionMessenger ( EventAction )
virtual EventActionMessenger::~EventActionMessenger ( )
virtual
EventActionMessenger::EventActionMessenger ( EventAction )
virtual EventActionMessenger::~EventActionMessenger ( )
virtual
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
virtual EventActionMessenger::~EventActionMessenger ( )
virtual
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )
EventActionMessenger::EventActionMessenger ( EventAction )
EventActionMessenger::~EventActionMessenger ( )

Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 80 of file advanced/amsEcal/src/EventActionMessenger.cc.

References G4UIcmdWithABool::GetNewBoolValue(), G4UIcmdWithAnInteger::GetNewIntValue(), EventAction::SetDrawFlag(), EventAction::SetPrintModulo(), and EventAction::SetWriteFile().

82 {
83  if(command == DrawCmd)
84  {eventAction->SetDrawFlag(newValue);}
85 
86  if(command == PrintCmd)
87  {eventAction->SetPrintModulo(PrintCmd->GetNewIntValue(newValue));}
88 
89  if(command == WriteCmd)
90  {eventAction->SetWriteFile(WriteCmd->GetNewBoolValue(newValue));}
91 }
static G4int GetNewIntValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
virtual void EventActionMessenger::SetNewValue ( G4UIcommand ,
G4String   
)
virtual

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

void EventActionMessenger::SetNewValue ( G4UIcommand ,
G4String   
)
virtual

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.

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

Reimplemented from G4UImessenger.


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