Geant4  10.02.p03
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
 

Private Attributes

LXeEventActionfLXeEvent
 
G4UIcmdWithAnIntegerfSaveThresholdCmd
 
G4UIcmdWithAnIntegerfVerboseCmd
 
G4UIcmdWithAnIntegerfPmtThresholdCmd
 
G4UIcmdWithABoolfForceDrawPhotonsCmd
 
G4UIcmdWithABoolfForceDrawNoPhotonsCmd
 

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::LXeEventMessenger ( LXeEventAction event)

Definition at line 40 of file LXeEventMessenger.cc.

41  : fLXeEvent(event)
42 {
43  fSaveThresholdCmd = new G4UIcmdWithAnInteger("/LXe/saveThreshold",this);
45 SetGuidance("Set the photon count threshold for saving the random number seed");
46  fSaveThresholdCmd->SetParameterName("photons",true);
49 
50  fVerboseCmd = new G4UIcmdWithAnInteger("/LXe/eventVerbose",this);
51  fVerboseCmd->SetGuidance("Set the verbosity of event data.");
52  fVerboseCmd->SetParameterName("verbose",true);
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.");
61  ->SetGuidance("(Higher priority than /LXe/forceDrawNoPhotons)");
62 
63  fForceDrawNoPhotonsCmd=new G4UIcmdWithABool("/LXe/forceDrawNoPhotons",this);
64  fForceDrawNoPhotonsCmd->SetGuidance("Force no drawing of photons.");
66  ->SetGuidance("(Lower priority than /LXe/forceDrawPhotons)");
67 }
G4UIcmdWithABool * fForceDrawPhotonsCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
LXeEventAction * fLXeEvent
G4UIcmdWithAnInteger * fSaveThresholdCmd
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
G4UIcmdWithAnInteger * fVerboseCmd
G4UIcmdWithABool * fForceDrawNoPhotonsCmd
G4UIcmdWithAnInteger * fPmtThresholdCmd
void SetDefaultValue(G4int defVal)
Here is the call graph for this function:

◆ ~LXeEventMessenger()

LXeEventMessenger::~LXeEventMessenger ( )
virtual

Definition at line 71 of file LXeEventMessenger.cc.

71  {
72  delete fSaveThresholdCmd;
73  delete fVerboseCmd;
74  delete fPmtThresholdCmd;
75  delete fForceDrawPhotonsCmd;
77 }
G4UIcmdWithABool * fForceDrawPhotonsCmd
G4UIcmdWithAnInteger * fSaveThresholdCmd
G4UIcmdWithAnInteger * fVerboseCmd
G4UIcmdWithABool * fForceDrawNoPhotonsCmd
G4UIcmdWithAnInteger * fPmtThresholdCmd

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 81 of file LXeEventMessenger.cc.

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

Member Data Documentation

◆ fForceDrawNoPhotonsCmd

G4UIcmdWithABool* LXeEventMessenger::fForceDrawNoPhotonsCmd
private

Definition at line 58 of file LXeEventMessenger.hh.

◆ fForceDrawPhotonsCmd

G4UIcmdWithABool* LXeEventMessenger::fForceDrawPhotonsCmd
private

Definition at line 57 of file LXeEventMessenger.hh.

◆ fLXeEvent

LXeEventAction* LXeEventMessenger::fLXeEvent
private

Definition at line 53 of file LXeEventMessenger.hh.

◆ fPmtThresholdCmd

G4UIcmdWithAnInteger* LXeEventMessenger::fPmtThresholdCmd
private

Definition at line 56 of file LXeEventMessenger.hh.

◆ fSaveThresholdCmd

G4UIcmdWithAnInteger* LXeEventMessenger::fSaveThresholdCmd
private

Definition at line 54 of file LXeEventMessenger.hh.

◆ fVerboseCmd

G4UIcmdWithAnInteger* LXeEventMessenger::fVerboseCmd
private

Definition at line 55 of file LXeEventMessenger.hh.


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