35#define INCLXX_IN_GEANT4_MODE 1
49const G4String G4INCLXXInterfaceMessenger::theUIDirectory =
"/process/had/inclxx/";
52 theINCLXXInterfaceStore(anInterfaceStore)
56 theINCLXXDirectory->
SetGuidance(
"Parameters for the INCL++ model");
60 accurateNucleusCmd =
new G4UIcmdWithAString((theUIDirectory +
"accurateNucleus").data(),
this);
61 accurateNucleusCmd->
SetGuidance(
"Set which nucleus will be accurately described in nucleus-nucleus reactions.");
62 accurateNucleusCmd->
SetGuidance(
" projectile: accurate description of projectile-related quantities");
63 accurateNucleusCmd->
SetGuidance(
" target: accurate description of target-related quantities");
64 accurateNucleusCmd->
SetGuidance(
" Default: projectile");
71 maxClusterMassCmd->
SetGuidance(
"Set the maximum cluster mass.");
72 maxClusterMassCmd->
SetGuidance(
" The INCL++ cascade stage will produce clusters with mass up to the value of this parameter (included)");
73 maxClusterMassCmd->
SetGuidance(
" Allowed range: [2,12]");
76 maxClusterMassCmd->
SetRange(
"MaxClusterMass>=2 && MaxClusterMass<=12");
81 delete theINCLXXDirectory;
82 delete accurateNucleusCmd;
83 delete maxClusterMassCmd;
87 if(command==accurateNucleusCmd) {
89 if(newValues==
"projectile") {
91 }
else if(newValues==
"target") {
94 }
else if(command==maxClusterMassCmd) {
Messenger class for the Geant4 INCL++ interface.
G4INCLXXInterfaceMessenger(G4INCLXXInterfaceStore *anInterfaceStore)
~G4INCLXXInterfaceMessenger()
void SetNewValue(G4UIcommand *command, G4String newValues)
Singleton class for configuring the INCL++ Geant4 interface.
void SetAccurateProjectile(const G4bool b)
Setter for accurateProjectile.
void SetMaxClusterMass(const G4int aMass)
Setter for theMaxClusterMass.
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *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)
void SetRange(const char *rs)