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

#include <exrdmEventActionMessenger.hh>

Inheritance diagram for exrdmEventActionMessenger:
G4UImessenger

Public Member Functions

 exrdmEventActionMessenger (exrdmEventAction *)
 
virtual ~exrdmEventActionMessenger ()
 
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
 

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 46 of file exrdmEventActionMessenger.hh.

Constructor & Destructor Documentation

exrdmEventActionMessenger::exrdmEventActionMessenger ( exrdmEventAction EvAct)

Definition at line 42 of file exrdmEventActionMessenger.cc.

References G4UIcommand::AvailableForStates(), G4State_Idle, G4UIcmdWithAString::SetCandidates(), G4UIcmdWithAString::SetDefaultValue(), G4UIcommand::SetGuidance(), and G4UIcmdWithAString::SetParameterName().

43 :G4UImessenger(),
44  fEventAction(EvAct),fDrawCmd(0)
45 {
46  fDrawCmd = new G4UIcmdWithAString("/event/draw",this);
47  fDrawCmd->SetGuidance("Draw the tracks in the event");
48  fDrawCmd->SetGuidance(" Choice : none, charged, all (default)");
49  fDrawCmd->SetParameterName("choice",true);
50  fDrawCmd->SetDefaultValue("all");
51  fDrawCmd->SetCandidates("none charged all");
53 }
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:225
void SetDefaultValue(const char *defVal)
void SetCandidates(const char *candidateList)
exrdmEventActionMessenger::~exrdmEventActionMessenger ( )
virtual

Definition at line 57 of file exrdmEventActionMessenger.cc.

58 {
59  delete fDrawCmd;
60 }

Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 64 of file exrdmEventActionMessenger.cc.

References exrdmEventAction::SetDrawFlag().

66 {
67  if(command == fDrawCmd)
68  {fEventAction->SetDrawFlag(newValue);}
69 
70 }
void SetDrawFlag(G4String val)

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