166{
168 if (newValue == "true") bValue = true;
169
170 if (command == PhotoEvaCmd) {
173#ifdef G4VERBOSE
176 << "=== G4ParticleHPMessenger CHANGED PARAMETER UseOnlyPhotoEvaporation TO "
177 << bValue <<
" ===" <<
G4endl;
178 }
179 if (bValue) {
180 G4cout <<
" -> Forced the use of the Photon Evaporation model (instead of the neutron "
181 "capture final state data)"
183 }
184 else {
185 G4cout <<
" -> Go back to use the default neutron capture final state data !" <<
G4endl;
186 }
187#endif
188 }
189 }
190
191 if (command == SkipMissingCmd) {
194#ifdef G4VERBOSE
196 G4cout <<
G4endl <<
"=== G4ParticleHPMessenger CHANGED PARAMETER SkipMissingIsotopes TO "
197 << bValue <<
" ===" <<
G4endl;
198 }
199 if (bValue) {
201 << " -> Use only exact isotope data files, instead of allowing nearby isotope files "
202 "to be used: \n"
203 << " if the exact file is not available, the cross section will be set to zero !"
205 }
206 else {
207 G4cout <<
" -> Go back to the default, i.e. use nearby isotope files when the exact "
208 "isotope data files are not found !"
210 }
211#endif
212 }
213 }
214
215 if (command == NeglectDopplerCmd) {
218#ifdef G4VERBOSE
220 G4cout <<
G4endl <<
"=== G4ParticleHPMessenger CHANGED PARAMETER NeglectDoppler TO "
221 << bValue <<
" ===" <<
G4endl;
222 }
223 if (bValue) {
224 G4cout <<
" -> Switched off the Doppler broadening due to the thermal motion of the "
225 "target nucleus: \n"
226 << " on-the-fly Doppler broadening will be neglected in the cross section "
227 "calculations of \n"
228 << " capture, elastic, fission and inelastic reactions/scatterings of "
229 "neutrons below 20 MeV.\n"
230 <<
" This option provides a significant CPU performance advantage !" <<
G4endl;
231 }
232 else {
234 << " -> Go back to the default, i.e. switch on the Doppler broadening on-the-fly !"
236 }
237#endif
238 }
239 }
240
241 if (command == DoNotAdjustFSCmd) {
244#ifdef G4VERBOSE
246 G4cout <<
G4endl <<
"=== G4ParticleHPMessenger CHANGED PARAMETER DoNotAdjustFinalState TO "
247 << bValue <<
" ===" <<
G4endl;
248 }
249 if (bValue) {
251 << " -> Disabled the adjustment of the final state for getting better conservation !"
253 }
254 else {
255 G4cout <<
" -> Go back to the default, i.e. adjust the final state to get better "
256 "conservation !"
258 }
259#endif
260 }
261 }
262
263 if (command == ProduceFissionFragementCmd) {
266#ifdef G4VERBOSE
269 << "=== G4ParticleHPMessenger CHANGED PARAMETER ProduceFissionFragments TO "
270 << bValue <<
" ===" <<
G4endl;
271 }
272 if (bValue) {
273 G4cout <<
" -> Enabled the generation of fission fragments !" <<
G4endl;
274 }
275 else {
276 G4cout <<
" -> Go back to the default, i.e. do not generate fission fragments !"
278 }
279#endif
280 }
281 }
282
283 if (command == WendtFissionModelCmd) {
286
288#ifdef G4VERBOSE
290 G4cout <<
G4endl <<
"=== G4ParticleHPMessenger CHANGED PARAMETER UseWendtFissionModel TO "
291 << bValue <<
" ===" <<
G4endl;
292 }
293 if (bValue) {
294 G4cout <<
" -> Enabled the use of Wendt fission model !" <<
G4endl;
295 }
296 else {
297 G4cout <<
" -> Go back to the default, i.e. do not use the Wendt fission model !"
299 }
300#endif
301 }
302 }
303
304 if (command == NRESP71Cmd) {
307#ifdef G4VERBOSE
309 G4cout <<
G4endl <<
"=== G4ParticleHPMessenger CHANGED PARAMETER UseNRESP71Model TO "
310 << bValue <<
" ===" <<
G4endl;
311 }
312 if (bValue) {
313 G4cout <<
" -> Enabled the use of NRESP71 model for n on C reaction !" <<
G4endl;
314 }
315 else {
316 G4cout <<
" -> Go back to the default, i.e. do not use the NRESP71 model !" <<
G4endl;
317 }
318#endif
319 }
320 }
321
322 if (command == VerboseCmd) {
326#ifdef G4VERBOSE
328 G4cout <<
G4endl <<
"=== G4ParticleHPMessenger CHANGED PARAMETER VerboseLevel TO "
329 << verboseLevel <<
" ===" <<
G4endl;
330 }
331#endif
332 }
333 }
334
335 if (command == UseDBRCCmd) {
339#ifdef G4VERBOSE
341 G4cout <<
G4endl <<
"=== G4ParticleHPMessenger CHANGED PARAMETER UseDBRC TO " << bValue
343 }
344 if (bValue) {
346 }
347 else {
348 G4cout <<
" -> Do not use the DBRC algorithm!" <<
G4endl;
349 }
350#endif
351 }
352 }
353
354 if (command == MaxEnergySVTCmd) {
358#ifdef G4VERBOSE
361 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER for SVT algorithm ===" <<
G4endl;
363 }
364#endif
365 }
366 }
367
368 if (command == MinADBRCCmd) {
372#ifdef G4VERBOSE
375 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER for DBRC algorithm ===" <<
G4endl;
377 }
378#endif
379 }
380 }
381
382 if (command == MinEnergyDBRCCmd) {
386#ifdef G4VERBOSE
389 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER for DBRC algorithm ===" <<
G4endl;
391 }
392#endif
393 }
394 }
395
396 if (command == MaxEnergyDBRCCmd) {
400#ifdef G4VERBOSE
403 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER for SVT algorithm ===" <<
G4endl;
405 }
406#endif
407 }
408 }
409}
G4GLOB_DLL std::ostream G4cout
static G4HadronicParameters * Instance()
void SetNeutronKineticEnergyThresholdForSVT(const G4double val)
void SetUseNRESP71Model(G4bool val)
G4bool GetUseDBRC() const
void SetMinADBRC(G4double val)
void SetNeglectDoppler(G4bool val)
G4bool GetProduceFissionFragments() const
void SetMinEnergyDBRC(G4double val)
G4bool GetUseOnlyPhotoEvaporation() const
void SetProduceFissionFragments(G4bool val)
void SetSkipMissingIsotopes(G4bool val)
G4int GetVerboseLevel() const
void SetDoNotAdjustFinalState(G4bool val)
G4bool GetUseWendtFissionModel() const
G4double GetMinEnergyDBRC() const
void SetVerboseLevel(G4int i)
G4double GetMinADBRC() const
G4bool GetUseNRESP71Model() const
G4bool GetSkipMissingIsotopes() const
void SetUseDBRC(G4bool val)
void SetUseWendtFissionModel(G4bool val)
G4bool GetNeglectDoppler() const
void SetMaxEnergyDBRC(G4double val)
void SetUseOnlyPhotoEvaporation(G4bool val)
G4double GetMaxEnergyDBRC() const
G4bool GetDoNotAdjustFinalState() const
static G4bool GetNewBoolValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
static G4int ConvertToInt(const char *st)