Geant4-11
G4DeexParametersMessenger.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// -------------------------------------------------------------------
28//
29// GEANT4 Class file
30//
31// File name: G4DeexParametersMessenger
32//
33// Author: Vladimir Ivanchenko
34//
35// Creation date: 17-10-2017
36//
37// Modifications:
38//
39// -------------------------------------------------------------------
40//
41
42//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
43//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
44
46#include "G4UIdirectory.hh"
47#include "G4UIcommand.hh"
48#include "G4UIparameter.hh"
49#include "G4UIcmdWithABool.hh"
51#include "G4UIcmdWithADouble.hh"
53#include "G4UIcmdWithAString.hh"
54#include "G4UImanager.hh"
56
57#include <sstream>
58
59//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
60
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);
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);
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);
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);
96
97 verbCmd = new G4UIcmdWithAnInteger("/process/had/deex/verbose",this);
98 verbCmd->SetGuidance("Set verbosity level.");
99 verbCmd->SetParameterName("verb",true);
102}
103
104//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
105
107{
108 delete fDirectory;
109
110 delete readCmd;
111 delete icCmd;
112 delete corgCmd;
113 delete isoCmd;
114 delete maxjCmd;
115 delete verbCmd;
116}
117
118//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
119
121 G4String newValue)
122{
123 if (command == readCmd) {
125 } else if (command == icCmd) {
127 } else if (command == corgCmd) {
129 } else if (command == isoCmd) {
131 } else if (command == maxjCmd) {
133 } else if (command == verbCmd) {
135 }
136}
137
138//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@ G4State_PreInit
G4DeexParametersMessenger(G4DeexPrecoParameters *)
void SetNewValue(G4UIcommand *, G4String) override
G4DeexPrecoParameters * theParameters
static G4bool GetNewBoolValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetDefaultValue(G4int defVal)
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:156
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:288