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

#include <Doxymodules_optical.h>

Inheritance diagram for WLSEventActionMessenger:
G4UImessenger

Public Member Functions

 WLSEventActionMessenger (WLSEventAction *)
 
 ~WLSEventActionMessenger () override
 
void SetNewValue (G4UIcommand *, G4String) override
 

Private Attributes

WLSEventActionfEventAction = nullptr
 
G4UIcmdWithAnIntegerfSetVerboseCmd = nullptr
 

Detailed Description

Definition at line 88 of file Doxymodules_optical.h.

Constructor & Destructor Documentation

◆ WLSEventActionMessenger()

WLSEventActionMessenger::WLSEventActionMessenger ( WLSEventAction eventaction)

Definition at line 40 of file WLSEventActionMessenger.cc.

41 : fEventAction(eventaction)
42{
43 fSetVerboseCmd = new G4UIcmdWithAnInteger("/WLS/eventVerbose", this);
44 fSetVerboseCmd->SetGuidance("Set verbose level .");
45 fSetVerboseCmd->SetParameterName("level", true);
46 fSetVerboseCmd->SetDefaultValue(0);
47}
G4UIcmdWithAnInteger * fSetVerboseCmd

◆ ~WLSEventActionMessenger()

WLSEventActionMessenger::~WLSEventActionMessenger ( )
override

Definition at line 51 of file WLSEventActionMessenger.cc.

51{ delete fSetVerboseCmd; }

Member Function Documentation

◆ SetNewValue()

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

Definition at line 55 of file WLSEventActionMessenger.cc.

57{
58 if(command == fSetVerboseCmd)
59 fEventAction->SetEventVerbose(fSetVerboseCmd->GetNewIntValue(newValue));
60}
void SetEventVerbose(G4int)

Member Data Documentation

◆ fEventAction

WLSEventAction* WLSEventActionMessenger::fEventAction = nullptr
private

Definition at line 52 of file WLSEventActionMessenger.hh.

◆ fSetVerboseCmd

G4UIcmdWithAnInteger* WLSEventActionMessenger::fSetVerboseCmd = nullptr
private

Definition at line 54 of file WLSEventActionMessenger.hh.


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

Applications | User Support | Publications | Collaboration