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

#include <G4ParticleHPMessenger.hh>

Inheritance diagram for G4ParticleHPMessenger:
G4UImessenger

Public Member Functions

G4bool CommandsShouldBeInMaster () const
 
 G4ParticleHPMessenger (G4ParticleHPManager *)
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool operator== (const G4UImessenger &messenger) const
 
void SetNewValue (G4UIcommand *, G4String)
 
 ~G4ParticleHPMessenger ()
 

Protected Member Functions

void AddUIcommand (G4UIcommand *newCommand)
 
G4String BtoS (G4bool b)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
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

G4UIcmdWithAStringDoNotAdjustFSCmd
 
G4ParticleHPManagermanager
 
G4UIcmdWithAStringNeglectDopplerCmd
 
G4UIcmdWithAStringNRESP71Cmd
 
G4UIdirectoryParticleHPDir
 
G4UIcmdWithAStringPhotoEvaCmd
 
G4UIcmdWithAStringProduceFissionFragementCmd
 
G4UIcmdWithAStringSkipMissingCmd
 
G4UIcmdWithAnIntegerVerboseCmd
 
G4UIcmdWithAStringWendtFissionModelCmd
 

Detailed Description

Definition at line 37 of file G4ParticleHPMessenger.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPMessenger()

G4ParticleHPMessenger::G4ParticleHPMessenger ( G4ParticleHPManager man)

Definition at line 34 of file G4ParticleHPMessenger.cc.

35:manager(man)
36{
37 ParticleHPDir = new G4UIdirectory( "/process/had/particle_hp/" );
38 ParticleHPDir->SetGuidance( "UI commands of ParticleHP" );
39
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.");
42 PhotoEvaCmd->SetParameterName("choice",false);
43 PhotoEvaCmd->SetCandidates("true false");
45
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.");
49 SkipMissingCmd->SetParameterName("choice",false);
50 SkipMissingCmd->SetCandidates("true false");
52
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.");
56 NeglectDopplerCmd->SetParameterName("choice",false);
57 NeglectDopplerCmd->SetCandidates("true false");
59
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.");
62 DoNotAdjustFSCmd->SetParameterName("choice",false);
63 DoNotAdjustFSCmd->SetCandidates("true false");
65
66 ProduceFissionFragementCmd = new G4UIcmdWithAString("/process/had/particle_hp/produce_fission_fragment",this);
67 ProduceFissionFragementCmd->SetGuidance("Enable to generate fission fragments.");
71
72 WendtFissionModelCmd = new G4UIcmdWithAString("/process/had/particle_hp/use_Wendt_fission_model",this);
73 WendtFissionModelCmd->SetGuidance("Enable use of Wendt fission model.");
77
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");
80 NRESP71Cmd->SetParameterName("choice",false);
81 NRESP71Cmd->SetCandidates("true false");
83
84 VerboseCmd = new G4UIcmdWithAnInteger("/process/had/particle_hp/verbose",this);
85 VerboseCmd->SetGuidance("Set Verbose level of ParticleHP package");
86 VerboseCmd->SetParameterName("verbose_level",true);
88 VerboseCmd->SetRange("verbose_level >=0");
90}
@ G4State_Idle
@ G4State_PreInit
G4UIcmdWithAString * NRESP71Cmd
G4UIcmdWithAnInteger * VerboseCmd
G4UIcmdWithAString * DoNotAdjustFSCmd
G4UIcmdWithAString * WendtFissionModelCmd
G4UIcmdWithAString * SkipMissingCmd
G4UIcmdWithAString * PhotoEvaCmd
G4UIcmdWithAString * ProduceFissionFragementCmd
G4ParticleHPManager * manager
G4UIcmdWithAString * NeglectDopplerCmd
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)
Definition: G4UIcommand.hh:156
void SetRange(const char *rs)
Definition: G4UIcommand.hh:120
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:288

References G4UIcommand::AvailableForStates(), DoNotAdjustFSCmd, G4State_Idle, G4State_PreInit, NeglectDopplerCmd, NRESP71Cmd, ParticleHPDir, PhotoEvaCmd, ProduceFissionFragementCmd, G4UIcmdWithAString::SetCandidates(), G4UIcmdWithAnInteger::SetDefaultValue(), G4UIcommand::SetGuidance(), G4UIcmdWithAnInteger::SetParameterName(), G4UIcmdWithAString::SetParameterName(), G4UIcommand::SetRange(), SkipMissingCmd, VerboseCmd, and WendtFissionModelCmd.

◆ ~G4ParticleHPMessenger()

G4ParticleHPMessenger::~G4ParticleHPMessenger ( )

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<typename T >
T * G4UImessenger::CreateCommand ( const G4String cname,
const G4String dsc 
)
protectedinherited

Definition at line 110 of file G4UImessenger.hh.

111{
112 G4String path;
113 if(cname[0] != '/')
114 {
115 path = baseDirName + cname;
116 if(path[0] != '/')
117 path = "/" + path;
118 }
119
120 T* command = new T(path.c_str(), this);
121 command->SetGuidance(dsc.c_str());
122
123 return command;
124}
G4String baseDirName

References G4UImessenger::baseDirName.

◆ CreateDirectory()

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)
G4UIcommandTree * GetTree() const
Definition: G4UImanager.hh:186
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:77
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 G4ParticleHPMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 105 of file G4ParticleHPMessenger.cc.

106{
107 G4bool bValue = false;
108 if ( newValue == "true" ) bValue = true;
109
110 if ( command == PhotoEvaCmd ) {
111 if ( manager->GetUseOnlyPhotoEvaporation() != bValue ) {
113 #ifdef G4VERBOSE
114 if ( G4HadronicParameters::Instance()->GetVerboseLevel() > 0 ) {
115 G4cout << G4endl
116 << "=== G4ParticleHPMessenger CHANGED PARAMETER UseOnlyPhotoEvaporation TO "
117 << bValue << " ===" << G4endl;
118 }
119 if ( bValue ) {
120 G4cout << " -> Forced the use of the Photon Evaporation model (instead of the neutron capture final state data)"
121 << G4endl;
122 } else {
123 G4cout << " -> Go back to use the default neutron capture final state data !" << G4endl;
124 }
125 #endif
126 }
127 }
128
129 if ( command == SkipMissingCmd) {
130 if ( manager->GetSkipMissingIsotopes() != bValue ) {
132 #ifdef G4VERBOSE
133 if ( G4HadronicParameters::Instance()->GetVerboseLevel() > 0 ) {
134 G4cout << G4endl
135 << "=== G4ParticleHPMessenger CHANGED PARAMETER SkipMissingIsotopes TO "
136 << bValue << " ===" << G4endl;
137 }
138 if ( bValue ) {
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 !"
141 << G4endl;
142 } else {
143 G4cout << " -> Go back to the default, i.e. use nearby isotope files when the exact isotope data files are not found !"
144 << G4endl;
145 }
146 #endif
147 }
148 }
149
150 if ( command == NeglectDopplerCmd ) {
151 if ( manager->GetNeglectDoppler() != bValue ) {
152 manager->SetNeglectDoppler( bValue );
153 #ifdef G4VERBOSE
154 if ( G4HadronicParameters::Instance()->GetVerboseLevel() > 0 ) {
155 G4cout << G4endl
156 << "=== G4ParticleHPMessenger CHANGED PARAMETER NeglectDoppler TO "
157 << bValue << " ===" << G4endl;
158 }
159 if ( bValue ) {
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 !"
164 << G4endl;
165 } else {
166 G4cout << " -> Go back to the default, i.e. switch on the Doppler broadening on-the-fly !" << G4endl;
167 }
168 #endif
169 }
170 }
171
172 if ( command == DoNotAdjustFSCmd ) {
173 if ( manager->GetDoNotAdjustFinalState() != bValue ) {
175 #ifdef G4VERBOSE
176 if ( G4HadronicParameters::Instance()->GetVerboseLevel() > 0 ) {
177 G4cout << G4endl
178 << "=== G4ParticleHPMessenger CHANGED PARAMETER DoNotAdjustFinalState TO "
179 << bValue << " ===" << G4endl;
180 }
181 if ( bValue ) {
182 G4cout << " -> Disabled the adjustment of the final state for getting better conservation !"
183 << G4endl;
184 } else {
185 G4cout << " -> Go back to the default, i.e. adjust the final state to get better conservation !"
186 << G4endl;
187 }
188 #endif
189 }
190 }
191
192 if ( command == ProduceFissionFragementCmd ) {
193 if ( manager->GetProduceFissionFragments() != bValue ) {
195 #ifdef G4VERBOSE
196 if ( G4HadronicParameters::Instance()->GetVerboseLevel() > 0 ) {
197 G4cout << G4endl
198 << "=== G4ParticleHPMessenger CHANGED PARAMETER ProduceFissionFragments TO "
199 << bValue << " ===" << G4endl;
200 }
201 if ( bValue ) {
202 G4cout << " -> Enabled the generation of fission fragments !"
203 << G4endl;
204 } else {
205 G4cout << " -> Go back to the default, i.e. do not generate fission fragments !" << G4endl;
206 }
207 #endif
208 }
209 }
210
211 if ( command == WendtFissionModelCmd ) {
212 if ( manager->GetUseWendtFissionModel() != bValue ) {
214 // Make sure both fission fragment models are not active at same time
215 if ( bValue ) manager->SetProduceFissionFragments( false );
216 #ifdef G4VERBOSE
217 if ( G4HadronicParameters::Instance()->GetVerboseLevel() > 0 ) {
218 G4cout << G4endl
219 << "=== G4ParticleHPMessenger CHANGED PARAMETER UseWendtFissionModel TO "
220 << bValue << " ===" << G4endl;
221 }
222 if ( bValue ) {
223 G4cout << " -> Enabled the use of Wendt fission model !" << G4endl;
224 } else {
225 G4cout << " -> Go back to the default, i.e. do not use the Wendt fission model !" << G4endl;
226 }
227 #endif
228 }
229 }
230
231 if ( command == NRESP71Cmd ) {
232 if ( manager->GetUseNRESP71Model() != bValue ) {
233 manager->SetUseNRESP71Model( bValue );
234 #ifdef G4VERBOSE
235 if ( G4HadronicParameters::Instance()->GetVerboseLevel() > 0 ) {
236 G4cout << G4endl
237 << "=== G4ParticleHPMessenger CHANGED PARAMETER UseNRESP71Model TO "
238 << bValue << " ===" << G4endl;
239 }
240 if ( bValue ) {
241 G4cout << " -> Enabled the use of NRESP71 model for n on C reaction !" << G4endl;
242 } else {
243 G4cout << " -> Go back to the default, i.e. do not use the NRESP71 model !" << G4endl;
244 }
245 #endif
246 }
247 }
248
249 if ( command == VerboseCmd ) {
250 G4int verboseLevel = VerboseCmd->ConvertToInt( newValue );
251 if ( manager->GetVerboseLevel() != verboseLevel ) {
252 manager->SetVerboseLevel( verboseLevel );
253 #ifdef G4VERBOSE
254 if ( G4HadronicParameters::Instance()->GetVerboseLevel() > 0 ) {
255 G4cout << G4endl
256 << "=== G4ParticleHPMessenger CHANGED PARAMETER VerboseLevel TO "
257 << verboseLevel << " ===" << G4endl;
258 }
259 #endif
260 }
261 }
262}
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
G4GLOB_DLL std::ostream G4cout
static G4HadronicParameters * Instance()
void SetUseNRESP71Model(G4bool val)
void SetNeglectDoppler(G4bool val)
void SetProduceFissionFragments(G4bool val)
void SetSkipMissingIsotopes(G4bool val)
void SetDoNotAdjustFinalState(G4bool val)
void SetUseWendtFissionModel(G4bool val)
void SetUseOnlyPhotoEvaporation(G4bool val)
static G4int ConvertToInt(const char *st)
Definition: G4UIcommand.cc:557

References G4UIcommand::ConvertToInt(), DoNotAdjustFSCmd, G4cout, G4endl, G4ParticleHPManager::GetDoNotAdjustFinalState(), G4ParticleHPManager::GetNeglectDoppler(), G4ParticleHPManager::GetProduceFissionFragments(), G4ParticleHPManager::GetSkipMissingIsotopes(), G4ParticleHPManager::GetUseNRESP71Model(), G4ParticleHPManager::GetUseOnlyPhotoEvaporation(), G4ParticleHPManager::GetUseWendtFissionModel(), G4ParticleHPManager::GetVerboseLevel(), G4HadronicParameters::Instance(), manager, NeglectDopplerCmd, NRESP71Cmd, PhotoEvaCmd, ProduceFissionFragementCmd, G4ParticleHPManager::SetDoNotAdjustFinalState(), G4ParticleHPManager::SetNeglectDoppler(), G4ParticleHPManager::SetProduceFissionFragments(), G4ParticleHPManager::SetSkipMissingIsotopes(), G4ParticleHPManager::SetUseNRESP71Model(), G4ParticleHPManager::SetUseOnlyPhotoEvaporation(), G4ParticleHPManager::SetUseWendtFissionModel(), G4ParticleHPManager::SetVerboseLevel(), SkipMissingCmd, VerboseCmd, and WendtFissionModelCmd.

◆ 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}
G4String to_upper_copy(G4String str)
Return uppercase copy of string.

References G4StrUtil::to_upper_copy().

Referenced by G4LocalThreadCoutMessenger::SetNewValue(), G4CascadeParamMessenger::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

◆ baseDir

G4UIdirectory* G4UImessenger::baseDir = nullptr
protectedinherited

◆ baseDirName

G4String G4UImessenger::baseDirName = ""
protectedinherited

◆ commandsShouldBeInMaster

G4bool G4UImessenger::commandsShouldBeInMaster = false
protectedinherited

◆ DoNotAdjustFSCmd

G4UIcmdWithAString* G4ParticleHPMessenger::DoNotAdjustFSCmd
private

◆ manager

G4ParticleHPManager* G4ParticleHPMessenger::manager
private

Definition at line 46 of file G4ParticleHPMessenger.hh.

Referenced by SetNewValue().

◆ NeglectDopplerCmd

G4UIcmdWithAString* G4ParticleHPMessenger::NeglectDopplerCmd
private

◆ NRESP71Cmd

G4UIcmdWithAString* G4ParticleHPMessenger::NRESP71Cmd
private

◆ ParticleHPDir

G4UIdirectory* G4ParticleHPMessenger::ParticleHPDir
private

Definition at line 48 of file G4ParticleHPMessenger.hh.

Referenced by G4ParticleHPMessenger(), and ~G4ParticleHPMessenger().

◆ PhotoEvaCmd

G4UIcmdWithAString* G4ParticleHPMessenger::PhotoEvaCmd
private

◆ ProduceFissionFragementCmd

G4UIcmdWithAString* G4ParticleHPMessenger::ProduceFissionFragementCmd
private

◆ SkipMissingCmd

G4UIcmdWithAString* G4ParticleHPMessenger::SkipMissingCmd
private

◆ VerboseCmd

G4UIcmdWithAnInteger* G4ParticleHPMessenger::VerboseCmd
private

◆ WendtFissionModelCmd

G4UIcmdWithAString* G4ParticleHPMessenger::WendtFissionModelCmd
private

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