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

#include <Doxymodules_optical.h>

Inheritance diagram for WLSPrimaryGeneratorMessenger:
G4UImessenger

Public Member Functions

 WLSPrimaryGeneratorMessenger (WLSPrimaryGeneratorAction *)
 
 ~WLSPrimaryGeneratorMessenger () override
 
void SetNewValue (G4UIcommand *, G4String) override
 

Private Attributes

WLSPrimaryGeneratorActionfAction = nullptr
 
G4UIdirectoryfGunDir = nullptr
 
G4UIcmdWithADoubleAndUnitfSetPolarizationCmd = nullptr
 
G4UIcmdWithADoubleAndUnitfSetDecayTimeConstantCmd = nullptr
 

Detailed Description

Definition at line 97 of file Doxymodules_optical.h.

Constructor & Destructor Documentation

◆ WLSPrimaryGeneratorMessenger()

WLSPrimaryGeneratorMessenger::WLSPrimaryGeneratorMessenger ( WLSPrimaryGeneratorAction gun)

Definition at line 41 of file WLSPrimaryGeneratorMessenger.cc.

43 : fAction(gun)
44{
45 fGunDir = new G4UIdirectory("/WLS/gun/");
46 fGunDir->SetGuidance("WLSPrimaryGenerator control");
47
49 new G4UIcmdWithADoubleAndUnit("/WLS/gun/optPhotonPolar", this);
50 fSetPolarizationCmd->SetGuidance("Set linear polarization");
51 fSetPolarizationCmd->SetGuidance(" angle w.r.t. (k,n) plane");
52 fSetPolarizationCmd->SetParameterName("angle", true);
53 fSetPolarizationCmd->SetUnitCategory("Angle");
54 fSetPolarizationCmd->SetDefaultValue(0.);
55 fSetPolarizationCmd->AvailableForStates(G4State_Idle);
56
58 new G4UIcmdWithADoubleAndUnit("/WLS/gun/setDecayTimeConstant", this);
59 fSetDecayTimeConstantCmd->SetGuidance("Set the decay time constant");
60 fSetDecayTimeConstantCmd->SetGuidance("for the starting time of each photon");
61 fSetDecayTimeConstantCmd->SetParameterName("time_const", false);
62 fSetDecayTimeConstantCmd->SetUnitCategory("Time");
63 fSetDecayTimeConstantCmd->SetRange("time_const>=0");
64 fSetDecayTimeConstantCmd->AvailableForStates(G4State_Idle);
65
66 // fSetUseSampledEnergyCmd = new G4UIcmdWithABool("/WLS/gun/useSampledEnergy",
67 // this); fSetUseSampledEnergyCmd->SetGuidance("Enable sampling of primary
68 // energy."); fSetUseSampledEnergyCmd->SetGuidance("This is currently
69 // disabled."); fSetUseSampledEnergyCmd->AvailableForStates();
70}
G4UIcmdWithADoubleAndUnit * fSetDecayTimeConstantCmd
G4UIcmdWithADoubleAndUnit * fSetPolarizationCmd

◆ ~WLSPrimaryGeneratorMessenger()

WLSPrimaryGeneratorMessenger::~WLSPrimaryGeneratorMessenger ( )
override

Definition at line 74 of file WLSPrimaryGeneratorMessenger.cc.

75{
76 delete fGunDir;
79 // delete fSetUseSampledEnergyCmd;
80}

Member Function Documentation

◆ SetNewValue()

void WLSPrimaryGeneratorMessenger::SetNewValue ( G4UIcommand command,
G4String  val 
)
override

Definition at line 84 of file WLSPrimaryGeneratorMessenger.cc.

86{
87 if(command == fSetPolarizationCmd)
89 G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(val));
90 else if(command == fSetDecayTimeConstantCmd)
92 G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(val));
93 // else if ( command == fSetUseSampledEnergyCmd )
94 // fAction->
95 // SetUseSampledEnergy(G4UIcmdWithABool::GetNewBoolValue(val));
96}

Member Data Documentation

◆ fAction

WLSPrimaryGeneratorAction* WLSPrimaryGeneratorMessenger::fAction = nullptr
private

Definition at line 54 of file WLSPrimaryGeneratorMessenger.hh.

◆ fGunDir

G4UIdirectory* WLSPrimaryGeneratorMessenger::fGunDir = nullptr
private

Definition at line 56 of file WLSPrimaryGeneratorMessenger.hh.

◆ fSetPolarizationCmd

G4UIcmdWithADoubleAndUnit* WLSPrimaryGeneratorMessenger::fSetPolarizationCmd = nullptr
private

Definition at line 58 of file WLSPrimaryGeneratorMessenger.hh.

◆ fSetDecayTimeConstantCmd

G4UIcmdWithADoubleAndUnit* WLSPrimaryGeneratorMessenger::fSetDecayTimeConstantCmd = nullptr
private

Definition at line 59 of file WLSPrimaryGeneratorMessenger.hh.


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

Applications | User Support | Publications | Collaboration