ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4DeexParametersMessenger.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4DeexParametersMessenger.cc
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
45
#include "
G4DeexParametersMessenger.hh
"
46
#include "
G4UIdirectory.hh
"
47
#include "
G4UIcommand.hh
"
48
#include "
G4UIparameter.hh
"
49
#include "
G4UIcmdWithABool.hh
"
50
#include "
G4UIcmdWithAnInteger.hh
"
51
#include "
G4UIcmdWithADouble.hh
"
52
#include "
G4UIcmdWithADoubleAndUnit.hh
"
53
#include "
G4UIcmdWithAString.hh
"
54
#include "
G4UImanager.hh
"
55
#include "
G4DeexPrecoParameters.hh
"
56
57
#include <sstream>
58
59
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
60
61
G4DeexParametersMessenger::G4DeexParametersMessenger
(
G4DeexPrecoParameters
* ptr)
62
: theParameters(ptr)
63
{
64
fDirectory
=
new
G4UIdirectory
(
"/process/deex/"
);
65
fDirectory
->
SetGuidance
(
"Commands for nuclear de-excitation module."
);
66
67
readCmd
=
new
G4UIcmdWithABool
(
"/process/deex/readICdata"
,
this
);
68
readCmd
->
SetGuidance
(
"Enable/disable download IC data per atomic shell."
);
69
readCmd
->
SetParameterName
(
"readIC"
,
true
);
70
readCmd
->
SetDefaultValue
(
false
);
71
readCmd
->
AvailableForStates
(
G4State_PreInit
);
72
73
icCmd
=
new
G4UIcmdWithABool
(
"/process/deex/setIC"
,
this
);
74
icCmd
->
SetGuidance
(
"Enable/disable simulation of e- internal conversion."
);
75
icCmd
->
SetParameterName
(
"IC"
,
true
);
76
icCmd
->
SetDefaultValue
(
true
);
77
icCmd
->
AvailableForStates
(
G4State_PreInit
);
78
79
corgCmd
=
new
G4UIcmdWithABool
(
"/process/deex/correlatedGamma"
,
this
);
80
corgCmd
->
SetGuidance
(
"Enable/disable simulation of correlated gamma emission."
);
81
corgCmd
->
SetParameterName
(
"corrG"
,
true
);
82
corgCmd
->
SetDefaultValue
(
false
);
83
corgCmd
->
AvailableForStates
(
G4State_PreInit
);
84
85
maxjCmd
=
new
G4UIcmdWithAnInteger
(
"/process/deex/maxTwoJ"
,
this
);
86
maxjCmd
->
SetGuidance
(
"Set max value for 2J for simulation of correlated gamma emission."
);
87
maxjCmd
->
SetParameterName
(
"max2J"
,
true
);
88
maxjCmd
->
SetDefaultValue
(10);
89
maxjCmd
->
AvailableForStates
(
G4State_PreInit
);
90
91
upCmd
=
new
G4UIcmdWithAnInteger
(
"/process/deex/uploadZ"
,
this
);
92
upCmd
->
SetGuidance
(
"Set max value for Z to be uploaded before 1st event"
);
93
upCmd
->
SetParameterName
(
"uploadZ"
,
true
);
94
upCmd
->
SetDefaultValue
(30);
95
upCmd
->
AvailableForStates
(
G4State_PreInit
);
96
97
verbCmd
=
new
G4UIcmdWithAnInteger
(
"/process/deex/verbose"
,
this
);
98
verbCmd
->
SetGuidance
(
"Set verbosity level."
);
99
verbCmd
->
SetParameterName
(
"verb"
,
true
);
100
verbCmd
->
SetDefaultValue
(1);
101
verbCmd
->
AvailableForStates
(
G4State_PreInit
);
102
}
103
104
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
105
106
G4DeexParametersMessenger::~G4DeexParametersMessenger
()
107
{
108
delete
fDirectory
;
109
110
delete
readCmd
;
111
delete
icCmd
;
112
delete
corgCmd
;
113
delete
maxjCmd
;
114
delete
upCmd
;
115
delete
verbCmd
;
116
}
117
118
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
119
120
void
G4DeexParametersMessenger::SetNewValue
(
G4UIcommand
* command,
121
G4String
newValue)
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 ==
maxjCmd
) {
130
theParameters
->
SetTwoJMAX
(
maxjCmd
->
GetNewIntValue
(newValue));
131
}
else
if
(command ==
upCmd
) {
132
theParameters
->
SetUploadZ
(
maxjCmd
->
GetNewIntValue
(newValue));
133
}
else
if
(command ==
verbCmd
) {
134
theParameters
->
SetVerbose
(
verbCmd
->
GetNewIntValue
(newValue));
135
}
136
}
137
138
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
geant4
tree
geant4-10.6-release
source
processes
hadronic
models
de_excitation
management
src
G4DeexParametersMessenger.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:42
using
1.8.2 with
ECCE GitHub integration