Geant4  10.03
G4DeexPrecoParameters.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 // $Id: G4DeexPrecoParameters.cc 68028 2013-03-13 13:48:15Z gcosmo $
27 //
28 // 15.03.2016 V.Ivanchenko
29 //
30 // List of parameters of the pre-compound model
31 // and the deexcitation module
32 //
33 
34 #include "G4DeexPrecoParameters.hh"
35 #include "G4ApplicationState.hh"
36 #include "G4StateManager.hh"
37 #include "G4SystemOfUnits.hh"
38 
39 #ifdef G4MULTITHREADED
40 G4Mutex G4DeexPrecoParameters::deexPrecoMutex = G4MUTEX_INITIALIZER;
41 #endif
42 
44 {
46  SetDefaults();
47 }
48 
50 {
51 #ifdef G4MULTITHREADED
52  G4MUTEXLOCK(&G4DeexPrecoParameters::deexPrecoMutex);
53 #endif
55  fR0 = 1.5*CLHEP::fermi;
57  fFermiEnergy = 35.0*CLHEP::MeV;
59  fPhenoFactor = 1.0;
63  fMinZForPreco = 3;
64  fMinAForPreco = 5;
65  fPrecoType = 3;
66  fDeexType = 3;
67  fNeverGoBack = false;
68  fUseSoftCutoff = false;
69  fUseCEM = true;
70  fUseGNASH = false;
71  fUseHETC = false;
72  fUseAngularGen = true;
73  fUseLongFiles = false;
74  fCorrelatedGamma = false;
75  fStoreAllLevels = false;
77 #ifdef G4MULTITHREADED
78  G4MUTEXUNLOCK(&G4DeexPrecoParameters::deexPrecoMutex);
79 #endif
80 }
81 
83 {
84  if(IsLocked()) { return; }
86 }
87 
89 {
90  if(IsLocked()) { return; }
91  fR0 = val;
92 }
93 
95 {
96  if(IsLocked()) { return; }
97  fTransitionsR0 = val;
98 }
99 
101 {
102  if(IsLocked()) { return; }
103  fFermiEnergy = val;
104 }
105 
107 {
108  if(IsLocked()) { return; }
109  fPrecoLowEnergy = val;
110 }
111 
113 {
114  if(IsLocked()) { return; }
115  fPhenoFactor = val;
116 }
117 
119 {
120  if(IsLocked()) { return; }
121  fMinExcitation = val;
122 }
123 
125 {
126  if(IsLocked()) { return; }
127  fMaxLifeTime = val;
128 }
129 
131 {
132  if(IsLocked()) { return; }
134 }
135 
137 {
138  if(IsLocked()) { return; }
139  fMinZForPreco = n;
140 }
141 
143 {
144  if(IsLocked()) { return; }
145  fMinAForPreco = n;
146 }
147 
149 {
150  if(IsLocked()) { return; }
151  fPrecoType = n;
152 }
153 
155 {
156  if(IsLocked()) { return; }
157  fDeexType = n;
158 }
159 
161 {
162  if(IsLocked()) { return; }
163  fNeverGoBack = val;
164 }
165 
167 {
168  if(IsLocked()) { return; }
169  fUseSoftCutoff = val;
170 }
171 
173 {
174  if(IsLocked()) { return; }
175  fUseCEM = val;
176 }
177 
179 {
180  if(IsLocked()) { return; }
181  fUseGNASH = val;
182 }
183 
185 {
186  if(IsLocked()) { return; }
187  fUseHETC = val;
188 }
189 
191 {
192  if(IsLocked()) { return; }
193  fUseAngularGen = val;
194 }
195 
197 {
198  if(IsLocked()) { return; }
199  fUseLongFiles = val;
200 }
201 
203 {
204  if(IsLocked()) { return; }
205  fCorrelatedGamma = val;
206 }
207 
209 {
210  if(IsLocked()) { return; }
211  fStoreAllLevels = val;
212 }
213 
215 {
216  if(IsLocked()) { return; }
217  fDeexChannelType = val;
218 }
219 
220 std::ostream& G4DeexPrecoParameters::StreamInfo(std::ostream& os) const
221 {
222  G4int prec = os.precision(5);
223  os << "=======================================================================" << "\n";
224  os << "====== Pre-compound/De-excitation Physics Parameters ========" << "\n";
225  os << "=======================================================================" << "\n";
226  os << "Type of pre-compound inverse x-section " << fPrecoType << "\n";
227  os << "Type of de-excitation inverse x-section " << fDeexType << "\n";
228  os << "Min excitation energy (keV) "
229  << fMinExcitation/CLHEP::keV << "\n";
230  os << "Level density (1/MeV) "
231  << fLevelDensity*CLHEP::MeV << "\n";
232  os << "Time limit for long lived isomeres (ns) "
233  << fMaxLifeTime/CLHEP::ns << "\n";
234  os << "Correlated gamma emission flag " << fCorrelatedGamma << "\n";
235  os << "=======================================================================" << "\n";
236  os.precision(prec);
237  return os;
238 }
239 
241 {
243 }
244 
245 std::ostream& operator<< (std::ostream& os, const G4DeexPrecoParameters& par)
246 {
247  return par.StreamInfo(os);
248 }
249 
251 {
252  return (!G4Threading::IsMasterThread() ||
255 }
#define G4MUTEXUNLOCK
Definition: G4Threading.hh:180
void SetDeexChannelsType(G4DeexChannelType)
static constexpr double second
Definition: G4SIunits.hh:157
int G4int
Definition: G4Types.hh:78
#define G4MUTEX_INITIALIZER
Definition: G4Threading.hh:175
static G4StateManager * GetStateManager()
static const double prec
Definition: RanecuEngine.cc:58
G4GLOB_DLL std::ostream G4cout
bool G4bool
Definition: G4Types.hh:79
std::ostream & operator<<(std::ostream &os, const G4DeexPrecoParameters &par)
#define G4MUTEXLOCK
Definition: G4Threading.hh:179
G4ApplicationState GetCurrentState() const
const G4int n
G4int G4Mutex
Definition: G4Threading.hh:173
void SetMinExPerNucleounForMF(G4double)
static constexpr double GeV
Definition: G4SIunits.hh:217
G4DeexChannelType fDeexChannelType
static constexpr double MeV
Definition: G4SIunits.hh:214
G4bool IsMasterThread()
Definition: G4Threading.cc:146
std::ostream & StreamInfo(std::ostream &os) const
double G4double
Definition: G4Types.hh:76
static constexpr double fermi
Definition: G4SIunits.hh:103
static constexpr double keV
Definition: G4SIunits.hh:216
#define ns
Definition: xmlparse.cc:614