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

#include <Doxymodules_medical.h>

Inheritance diagram for RadioBio::LETMessenger:
G4UImessenger

Public Member Functions

 LETMessenger (LET *)
 
 ~LETMessenger () override
 
void SetNewValue (G4UIcommand *, G4String) override
 

Private Attributes

LETfLET = nullptr
 
G4UIdirectoryfLETDir = nullptr
 
G4UIcmdWithABoolfCalculationCmd = nullptr
 
G4UIcmdWithAnIntegerfVerbosityCmd = nullptr
 
G4UIcmdWithoutParameterfResetCmd = nullptr
 
G4UIcmdWithAStringfLETPathCmd = nullptr
 
G4UIcmdWithoutParameterfPrintCmd = nullptr
 

Detailed Description

Definition at line 136 of file Doxymodules_medical.h.

Constructor & Destructor Documentation

◆ LETMessenger()

RadioBio::LETMessenger::LETMessenger ( LET LET)

Definition at line 44 of file LETMessenger.cc.

44 : G4UImessenger(), fLET(LET)
45{
46 // Directory for LET commands
47 fLETDir = new G4UIdirectory("/LET/");
48 fLETDir->SetGuidance("commands to setup LET calculation");
49
50 // Activate LET calculation
51 fCalculationCmd = new G4UIcmdWithABool("/LET/calculate", this);
52 fCalculationCmd->SetGuidance("Whether to enable LET calculation");
53 fCalculationCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
54 fCalculationCmd->SetToBeBroadcasted(false);
55
56 // Set LET verbosity
57 fVerbosityCmd = new G4UIcmdWithAnInteger("/LET/verbose", this);
58 fVerbosityCmd->SetGuidance("Set verbosity level of LET");
59 fVerbosityCmd->SetGuidance("0 = quiet");
60 fVerbosityCmd->SetGuidance("1 = important messages (~10 per run)");
61 fVerbosityCmd->SetGuidance("2 = debug");
62 fVerbosityCmd->SetToBeBroadcasted(false);
63
64 // Reset LET data
65 fResetCmd = new G4UIcmdWithoutParameter("/LET/reset", this);
66 fResetCmd->SetGuidance("Reset accumulated data");
67 fResetCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
68 fResetCmd->SetToBeBroadcasted(false);
69
70 // Set LET filename
71 fLETPathCmd = new G4UIcmdWithAString("/LET/fileName", this);
72 fLETPathCmd->SetGuidance("Set the filename for the LET file");
73 fLETPathCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
74 fLETPathCmd->SetToBeBroadcasted(false);
75
76 // Print Parameters
77 fPrintCmd = new G4UIcmdWithoutParameter("/LET/print", this);
78 fPrintCmd->SetGuidance("Print LET parameters");
79 fPrintCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
80 fPrintCmd->SetToBeBroadcasted(false);
81}
G4UIcmdWithAString * fLETPathCmd
G4UIcmdWithABool * fCalculationCmd
G4UIcmdWithoutParameter * fResetCmd
G4UIdirectory * fLETDir
G4UIcmdWithoutParameter * fPrintCmd
G4UIcmdWithAnInteger * fVerbosityCmd

◆ ~LETMessenger()

RadioBio::LETMessenger::~LETMessenger ( )
override

Definition at line 85 of file LETMessenger.cc.

86{
87 delete fLETDir;
88 delete fCalculationCmd;
89 delete fVerbosityCmd;
90 delete fResetCmd;
91 delete fLETPathCmd;
92 delete fPrintCmd;
93}

Member Function Documentation

◆ SetNewValue()

void RadioBio::LETMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
override

Definition at line 97 of file LETMessenger.cc.

98{
99 if (command == fCalculationCmd) {
100 fLET->SetCalculationEnabled(fCalculationCmd->GetNewBoolValue(newValue));
101 }
102
103 if (command == fVerbosityCmd) {
104 fLET->SetVerboseLevel(fVerbosityCmd->GetNewIntValue(newValue));
105 }
106
107 if (command == fResetCmd) {
108 fLET->Reset();
109 }
110
111 if (command == fLETPathCmd) {
112 fLET->SetPath(newValue);
113 }
114
115 if (command == fPrintCmd) {
117 }
118}
void Reset() override
Definition LET.cc:233
void PrintParameters() override
Definition LET.cc:285

Member Data Documentation

◆ fLET

LET* RadioBio::LETMessenger::fLET = nullptr
private

Definition at line 56 of file LETMessenger.hh.

◆ fLETDir

G4UIdirectory* RadioBio::LETMessenger::fLETDir = nullptr
private

Definition at line 58 of file LETMessenger.hh.

◆ fCalculationCmd

G4UIcmdWithABool* RadioBio::LETMessenger::fCalculationCmd = nullptr
private

Definition at line 59 of file LETMessenger.hh.

◆ fVerbosityCmd

G4UIcmdWithAnInteger* RadioBio::LETMessenger::fVerbosityCmd = nullptr
private

Definition at line 60 of file LETMessenger.hh.

◆ fResetCmd

G4UIcmdWithoutParameter* RadioBio::LETMessenger::fResetCmd = nullptr
private

Definition at line 61 of file LETMessenger.hh.

◆ fLETPathCmd

G4UIcmdWithAString* RadioBio::LETMessenger::fLETPathCmd = nullptr
private

Definition at line 62 of file LETMessenger.hh.

◆ fPrintCmd

G4UIcmdWithoutParameter* RadioBio::LETMessenger::fPrintCmd = nullptr
private

Definition at line 63 of file LETMessenger.hh.


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

Applications | User Support | Publications | Collaboration