Geant4-11
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
G4CascadeParamMessenger Class Reference

#include <G4CascadeParamMessenger.hh>

Inheritance diagram for G4CascadeParamMessenger:
G4UImessenger

Public Member Functions

G4bool CommandsShouldBeInMaster () const
 
 G4CascadeParamMessenger (G4CascadeParameters *params)
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool operator== (const G4UImessenger &messenger) const
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
virtual ~G4CascadeParamMessenger ()
 

Protected Member Functions

void AddUIcommand (G4UIcommand *newCommand)
 
G4String BtoS (G4bool b)
 
template<class T >
T * CreateCommand (const G4String &cmd, const G4String &desc)
 
void CreateDirectory (const char *path, const char *desc)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
G4String DtoS (G4double a)
 
G4String ItoS (G4int i)
 
G4bool StoB (G4String s)
 
G4double StoD (G4String s)
 
G4int StoI (G4String s)
 
G4long StoL (G4String s)
 

Protected Attributes

G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Private Attributes

G4UIcmdWithABoolbalanceCmd
 
G4UIdirectorycmdDir
 
G4UIcmdWithADoublecoalDPmax2Cmd
 
G4UIcmdWithADoublecoalDPmax3Cmd
 
G4UIcmdWithADoublecoalDPmax4Cmd
 
G4UIcmdWithABooldoCoalCmd
 
G4UIcmdWithABoolhistoryCmd
 
G4bool localCmdDir
 
G4UIcmdWithADoublenucFermiScaleCmd
 
G4UIcmdWithADoublenucGammaQDCmd
 
G4UIcmdWithADoublenucRad2parCmd
 
G4UIcmdWithADoublenucRadAlphaCmd
 
G4UIcmdWithADoublenucRadScaleCmd
 
G4UIcmdWithADoublenucRadSmallCmd
 
G4UIcmdWithADoublenucRadTrailingCmd
 
G4UIcmdWithABoolnucUseBestCmd
 
G4UIcmdWithADoublenucXsecScaleCmd
 
G4UIcmdWithADoublepiNAbsCmd
 
G4UIcmdWithAStringrandomFileCmd
 
G4UIcmdWithoutParameterreportCmd
 
G4CascadeParameterstheParams
 
G4UIcmdWithABooluse3BodyCmd
 
G4UIcmdWithABoolusePreCoCmd
 
G4UIcmdWithABoolusePSCmd
 
G4UIcmdWithAnIntegerverboseCmd
 

Detailed Description

Definition at line 51 of file G4CascadeParamMessenger.hh.

Constructor & Destructor Documentation

◆ G4CascadeParamMessenger()

G4CascadeParamMessenger::G4CascadeParamMessenger ( G4CascadeParameters params)

Definition at line 51 of file G4CascadeParamMessenger.cc.

52 : G4UImessenger(), theParams(params), cmdDir(0), localCmdDir(false) {
53 // NOTE: Put under same top-level tree as EM
54 CreateDirectory("/process/had/","Hadronic processes"); cmdDir=0;
55 CreateDirectory("/process/had/cascade/","Bertini-esque cascade parameters");
56
57 verboseCmd = CreateCommand<G4UIcmdWithAnInteger>("verbose",
58 "Enable information messages");
59 balanceCmd = CreateCommand<G4UIcmdWithABool>("checkBalance",
60 "Enable internal conservation checking");
61 reportCmd = CreateCommand<G4UIcmdWithoutParameter>("report",
62 "Dump all non-default parameter settings");
63 usePreCoCmd = CreateCommand<G4UIcmdWithABool>("usePreCompound",
64 "Use PreCompoundModel for nuclear de-excitation");
65 doCoalCmd = CreateCommand<G4UIcmdWithABool>("doCoalescence",
66 "Apply final-state nucleon clustering");
67 piNAbsCmd = CreateCommand<G4UIcmdWithADouble>("piNAbsorption",
68 "Probability for pion absorption on single nucleon");
69 historyCmd = CreateCommand<G4UIcmdWithABool>("showHistory",
70 "Collect and report full structure of cascade");
71 use3BodyCmd = CreateCommand<G4UIcmdWithABool>("use3BodyMom",
72 "Use three-body momentum parametrizations");
73 usePSCmd = CreateCommand<G4UIcmdWithABool>("usePhaseSpace",
74 "Use Kopylov N-body momentum generator");
75 randomFileCmd = CreateCommand<G4UIcmdWithAString>("randomFile",
76 "Save random-engine to file at each interaction");
77 nucUseBestCmd = CreateCommand<G4UIcmdWithABool>("useBestNuclearModel",
78 "Use all physical-units for nuclear structure");
79 nucRad2parCmd = CreateCommand<G4UIcmdWithADouble>("useTwoParamNuclearRadius",
80 "Use R = C1*cbrt(A) + C2/cbrt(A)");
81 nucRadScaleCmd = CreateCommand<G4UIcmdWithADouble>("nuclearRadiusScale",
82 "Set length scale for nuclear model");
83 nucRadSmallCmd = CreateCommand<G4UIcmdWithADouble>("smallNucleusRadius",
84 "Set radius of A<4 nuclei");
85 nucRadAlphaCmd = CreateCommand<G4UIcmdWithADouble>("alphaRadiusScale",
86 "Fraction of small-radius for He-4");
87 nucRadTrailingCmd = CreateCommand<G4UIcmdWithADouble>("shadowningRadius",
88 "Effective nucleon radius for trailing effect");
89 nucFermiScaleCmd = CreateCommand<G4UIcmdWithADouble>("fermiScale",
90 "Scale factor for fermi momentum");
91 nucXsecScaleCmd = CreateCommand<G4UIcmdWithADouble>("crossSectionScale",
92 "Scale fator for total cross-sections");
93 nucGammaQDCmd = CreateCommand<G4UIcmdWithADouble>("gammaQuasiDeutScale",
94 "Scale factor for gamma-quasideutron cross-sections");
95 coalDPmax2Cmd = CreateCommand<G4UIcmdWithADouble>("cluster2DPmax",
96 "Maximum momentum for p-n clusters");
97 coalDPmax3Cmd = CreateCommand<G4UIcmdWithADouble>("cluster3DPmax",
98 "Maximum momentum for ppn/pnn clusters");
99 coalDPmax4Cmd = CreateCommand<G4UIcmdWithADouble>("cluster4DPmax",
100 "Maximum momentum for alpha clusters");
101}
G4UIcmdWithADouble * nucRadScaleCmd
G4UIcmdWithADouble * piNAbsCmd
G4UIcmdWithAString * randomFileCmd
G4UIcmdWithADouble * nucRadAlphaCmd
G4UIcmdWithADouble * nucRad2parCmd
G4UIcmdWithoutParameter * reportCmd
G4UIcmdWithADouble * nucRadTrailingCmd
G4UIcmdWithADouble * nucFermiScaleCmd
G4CascadeParameters * theParams
G4UIcmdWithADouble * nucXsecScaleCmd
G4UIcmdWithADouble * nucGammaQDCmd
G4UIcmdWithADouble * coalDPmax3Cmd
G4UIcmdWithADouble * nucRadSmallCmd
G4UIcmdWithADouble * coalDPmax2Cmd
void CreateDirectory(const char *path, const char *desc)
G4UIcmdWithADouble * coalDPmax4Cmd
G4UIcmdWithAnInteger * verboseCmd

References balanceCmd, cmdDir, coalDPmax2Cmd, coalDPmax3Cmd, coalDPmax4Cmd, CreateDirectory(), doCoalCmd, historyCmd, nucFermiScaleCmd, nucGammaQDCmd, nucRad2parCmd, nucRadAlphaCmd, nucRadScaleCmd, nucRadSmallCmd, nucRadTrailingCmd, nucUseBestCmd, nucXsecScaleCmd, piNAbsCmd, randomFileCmd, reportCmd, use3BodyCmd, usePreCoCmd, usePSCmd, and verboseCmd.

◆ ~G4CascadeParamMessenger()

G4CascadeParamMessenger::~G4CascadeParamMessenger ( )
virtual

Definition at line 103 of file G4CascadeParamMessenger.cc.

103 {
104 delete verboseCmd;
105 delete balanceCmd;
106 delete reportCmd;
107 delete usePreCoCmd;
108 delete doCoalCmd;
109 delete piNAbsCmd;
110 delete historyCmd;
111 delete use3BodyCmd;
112 delete usePSCmd;
113 delete randomFileCmd;
114 delete nucUseBestCmd;
115 delete nucRad2parCmd;
116 delete nucRadScaleCmd;
117 delete nucRadSmallCmd;
118 delete nucRadAlphaCmd;
119 delete nucRadTrailingCmd;
120 delete nucFermiScaleCmd;
121 delete nucXsecScaleCmd;
122 delete nucGammaQDCmd;
123 delete coalDPmax2Cmd;
124 delete coalDPmax3Cmd;
125 delete coalDPmax4Cmd;
126 if (localCmdDir) delete cmdDir;
127}

References balanceCmd, cmdDir, coalDPmax2Cmd, coalDPmax3Cmd, coalDPmax4Cmd, doCoalCmd, historyCmd, localCmdDir, nucFermiScaleCmd, nucGammaQDCmd, nucRad2parCmd, nucRadAlphaCmd, nucRadScaleCmd, nucRadSmallCmd, nucRadTrailingCmd, nucUseBestCmd, nucXsecScaleCmd, piNAbsCmd, randomFileCmd, reportCmd, use3BodyCmd, usePreCoCmd, usePSCmd, and verboseCmd.

Member Function Documentation

◆ AddUIcommand()

void G4UImessenger::AddUIcommand ( G4UIcommand newCommand)
protectedinherited

Definition at line 149 of file G4UImessenger.cc.

150{
151 G4cerr << "Warning : Old style definition of G4UIcommand <"
152 << newCommand->GetCommandPath() << ">." << G4endl;
153}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
const G4String & GetCommandPath() const
Definition: G4UIcommand.hh:136

References G4cerr, G4endl, and G4UIcommand::GetCommandPath().

◆ BtoS()

G4String G4UImessenger::BtoS ( G4bool  b)
protectedinherited

Definition at line 98 of file G4UImessenger.cc.

99{
100 G4String vl = "0";
101 if(b)
102 vl = "true";
103 return vl;
104}

◆ CommandsShouldBeInMaster()

G4bool G4UImessenger::CommandsShouldBeInMaster ( ) const
inlineinherited

Definition at line 77 of file G4UImessenger.hh.

78 {
80 }
G4bool commandsShouldBeInMaster

References G4UImessenger::commandsShouldBeInMaster.

Referenced by G4UIcommand::G4UIcommandCommonConstructorCode().

◆ CreateCommand()

template<class T >
T * G4CascadeParamMessenger::CreateCommand ( const G4String cmd,
const G4String desc 
)
protected

◆ CreateDirectory() [1/2]

void G4CascadeParamMessenger::CreateDirectory ( const char *  path,
const char *  desc 
)
protected

Definition at line 132 of file G4CascadeParamMessenger.cc.

133 {
135 if (!UIman) return;
136
137 // Directory path must be absolute, prepend "/" if ncessary
138 G4String fullPath = path;
139 if (fullPath[0] != '/') fullPath.insert(0, "/");
140 if (fullPath.back() != '/') fullPath.append("/");
141
142 // See if input path has already been registered
143 G4UIcommand* foundPath = UIman->GetTree()->FindPath(fullPath);
144 if (foundPath) cmdDir = dynamic_cast<G4UIdirectory*>(foundPath);
145
146 if (!cmdDir) { // Create local deletable directory
147 localCmdDir = true;
148 cmdDir = new G4UIdirectory(fullPath.c_str());
149 cmdDir->SetGuidance(desc);
150 }
151}
G4UIcommand * FindPath(const char *commandPath) const
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:156
G4UIcommandTree * GetTree() const
Definition: G4UImanager.hh:186
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:77

References cmdDir, G4UIcommandTree::FindPath(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), localCmdDir, and G4UIcommand::SetGuidance().

Referenced by G4CascadeParamMessenger().

◆ CreateDirectory() [2/2]

void G4UImessenger::CreateDirectory ( const G4String path,
const G4String dsc,
G4bool  commandsToBeBroadcasted = true 
)
protectedinherited

Definition at line 156 of file G4UImessenger.cc.

158{
160
161 G4String fullpath = path;
162 if(fullpath.back() != '/')
163 fullpath.append("/");
164
165 G4UIcommandTree* tree = ui->GetTree()->FindCommandTree(fullpath.c_str());
166 if(tree != nullptr)
167 {
168 baseDirName = tree->GetPathName();
169 }
170 else
171 {
172 baseDir = new G4UIdirectory(fullpath.c_str(), commandsToBeBroadcasted);
173 baseDirName = fullpath;
174 baseDir->SetGuidance(dsc.c_str());
175 }
176}
const G4String & GetPathName() const
G4UIcommandTree * FindCommandTree(const char *commandPath)
G4String baseDirName
G4UIdirectory * baseDir

References G4UImessenger::baseDir, G4UImessenger::baseDirName, G4UIcommandTree::FindCommandTree(), G4UIcommandTree::GetPathName(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), and G4UIcommand::SetGuidance().

Referenced by G4MoleculeShootMessenger::G4MoleculeShootMessenger(), and G4UImessenger::G4UImessenger().

◆ DtoS()

G4String G4UImessenger::DtoS ( G4double  a)
protectedinherited

Definition at line 90 of file G4UImessenger.cc.

91{
92 std::ostringstream os;
93 os << a;
94 return G4String(os.str());
95}

Referenced by G4ScoreQuantityMessenger::FilterCommands(), and G4UIcontrolMessenger::SetNewValue().

◆ GetCurrentValue()

G4String G4UImessenger::GetCurrentValue ( G4UIcommand command)
virtualinherited

Reimplemented in G4ScoreQuantityMessenger, G4VisCommandModelCreate< Factory >, G4VisCommandListManagerList< Manager >, G4VisCommandListManagerSelect< Manager >, G4VisCommandManagerMode< Manager >, G4ToolsAnalysisMessenger, G4ScoringMessenger, G4EvManMessenger, G4GeneralParticleSourceMessenger, G4ParticleGunMessenger, G4GeometryMessenger, G4GenericMessenger, G4UIcontrolMessenger, GFlashShowerModelMessenger, G4DecayTableMessenger, G4ParticleMessenger, G4ParticlePropertyMessenger, G4tgrMessenger, G4PersistencyCenterMessenger, G4ProductionCutsTableMessenger, G4SchedulerMessenger, G4VITSteppingVerbose, G4MoleculeShootMessenger, G4MoleculeGunMessenger, G4ProcessManagerMessenger, G4ProcessTableMessenger, G4MatScanMessenger, G4RunMessenger, G4UserPhysicsListMessenger, G4TrackingMessenger, G4GMocrenMessenger, G4HepRepMessenger, G4VisCommandAbortReviewKeptEvents, G4VisCommandDrawOnlyToBeKeptEvents, G4VisCommandEnable, G4VisCommandList, G4VisCommandReviewKeptEvents, G4VisCommandVerbose, G4VisCommandGeometryList, G4VisCommandGeometryRestore, G4VisCommandGeometrySetColour, G4VisCommandGeometrySetDaughtersInvisible, G4VisCommandGeometrySetForceAuxEdgeVisible, G4VisCommandGeometrySetForceCloud, G4VisCommandGeometrySetForceSolid, G4VisCommandGeometrySetForceLineSegmentsPerCircle, G4VisCommandGeometrySetForceWireframe, G4VisCommandGeometrySetLineStyle, G4VisCommandGeometrySetLineWidth, G4VisCommandGeometrySetVisibility, G4VisCommandSceneActivateModel, G4VisCommandSceneCreate, G4VisCommandSceneEndOfEventAction, G4VisCommandSceneEndOfRunAction, G4VisCommandSceneList, G4VisCommandSceneNotifyHandlers, G4VisCommandSceneRemoveModel, G4VisCommandSceneSelect, G4VisCommandSceneShowExtents, G4VisCommandSceneAddArrow, G4VisCommandSceneAddArrow2D, G4VisCommandSceneAddAxes, G4VisCommandSceneAddDate, G4VisCommandSceneAddDigis, G4VisCommandSceneAddEventID, G4VisCommandSceneAddExtent, G4VisCommandSceneAddElectricField, G4VisCommandSceneAddFrame, G4VisCommandSceneAddGPS, G4VisCommandSceneAddGhosts, G4VisCommandSceneAddHits, G4VisCommandSceneAddLine, G4VisCommandSceneAddLine2D, G4VisCommandSceneAddLocalAxes, G4VisCommandSceneAddLogicalVolume, G4VisCommandSceneAddLogo, G4VisCommandSceneAddLogo2D, G4VisCommandSceneAddMagneticField, G4VisCommandSceneAddPSHits, G4VisCommandSceneAddScale, G4VisCommandSceneAddText, G4VisCommandSceneAddText2D, G4VisCommandSceneAddTrajectories, G4VisCommandSceneAddUserAction, G4VisCommandSceneAddVolume, G4VisCommandSceneAddPlotter, G4VisCommandSceneHandlerAttach, G4VisCommandSceneHandlerCreate, G4VisCommandSceneHandlerList, G4VisCommandSceneHandlerSelect, G4VisCommandSetArrow3DLineSegmentsPerCircle, G4VisCommandSetColour, G4VisCommandSetExtentForField, G4VisCommandSetLineWidth, G4VisCommandSetTextColour, G4VisCommandSetTextLayout, G4VisCommandSetTextSize, G4VisCommandSetTouchable, G4VisCommandSetVolumeForField, G4VisCommandsTouchable, G4VisCommandsTouchableSet, G4VisCommandViewerAddCutawayPlane, G4VisCommandViewerCentreOn, G4VisCommandViewerChangeCutawayPlane, G4VisCommandViewerClear, G4VisCommandViewerClearCutawayPlanes, G4VisCommandViewerClearTransients, G4VisCommandViewerClearVisAttributesModifiers, G4VisCommandViewerClone, G4VisCommandViewerColourByDensity, G4VisCommandViewerCopyViewFrom, G4VisCommandViewerCreate, G4VisCommandViewerDolly, G4VisCommandViewerFlush, G4VisCommandViewerInterpolate, G4VisCommandViewerList, G4VisCommandViewerPan, G4VisCommandViewerReset, G4VisCommandViewerRefresh, G4VisCommandViewerRebuild, G4VisCommandViewerSave, G4VisCommandViewerScale, G4VisCommandViewerSelect, G4VisCommandViewerUpdate, G4VisCommandViewerZoom, G4VisCommandViewerDefaultHiddenEdge, G4VisCommandViewerDefaultStyle, G4VisCommandsViewerSet, G4VModelCommand< T >, G4VModelCommand< M >, G4RTMessenger, G4ASCIITreeMessenger, G4VtkMessenger, G4PolarizationMessenger, and G4DNAChemistryManager.

Definition at line 58 of file G4UImessenger.cc.

59{
60 G4String nullString;
61 return nullString;
62}

Referenced by G4UIcommand::DoIt(), and G4UIcommand::GetCurrentValue().

◆ ItoS()

G4String G4UImessenger::ItoS ( G4int  i)
protectedinherited

Definition at line 82 of file G4UImessenger.cc.

83{
84 std::ostringstream os;
85 os << i;
86 return G4String(os.str());
87}

Referenced by G4GenericMessenger::DeclareMethod(), and G4ParticleGunMessenger::GetCurrentValue().

◆ operator!=()

G4bool G4UImessenger::operator!= ( const G4UImessenger messenger) const
inherited

Definition at line 76 of file G4UImessenger.cc.

77{
78 return this != &messenger;
79}

◆ operator==()

G4bool G4UImessenger::operator== ( const G4UImessenger messenger) const
inherited

Definition at line 70 of file G4UImessenger.cc.

71{
72 return this == &messenger;
73}

◆ SetNewValue()

void G4CascadeParamMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 156 of file G4CascadeParamMessenger.cc.

156 {
157 if (cmd == reportCmd) theParams->DumpConfig(G4cout);
158
159 if (cmd == verboseCmd)
160 theParams->G4CASCADE_VERBOSE = strdup(arg.c_str());
161
162 if (cmd == balanceCmd)
163 theParams->G4CASCADE_CHECK_ECONS = StoB(arg) ? strdup(arg.c_str()) : 0;
164
165 if (cmd == usePreCoCmd)
166 theParams->G4CASCADE_USE_PRECOMPOUND = StoB(arg) ? strdup(arg.c_str()) : 0;
167
168 if (cmd == doCoalCmd)
169 theParams->G4CASCADE_DO_COALESCENCE = StoB(arg) ? strdup(arg.c_str()) : 0;
170
171 if (cmd == piNAbsCmd)
172 theParams->G4CASCADE_PIN_ABSORPTION = strdup(arg.c_str());
173
174 if (cmd == historyCmd)
175 theParams->G4CASCADE_SHOW_HISTORY = StoB(arg) ? strdup(arg.c_str()) : 0;
176
177 if (cmd == use3BodyCmd)
178 theParams->G4CASCADE_USE_3BODYMOM = StoB(arg) ? strdup(arg.c_str()) : 0;
179
180 if (cmd == usePSCmd)
181 theParams->G4CASCADE_USE_PHASESPACE = StoB(arg) ? strdup(arg.c_str()) : 0;
182
183 if (cmd == randomFileCmd)
184 theParams->G4CASCADE_RANDOM_FILE = arg.empty() ? 0 : strdup(arg.c_str());
185
186 if (cmd == nucUseBestCmd)
187 theParams->G4NUCMODEL_USE_BEST = StoB(arg) ? strdup(arg.c_str()) : 0;
188
189// if (cmd == nucRad2parCmd)
190// theParams->G4NUCMODEL_RAD_2PAR = strdup(arg.c_str());
191 if (cmd == nucRad2parCmd)
192 theParams->G4NUCMODEL_RAD_2PAR = StoB(arg) ? strdup(arg.c_str()) : 0;
193
194 if (cmd == nucRadScaleCmd)
195 theParams->G4NUCMODEL_RAD_SCALE = strdup(arg.c_str());
196
197 if (cmd == nucRadSmallCmd)
198 theParams->G4NUCMODEL_RAD_SMALL = strdup(arg.c_str());
199
200 if (cmd == nucRadAlphaCmd)
201 theParams->G4NUCMODEL_RAD_ALPHA = strdup(arg.c_str());
202
203 if (cmd == nucRadTrailingCmd)
204 theParams->G4NUCMODEL_RAD_TRAILING = strdup(arg.c_str());
205
206 if (cmd == nucFermiScaleCmd)
207 theParams->G4NUCMODEL_FERMI_SCALE = strdup(arg.c_str());
208
209 if (cmd == nucXsecScaleCmd)
210 theParams->G4NUCMODEL_XSEC_SCALE = strdup(arg.c_str());
211
212 if (cmd == nucGammaQDCmd)
213 theParams->G4NUCMODEL_GAMMAQD = strdup(arg.c_str());
214
215 if (cmd == coalDPmax2Cmd)
216 theParams->DPMAX_2CLUSTER = strdup(arg.c_str());
217
218 if (cmd == coalDPmax3Cmd)
219 theParams->DPMAX_3CLUSTER = strdup(arg.c_str());
220
221 if (cmd == coalDPmax4Cmd)
222 theParams->DPMAX_4CLUSTER = strdup(arg.c_str());
223
224 theParams->Initialize(); // Update numerical values from settings
225}
G4GLOB_DLL std::ostream G4cout
const char * G4CASCADE_RANDOM_FILE
const char * G4CASCADE_VERBOSE
const char * G4NUCMODEL_RAD_2PAR
const char * G4CASCADE_PIN_ABSORPTION
const char * G4CASCADE_USE_PRECOMPOUND
const char * G4NUCMODEL_RAD_ALPHA
void DumpConfig(std::ostream &os) const
const char * G4NUCMODEL_FERMI_SCALE
const char * G4CASCADE_SHOW_HISTORY
const char * G4NUCMODEL_USE_BEST
const char * G4NUCMODEL_GAMMAQD
const char * G4NUCMODEL_RAD_SCALE
const char * G4NUCMODEL_RAD_TRAILING
const char * G4NUCMODEL_XSEC_SCALE
const char * G4NUCMODEL_RAD_SMALL
const char * G4CASCADE_USE_3BODYMOM
const char * G4CASCADE_USE_PHASESPACE
const char * G4CASCADE_CHECK_ECONS
const char * G4CASCADE_DO_COALESCENCE
G4bool StoB(G4String s)

References balanceCmd, coalDPmax2Cmd, coalDPmax3Cmd, coalDPmax4Cmd, doCoalCmd, G4CascadeParameters::DPMAX_2CLUSTER, G4CascadeParameters::DPMAX_3CLUSTER, G4CascadeParameters::DPMAX_4CLUSTER, G4CascadeParameters::DumpConfig(), G4CascadeParameters::G4CASCADE_CHECK_ECONS, G4CascadeParameters::G4CASCADE_DO_COALESCENCE, G4CascadeParameters::G4CASCADE_PIN_ABSORPTION, G4CascadeParameters::G4CASCADE_RANDOM_FILE, G4CascadeParameters::G4CASCADE_SHOW_HISTORY, G4CascadeParameters::G4CASCADE_USE_3BODYMOM, G4CascadeParameters::G4CASCADE_USE_PHASESPACE, G4CascadeParameters::G4CASCADE_USE_PRECOMPOUND, G4CascadeParameters::G4CASCADE_VERBOSE, G4cout, G4CascadeParameters::G4NUCMODEL_FERMI_SCALE, G4CascadeParameters::G4NUCMODEL_GAMMAQD, G4CascadeParameters::G4NUCMODEL_RAD_2PAR, G4CascadeParameters::G4NUCMODEL_RAD_ALPHA, G4CascadeParameters::G4NUCMODEL_RAD_SCALE, G4CascadeParameters::G4NUCMODEL_RAD_SMALL, G4CascadeParameters::G4NUCMODEL_RAD_TRAILING, G4CascadeParameters::G4NUCMODEL_USE_BEST, G4CascadeParameters::G4NUCMODEL_XSEC_SCALE, historyCmd, G4CascadeParameters::Initialize(), nucFermiScaleCmd, nucGammaQDCmd, nucRad2parCmd, nucRadAlphaCmd, nucRadScaleCmd, nucRadSmallCmd, nucRadTrailingCmd, nucUseBestCmd, nucXsecScaleCmd, piNAbsCmd, randomFileCmd, reportCmd, G4UImessenger::StoB(), theParams, use3BodyCmd, usePreCoCmd, usePSCmd, and verboseCmd.

◆ StoB()

G4bool G4UImessenger::StoB ( G4String  s)
protectedinherited

Definition at line 137 of file G4UImessenger.cc.

138{
140 G4bool vl = false;
141 if(v == "Y" || v == "YES" || v == "1" || v == "T" || v == "TRUE")
142 {
143 vl = true;
144 }
145 return vl;
146}
bool G4bool
Definition: G4Types.hh:86
G4String to_upper_copy(G4String str)
Return uppercase copy of string.

References G4StrUtil::to_upper_copy().

Referenced by G4LocalThreadCoutMessenger::SetNewValue(), SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), and G4ScoringMessenger::SetNewValue().

◆ StoD()

G4double G4UImessenger::StoD ( G4String  s)
protectedinherited

◆ StoI()

G4int G4UImessenger::StoI ( G4String  s)
protectedinherited

◆ StoL()

G4long G4UImessenger::StoL ( G4String  s)
protectedinherited

Definition at line 117 of file G4UImessenger.cc.

118{
119 G4long vl;
120 const char* t = str;
121 std::istringstream is(t);
122 is >> vl;
123 return vl;
124}
long G4long
Definition: G4Types.hh:87

Referenced by G4RunMessenger::SetNewValue().

Field Documentation

◆ balanceCmd

G4UIcmdWithABool* G4CascadeParamMessenger::balanceCmd
private

◆ baseDir

G4UIdirectory* G4UImessenger::baseDir = nullptr
protectedinherited

◆ baseDirName

G4String G4UImessenger::baseDirName = ""
protectedinherited

◆ cmdDir

G4UIdirectory* G4CascadeParamMessenger::cmdDir
private

◆ coalDPmax2Cmd

G4UIcmdWithADouble* G4CascadeParamMessenger::coalDPmax2Cmd
private

◆ coalDPmax3Cmd

G4UIcmdWithADouble* G4CascadeParamMessenger::coalDPmax3Cmd
private

◆ coalDPmax4Cmd

G4UIcmdWithADouble* G4CascadeParamMessenger::coalDPmax4Cmd
private

◆ commandsShouldBeInMaster

G4bool G4UImessenger::commandsShouldBeInMaster = false
protectedinherited

◆ doCoalCmd

G4UIcmdWithABool* G4CascadeParamMessenger::doCoalCmd
private

◆ historyCmd

G4UIcmdWithABool* G4CascadeParamMessenger::historyCmd
private

◆ localCmdDir

G4bool G4CascadeParamMessenger::localCmdDir
private

Definition at line 68 of file G4CascadeParamMessenger.hh.

Referenced by CreateDirectory(), and ~G4CascadeParamMessenger().

◆ nucFermiScaleCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::nucFermiScaleCmd
private

◆ nucGammaQDCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::nucGammaQDCmd
private

◆ nucRad2parCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::nucRad2parCmd
private

◆ nucRadAlphaCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::nucRadAlphaCmd
private

◆ nucRadScaleCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::nucRadScaleCmd
private

◆ nucRadSmallCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::nucRadSmallCmd
private

◆ nucRadTrailingCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::nucRadTrailingCmd
private

◆ nucUseBestCmd

G4UIcmdWithABool* G4CascadeParamMessenger::nucUseBestCmd
private

◆ nucXsecScaleCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::nucXsecScaleCmd
private

◆ piNAbsCmd

G4UIcmdWithADouble* G4CascadeParamMessenger::piNAbsCmd
private

◆ randomFileCmd

G4UIcmdWithAString* G4CascadeParamMessenger::randomFileCmd
private

◆ reportCmd

G4UIcmdWithoutParameter* G4CascadeParamMessenger::reportCmd
private

◆ theParams

G4CascadeParameters* G4CascadeParamMessenger::theParams
private

Definition at line 66 of file G4CascadeParamMessenger.hh.

Referenced by SetNewValue().

◆ use3BodyCmd

G4UIcmdWithABool* G4CascadeParamMessenger::use3BodyCmd
private

◆ usePreCoCmd

G4UIcmdWithABool* G4CascadeParamMessenger::usePreCoCmd
private

◆ usePSCmd

G4UIcmdWithABool* G4CascadeParamMessenger::usePSCmd
private

◆ verboseCmd

G4UIcmdWithAnInteger* G4CascadeParamMessenger::verboseCmd
private

The documentation for this class was generated from the following files: