Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DeexParametersMessenger Class Reference

#include <G4DeexParametersMessenger.hh>

+ Inheritance diagram for G4DeexParametersMessenger:

Public Member Functions

 G4DeexParametersMessenger (G4DeexPrecoParameters *)
 
 ~G4DeexParametersMessenger () override
 
void SetNewValue (G4UIcommand *, G4String) override
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()=default
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool CommandsShouldBeInMaster () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String LtoS (G4long l)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (const G4String &s)
 
G4long StoL (const G4String &s)
 
G4double StoD (const G4String &s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Detailed Description

Definition at line 67 of file G4DeexParametersMessenger.hh.

Constructor & Destructor Documentation

◆ G4DeexParametersMessenger()

G4DeexParametersMessenger::G4DeexParametersMessenger ( G4DeexPrecoParameters * ptr)
explicit

Definition at line 61 of file G4DeexParametersMessenger.cc.

62 : theParameters(ptr)
63{
64 fDirectory = new G4UIdirectory("/process/had/deex/");
65 fDirectory->SetGuidance("Commands for nuclear de-excitation module.");
66
67 readCmd = new G4UIcmdWithABool("/process/had/deex/readICdata",this);
68 readCmd->SetGuidance("Enable/disable download IC data per atomic shell.");
69 readCmd->SetParameterName("readIC",true);
70 readCmd->SetDefaultValue(false);
72
73 icCmd = new G4UIcmdWithABool("/process/had/deex/setIC",this);
74 icCmd->SetGuidance("Enable/disable simulation of e- internal conversion.");
75 icCmd->SetParameterName("IC",true);
76 icCmd->SetDefaultValue(true);
78
79 corgCmd = new G4UIcmdWithABool("/process/had/deex/correlatedGamma",this);
80 corgCmd->SetGuidance("Enable/disable simulation of correlated gamma emission.");
81 corgCmd->SetParameterName("corrG",true);
82 corgCmd->SetDefaultValue(false);
84
85 isoCmd = new G4UIcmdWithABool("/process/had/deex/isomerProduction",this);
86 isoCmd->SetGuidance("Enable/disable simulation of long lived isomers.");
87 isoCmd->SetParameterName("corrG",true);
88 isoCmd->SetDefaultValue(false);
90
91 maxjCmd = new G4UIcmdWithAnInteger("/process/had/deex/maxTwoJ",this);
92 maxjCmd->SetGuidance("Set max value for 2J for simulation of correlated gamma emission.");
93 maxjCmd->SetParameterName("max2J",true);
94 maxjCmd->SetDefaultValue(10);
96
97 verbCmd = new G4UIcmdWithAnInteger("/process/had/deex/verbose",this);
98 verbCmd->SetGuidance("Set verbosity level.");
99 verbCmd->SetParameterName("verb",true);
100 verbCmd->SetDefaultValue(1);
102}
@ G4State_PreInit
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4int defVal)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)

◆ ~G4DeexParametersMessenger()

G4DeexParametersMessenger::~G4DeexParametersMessenger ( )
override

Definition at line 106 of file G4DeexParametersMessenger.cc.

107{
108 delete fDirectory;
109
110 delete readCmd;
111 delete icCmd;
112 delete corgCmd;
113 delete isoCmd;
114 delete maxjCmd;
115 delete verbCmd;
116}

Member Function Documentation

◆ SetNewValue()

void G4DeexParametersMessenger::SetNewValue ( G4UIcommand * command,
G4String newValue )
overridevirtual

Reimplemented from G4UImessenger.

Definition at line 120 of file G4DeexParametersMessenger.cc.

122{
123 if (command == readCmd) {
124 theParameters->SetStoreICLevelData(readCmd->GetNewBoolValue(newValue));
125 } else if (command == icCmd) {
126 theParameters->SetInternalConversionFlag(icCmd->GetNewBoolValue(newValue));
127 } else if (command == corgCmd) {
128 theParameters->SetCorrelatedGamma(corgCmd->GetNewBoolValue(newValue));
129 } else if (command == isoCmd) {
130 theParameters->SetIsomerProduction(isoCmd->GetNewBoolValue(newValue));
131 } else if (command == maxjCmd) {
132 theParameters->SetTwoJMAX(maxjCmd->GetNewIntValue(newValue));
133 } else if (command == verbCmd) {
134 theParameters->SetVerbose(verbCmd->GetNewIntValue(newValue));
135 }
136}
static G4bool GetNewBoolValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)

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