Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
LXeEventMessenger Class Reference

#include <Doxymodules_optical.h>

Inheritance diagram for LXeEventMessenger:
G4UImessenger

Public Member Functions

 LXeEventMessenger (LXeEventAction *)
 
 ~LXeEventMessenger () override
 
void SetNewValue (G4UIcommand *, G4String) override
 

Private Attributes

LXeEventActionfLXeEvent = nullptr
 
G4UIcmdWithAnIntegerfVerboseCmd = nullptr
 
G4UIcmdWithAnIntegerfPmtThresholdCmd = nullptr
 
G4UIcmdWithABoolfForceDrawPhotonsCmd = nullptr
 
G4UIcmdWithABoolfForceDrawNoPhotonsCmd = nullptr
 

Detailed Description

Definition at line 52 of file Doxymodules_optical.h.

Constructor & Destructor Documentation

◆ LXeEventMessenger()

LXeEventMessenger::LXeEventMessenger ( LXeEventAction event)

Definition at line 40 of file LXeEventMessenger.cc.

41 : fLXeEvent(event)
42{
43 fVerboseCmd = new G4UIcmdWithAnInteger("/LXe/eventVerbose", this);
44 fVerboseCmd->SetGuidance("Set the verbosity of event data.");
45 fVerboseCmd->SetParameterName("verbose", true);
46 fVerboseCmd->SetDefaultValue(1);
47
48 fPmtThresholdCmd = new G4UIcmdWithAnInteger("/LXe/pmtThreshold", this);
49 fPmtThresholdCmd->SetGuidance("Set the pmtThreshold (in # of photons)");
50
51 fForceDrawPhotonsCmd = new G4UIcmdWithABool("/LXe/forceDrawPhotons", this);
52 fForceDrawPhotonsCmd->SetGuidance("Force drawing of photons.");
53 fForceDrawPhotonsCmd->SetGuidance(
54 "(Higher priority than /LXe/forceDrawNoPhotons)");
55
57 new G4UIcmdWithABool("/LXe/forceDrawNoPhotons", this);
58 fForceDrawNoPhotonsCmd->SetGuidance("Force no drawing of photons.");
59 fForceDrawNoPhotonsCmd->SetGuidance(
60 "(Lower priority than /LXe/forceDrawPhotons)");
61}
G4UIcmdWithAnInteger * fPmtThresholdCmd
LXeEventAction * fLXeEvent
G4UIcmdWithABool * fForceDrawPhotonsCmd
G4UIcmdWithAnInteger * fVerboseCmd
G4UIcmdWithABool * fForceDrawNoPhotonsCmd

◆ ~LXeEventMessenger()

LXeEventMessenger::~LXeEventMessenger ( )
override

Definition at line 65 of file LXeEventMessenger.cc.

66{
67 delete fVerboseCmd;
68 delete fPmtThresholdCmd;
71}

Member Function Documentation

◆ SetNewValue()

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

Definition at line 75 of file LXeEventMessenger.cc.

76{
77 if(command == fVerboseCmd)
78 {
79 fLXeEvent->SetEventVerbose(fVerboseCmd->GetNewIntValue(newValue));
80 }
81 else if(command == fPmtThresholdCmd)
82 {
83 fLXeEvent->SetPMTThreshold(fPmtThresholdCmd->GetNewIntValue(newValue));
84 }
85 else if(command == fForceDrawPhotonsCmd)
86 {
88 fForceDrawPhotonsCmd->GetNewBoolValue(newValue));
89 }
90 else if(command == fForceDrawNoPhotonsCmd)
91 {
93 fForceDrawNoPhotonsCmd->GetNewBoolValue(newValue));
94 }
95}
void SetEventVerbose(G4int v)
void SetForceDrawNoPhotons(G4bool b)
void SetPMTThreshold(G4int t)
void SetForceDrawPhotons(G4bool b)

Member Data Documentation

◆ fLXeEvent

LXeEventAction* LXeEventMessenger::fLXeEvent = nullptr
private

Definition at line 50 of file LXeEventMessenger.hh.

◆ fVerboseCmd

G4UIcmdWithAnInteger* LXeEventMessenger::fVerboseCmd = nullptr
private

Definition at line 51 of file LXeEventMessenger.hh.

◆ fPmtThresholdCmd

G4UIcmdWithAnInteger* LXeEventMessenger::fPmtThresholdCmd = nullptr
private

Definition at line 52 of file LXeEventMessenger.hh.

◆ fForceDrawPhotonsCmd

G4UIcmdWithABool* LXeEventMessenger::fForceDrawPhotonsCmd = nullptr
private

Definition at line 53 of file LXeEventMessenger.hh.

◆ fForceDrawNoPhotonsCmd

G4UIcmdWithABool* LXeEventMessenger::fForceDrawNoPhotonsCmd = nullptr
private

Definition at line 54 of file LXeEventMessenger.hh.


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

Applications | User Support | Publications | Collaboration