37 ParticleHPDir =
new G4UIdirectory(
"/process/had/particle_hp/" );
38 ParticleHPDir->
SetGuidance(
"UI commands of ParticleHP" );
40 PhotoEvaCmd =
new G4UIcmdWithAString(
"/process/had/particle_hp/use_photo_evaporation",
this);
41 PhotoEvaCmd->
SetGuidance(
" Force the use of the Photon Evaporation model, instead of the neutron capture final state data.");
46 SkipMissingCmd =
new G4UIcmdWithAString(
"/process/had/particle_hp/skip_missing_isotopes",
this);
47 SkipMissingCmd->
SetGuidance(
"Use only exact isotope data files, instead of allowing nearby isotope files to be used.");
48 SkipMissingCmd->
SetGuidance(
"In this case if the exact file is not available, the cross section will be set to zero.");
53 NeglectDopplerCmd =
new G4UIcmdWithAString(
"/process/had/particle_hp/neglect_Doppler_broadening",
this);
54 NeglectDopplerCmd->
SetGuidance(
"Switch off the Doppler broadening due to the thermal motion of the target nucleus.");
55 NeglectDopplerCmd->
SetGuidance(
"This option provides a significant CPU performance advantage.");
60 DoNotAdjustFSCmd =
new G4UIcmdWithAString(
"/process/had/particle_hp/do_not_adjust_final_state",
this);
61 DoNotAdjustFSCmd->
SetGuidance(
"Disable to adjust final state for getting better conservation.");
66 ProduceFissionFragementCmd =
new G4UIcmdWithAString(
"/process/had/particle_hp/produce_fission_fragment",
this);
67 ProduceFissionFragementCmd->
SetGuidance(
"Enable to generate fission fragments.");
72 WendtFissionModelCmd =
new G4UIcmdWithAString(
"/process/had/particle_hp/use_Wendt_fission_model",
this);
73 WendtFissionModelCmd->
SetGuidance(
"Enable use of Wendt fission model.");
78 NRESP71Cmd =
new G4UIcmdWithAString(
"/process/had/particle_hp/use_NRESP71_model",
this);
79 NRESP71Cmd->
SetGuidance(
"Enable to use NRESP71 model for n on C reaction");
85 VerboseCmd->
SetGuidance(
"Set Verbose level of ParticleHP package");
88 VerboseCmd->
SetRange(
"verbose_level >=0");
96 delete SkipMissingCmd;
97 delete NeglectDopplerCmd;
98 delete DoNotAdjustFSCmd;
99 delete ProduceFissionFragementCmd;
100 delete WendtFissionModelCmd;
108 if ( newValue ==
"true" ) bValue =
true;
110 if ( command == PhotoEvaCmd ) {
116 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER UseOnlyPhotoEvaporation TO "
117 << bValue <<
" ===" <<
G4endl;
120 G4cout <<
" -> Forced the use of the Photon Evaporation model (instead of the neutron capture final state data)"
123 G4cout <<
" -> Go back to use the default neutron capture final state data !" <<
G4endl;
129 if ( command == SkipMissingCmd) {
135 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER SkipMissingIsotopes TO "
136 << bValue <<
" ===" <<
G4endl;
139 G4cout <<
" -> Use only exact isotope data files, instead of allowing nearby isotope files to be used: \n"
140 <<
" if the exact file is not available, the cross section will be set to zero !"
143 G4cout <<
" -> Go back to the default, i.e. use nearby isotope files when the exact isotope data files are not found !"
150 if ( command == NeglectDopplerCmd ) {
156 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER NeglectDoppler TO "
157 << bValue <<
" ===" <<
G4endl;
160 G4cout <<
" -> Switched off the Doppler broadening due to the thermal motion of the target nucleus: \n"
161 <<
" on-the-fly Doppler broadening will be neglected in the cross section calculations of \n"
162 <<
" capture, elastic, fission and inelastic reactions/scatterings of neutrons below 20 MeV.\n"
163 <<
" This option provides a significant CPU performance advantage !"
166 G4cout <<
" -> Go back to the default, i.e. switch on the Doppler broadening on-the-fly !" <<
G4endl;
172 if ( command == DoNotAdjustFSCmd ) {
178 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER DoNotAdjustFinalState TO "
179 << bValue <<
" ===" <<
G4endl;
182 G4cout <<
" -> Disabled the adjustment of the final state for getting better conservation !"
185 G4cout <<
" -> Go back to the default, i.e. adjust the final state to get better conservation !"
192 if ( command == ProduceFissionFragementCmd ) {
198 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER ProduceFissionFragments TO "
199 << bValue <<
" ===" <<
G4endl;
202 G4cout <<
" -> Enabled the generation of fission fragments !"
205 G4cout <<
" -> Go back to the default, i.e. do not generate fission fragments !" <<
G4endl;
211 if ( command == WendtFissionModelCmd ) {
219 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER UseWendtFissionModel TO "
220 << bValue <<
" ===" <<
G4endl;
223 G4cout <<
" -> Enabled the use of Wendt fission model !" <<
G4endl;
225 G4cout <<
" -> Go back to the default, i.e. do not use the Wendt fission model !" <<
G4endl;
231 if ( command == NRESP71Cmd ) {
237 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER UseNRESP71Model TO "
238 << bValue <<
" ===" <<
G4endl;
241 G4cout <<
" -> Enabled the use of NRESP71 model for n on C reaction !" <<
G4endl;
243 G4cout <<
" -> Go back to the default, i.e. do not use the NRESP71 model !" <<
G4endl;
249 if ( command == VerboseCmd ) {
256 <<
"=== G4ParticleHPMessenger CHANGED PARAMETER VerboseLevel TO "
257 << verboseLevel <<
" ===" <<
G4endl;
G4GLOB_DLL std::ostream G4cout
static G4HadronicParameters * Instance()
G4bool GetNeglectDoppler()
void SetUseNRESP71Model(G4bool val)
G4bool GetUseOnlyPhotoEvaporation()
G4bool GetSkipMissingIsotopes()
void SetNeglectDoppler(G4bool val)
G4bool GetUseNRESP71Model()
void SetProduceFissionFragments(G4bool val)
void SetSkipMissingIsotopes(G4bool val)
void SetDoNotAdjustFinalState(G4bool val)
void SetVerboseLevel(G4int i)
G4bool GetUseWendtFissionModel()
G4bool GetProduceFissionFragments()
G4bool GetDoNotAdjustFinalState()
void SetUseWendtFissionModel(G4bool val)
void SetUseOnlyPhotoEvaporation(G4bool val)
void SetNewValue(G4UIcommand *, G4String)
G4ParticleHPMessenger(G4ParticleHPManager *)
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4int defVal)
void SetGuidance(const char *aGuidance)
static G4int ConvertToInt(const char *st)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)