Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LXeEventMessenger Class Reference

#include <LXeEventMessenger.hh>

Inheritance diagram for LXeEventMessenger:
Collaboration diagram for LXeEventMessenger:

Public Member Functions

 LXeEventMessenger (LXeEventAction *)
 
virtual ~LXeEventMessenger ()
 
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
 

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 42 of file LXeEventMessenger.hh.

Constructor & Destructor Documentation

LXeEventMessenger::LXeEventMessenger ( LXeEventAction event)

Definition at line 40 of file LXeEventMessenger.cc.

41  : fLXeEvent(event)
42 {
43  fSaveThresholdCmd = new G4UIcmdWithAnInteger("/LXe/saveThreshold",this);
44  fSaveThresholdCmd->
45 SetGuidance("Set the photon count threshold for saving the random number seed");
46  fSaveThresholdCmd->SetParameterName("photons",true);
47  fSaveThresholdCmd->SetDefaultValue(4500);
49 
50  fVerboseCmd = new G4UIcmdWithAnInteger("/LXe/eventVerbose",this);
51  fVerboseCmd->SetGuidance("Set the verbosity of event data.");
52  fVerboseCmd->SetParameterName("verbose",true);
53  fVerboseCmd->SetDefaultValue(1);
54 
55  fPmtThresholdCmd = new G4UIcmdWithAnInteger("/LXe/pmtThreshold",this);
56  fPmtThresholdCmd->SetGuidance("Set the pmtThreshold (in # of photons)");
57 
58  fForceDrawPhotonsCmd=new G4UIcmdWithABool("/LXe/forceDrawPhotons",this);
59  fForceDrawPhotonsCmd->SetGuidance("Force drawing of photons.");
60  fForceDrawPhotonsCmd
61  ->SetGuidance("(Higher priority than /LXe/forceDrawNoPhotons)");
62 
63  fForceDrawNoPhotonsCmd=new G4UIcmdWithABool("/LXe/forceDrawNoPhotons",this);
64  fForceDrawNoPhotonsCmd->SetGuidance("Force no drawing of photons.");
65  fForceDrawNoPhotonsCmd
66  ->SetGuidance("(Lower priority than /LXe/forceDrawPhotons)");
67 }
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:240
void SetDefaultValue(G4int defVal)

Here is the call graph for this function:

LXeEventMessenger::~LXeEventMessenger ( )
virtual

Definition at line 71 of file LXeEventMessenger.cc.

71  {
72  delete fSaveThresholdCmd;
73  delete fVerboseCmd;
74  delete fPmtThresholdCmd;
75  delete fForceDrawPhotonsCmd;
76  delete fForceDrawNoPhotonsCmd;
77 }

Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 81 of file LXeEventMessenger.cc.

81  {
82  if( command == fSaveThresholdCmd ){
83  fLXeEvent->SetSaveThreshold(fSaveThresholdCmd->GetNewIntValue(newValue));
84  }
85  else if( command == fVerboseCmd ){
86  fLXeEvent->SetEventVerbose(fVerboseCmd->GetNewIntValue(newValue));
87  }
88  else if( command == fPmtThresholdCmd ){
89  fLXeEvent->SetPMTThreshold(fPmtThresholdCmd->GetNewIntValue(newValue));
90  }
91  else if(command == fForceDrawPhotonsCmd){
92  fLXeEvent->SetForceDrawPhotons(fForceDrawPhotonsCmd
93  ->GetNewBoolValue(newValue));
94  }
95  else if(command == fForceDrawNoPhotonsCmd){
96  fLXeEvent->SetForceDrawNoPhotons(fForceDrawNoPhotonsCmd
97  ->GetNewBoolValue(newValue));
98  G4cout<<"TEST"<<G4endl;
99  }
100 }
static G4int GetNewIntValue(const char *paramString)
void SetForceDrawNoPhotons(G4bool b)
G4GLOB_DLL std::ostream G4cout
void SetSaveThreshold(G4int)
void SetEventVerbose(G4int v)
void SetPMTThreshold(G4int t)
#define G4endl
Definition: G4ios.hh:61
void SetForceDrawPhotons(G4bool b)

Here is the call graph for this function:


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