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

#include <Doxymodules_optical.h>

Inheritance diagram for WLSSteppingActionMessenger:
G4UImessenger

Public Member Functions

 WLSSteppingActionMessenger (WLSSteppingAction *)
 
 ~WLSSteppingActionMessenger () override
 
void SetNewValue (G4UIcommand *, G4String) override
 

Private Attributes

WLSSteppingActionfSteppingAction = nullptr
 
G4UIdirectoryfSteppingDir = nullptr
 
G4UIcmdWithAnIntegerfSetBounceLimitCmd = nullptr
 

Detailed Description

Definition at line 103 of file Doxymodules_optical.h.

Constructor & Destructor Documentation

◆ WLSSteppingActionMessenger()

WLSSteppingActionMessenger::WLSSteppingActionMessenger ( WLSSteppingAction steppingaction)

Definition at line 40 of file WLSSteppingActionMessenger.cc.

42 : fSteppingAction(steppingaction)
43{
44 fSteppingDir = new G4UIdirectory("/stepping/");
45 fSteppingDir->SetGuidance("stepping control");
46
48 new G4UIcmdWithAnInteger("/stepping/setBounceLimit", this);
49 fSetBounceLimitCmd->SetGuidance(
50 "Select the maximum number of allowed bounce");
51 fSetBounceLimitCmd->SetGuidance(
52 "Set this number to zero if you don't want to limit");
53 fSetBounceLimitCmd->SetParameterName("limit", false);
54 fSetBounceLimitCmd->SetRange("limit>=0");
55 fSetBounceLimitCmd->AvailableForStates(G4State_Idle);
56}
G4UIcmdWithAnInteger * fSetBounceLimitCmd

◆ ~WLSSteppingActionMessenger()

WLSSteppingActionMessenger::~WLSSteppingActionMessenger ( )
override

Definition at line 60 of file WLSSteppingActionMessenger.cc.

61{
62 delete fSteppingDir;
63 delete fSetBounceLimitCmd;
64}

Member Function Documentation

◆ SetNewValue()

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

Definition at line 68 of file WLSSteppingActionMessenger.cc.

70{
71 if(command == fSetBounceLimitCmd)
72 {
74 G4UIcmdWithAnInteger::GetNewIntValue(newValue));
75 }
76}

Member Data Documentation

◆ fSteppingAction

WLSSteppingAction* WLSSteppingActionMessenger::fSteppingAction = nullptr
private

Definition at line 53 of file WLSSteppingActionMessenger.hh.

◆ fSteppingDir

G4UIdirectory* WLSSteppingActionMessenger::fSteppingDir = nullptr
private

Definition at line 54 of file WLSSteppingActionMessenger.hh.

◆ fSetBounceLimitCmd

G4UIcmdWithAnInteger* WLSSteppingActionMessenger::fSetBounceLimitCmd = nullptr
private

Definition at line 55 of file WLSSteppingActionMessenger.hh.


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

Applications | User Support | Publications | Collaboration