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

#include <G4RunMessenger.hh>

Inheritance diagram for G4RunMessenger:
G4UImessenger

Public Member Functions

G4bool CommandsShouldBeInMaster () const
 
 G4RunMessenger (G4RunManager *runMgr)
 
G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool operator== (const G4UImessenger &messenger) const
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
 ~G4RunMessenger ()
 

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

G4UIcmdWithABoolabortCmd = nullptr
 
G4UIcmdWithoutParameterabortEventCmd = nullptr
 
G4UIcommandbeamOnCmd = nullptr
 
G4UIcmdWithABoolbrkBoECmd = nullptr
 
G4UIcmdWithABoolbrkEoECmd = nullptr
 
G4UIcmdWithoutParameterconstScoreCmd = nullptr
 
G4UIcmdWithoutParameterdumpCoupleCmd = nullptr
 
G4UIcmdWithAStringdumpRegCmd = nullptr
 
G4UIcommandevModCmd = nullptr
 
G4UIcmdWithoutParametergeomCmd = nullptr
 
G4UIcmdWithABoolgeomRebCmd = nullptr
 
G4UIcmdWithoutParameterinitCmd = nullptr
 
G4String macroFileName = "***NULL***"
 
G4MaterialScannermaterialScanner = nullptr
 
G4UIcmdWithoutParametermaxThreadsCmd = nullptr
 
G4UIcmdWithAnIntegernThreadsCmd = nullptr
 
G4UIcmdWithABooloptCmd = nullptr
 
G4UIcmdWithoutParameterphysCmd = nullptr
 
G4UIcmdWithAnIntegerpinAffinityCmd = nullptr
 
G4UIcmdWithAnIntegerprintProgCmd = nullptr
 
G4UIcommandprocUICmds = nullptr
 
G4UIcmdWithAStringrandDirCmd = nullptr
 
G4UIcmdWithAnIntegerrandEvtCmd = nullptr
 
G4UIdirectoryrandomDirectory = nullptr
 
G4UIcmdWithAStringrestoreRandCmd = nullptr
 
G4UIcmdWithABoolrestoreRandCmdMT = nullptr
 
G4UIdirectoryrunDirectory = nullptr
 
G4RunManagerrunManager = nullptr
 
G4UIcmdWithABoolsaveEachEventCmd = nullptr
 
G4UIcmdWithoutParametersaveThisEventCmd = nullptr
 
G4UIcmdWithoutParametersaveThisRunCmd = nullptr
 
G4UIcmdWithABoolsavingFlagCmd = nullptr
 
G4UIcmdWithAStringseedCmd = nullptr
 
G4UIcmdWithAnIntegerverboseCmd = nullptr
 

Detailed Description

Definition at line 65 of file G4RunMessenger.hh.

Constructor & Destructor Documentation

◆ G4RunMessenger()

G4RunMessenger::G4RunMessenger ( G4RunManager runMgr)

Definition at line 50 of file G4RunMessenger.cc.

51 : runManager(runMgr)
52{
53 runDirectory = new G4UIdirectory("/run/");
54 runDirectory->SetGuidance("Run control commands.");
55
56 initCmd = new G4UIcmdWithoutParameter("/run/initialize", this);
57 initCmd->SetGuidance("Initialize G4 kernel.");
59
60 beamOnCmd = new G4UIcommand("/run/beamOn", this);
61 beamOnCmd->SetGuidance("Start a Run.");
63 "If G4 kernel is not initialized, it will be initialized.");
64 beamOnCmd->SetGuidance("Default number of events to be processed is 1.");
65 beamOnCmd->SetGuidance("The second and third arguments can be used for");
66 beamOnCmd->SetGuidance("executing a macro file at the end of each event.");
67 beamOnCmd->SetGuidance("If the second argument, i.e. name of the macro");
68 beamOnCmd->SetGuidance("file, is given but the third argument is not,");
69 beamOnCmd->SetGuidance("the macro file will be executed for all of the");
70 beamOnCmd->SetGuidance("event.");
71 beamOnCmd->SetGuidance("If the third argument (nSelect) is given, the");
72 beamOnCmd->SetGuidance("macro file will be executed only for the first");
73 beamOnCmd->SetGuidance("nSelect events.");
76 G4UIparameter* p1 = new G4UIparameter("numberOfEvent", 'i', true);
77 p1->SetDefaultValue(1);
78 p1->SetParameterRange("numberOfEvent >= 0");
80 G4UIparameter* p2 = new G4UIparameter("macroFile", 's', true);
81 p2->SetDefaultValue("***NULL***");
83 G4UIparameter* p3 = new G4UIparameter("nSelect", 'i', true);
84 p3->SetDefaultValue(-1);
85 p3->SetParameterRange("nSelect>=-1");
87 // beamOnCmd->SetToBeBroadcasted(false);
88
89 verboseCmd = new G4UIcmdWithAnInteger("/run/verbose", this);
90 verboseCmd->SetGuidance("Set the Verbose level of G4RunManager.");
91 verboseCmd->SetGuidance(" 0 : Silent (default)");
92 verboseCmd->SetGuidance(" 1 : Display main topics");
93 verboseCmd->SetGuidance(" 2 : Display main topics and run summary");
94 verboseCmd->SetParameterName("level", true);
96 verboseCmd->SetRange("level >=0 && level <=2");
97
98 printProgCmd = new G4UIcmdWithAnInteger("/run/printProgress", this);
100 "Display begin_of_event information at given frequency.");
102 "If it is set to zero, only the begin_of_run is shown.");
103 printProgCmd->SetGuidance("If it is set to -1, no print-out is shown.");
104 printProgCmd->SetParameterName("mod", true);
106 printProgCmd->SetRange("mod>=-1");
107
108 nThreadsCmd = new G4UIcmdWithAnInteger("/run/numberOfThreads", this);
109 nThreadsCmd->SetGuidance("Set the number of threads to be used.");
110 nThreadsCmd->SetGuidance("This command works only in PreInit state.");
112 "This command is valid only for multi-threaded mode.");
114 "The command is ignored if it is issued in sequential mode.");
115 nThreadsCmd->SetParameterName("nThreads", true);
117 nThreadsCmd->SetRange("nThreads >0");
120
122 new G4UIcmdWithoutParameter("/run/useMaximumLogicalCores", this);
124 "Set the number of threads to be the number of available logical cores.");
125 maxThreadsCmd->SetGuidance("This command works only in PreInit state.");
127 "This command is valid only for multi-threaded mode.");
129 "The command is ignored if it is issued in sequential mode.");
132
133 pinAffinityCmd = new G4UIcmdWithAnInteger("/run/pinAffinity", this);
135 "Locks each thread to a specific logical core. Workers "
136 "are locked in round robin to logical cores.");
138 "This command is valid only for multi-threaded mode.");
139 pinAffinityCmd->SetGuidance("This command works only in PreInit state.");
141 "This command is ignored if it is issued in sequential mode.");
143 "If a value n>0 is provided it starts setting affinity "
144 "from the n-th CPU (note: counting from 1).");
145 pinAffinityCmd->SetGuidance("E.g. /run/pinAffinity 3 locks first thread on "
146 "third logical CPU (number 2).");
148 "If a value n<0 is provided never locks on n-th CPU.");
149 pinAffinityCmd->SetParameterName("pinAffinity", true);
152 pinAffinityCmd->SetRange("pinAffinity > 0 || pinAffinity < 0");
154
155 evModCmd = new G4UIcommand("/run/eventModulo", this);
157 "Set the event modulo for dispatching events to worker threads");
159 "i.e. each worker thread is ordered to simulate N events and then");
160 evModCmd->SetGuidance("comes back to G4MTRunManager for next set.");
162 "If it is set to zero (default value), N is roughly given by this.");
164 " N = int( sqrt( number_of_events / number_of_threads ) )");
166 "The value N may affect on the computing performance in particular");
168 "if N is too small compared to the total number of events.");
170 "The second parameter seedOnce specifies how frequently each worker");
172 "thread is seeded by the random number sequence centrally managed");
173 evModCmd->SetGuidance("by the master G4MTRunManager.");
175 " - If seedOnce is set to 0 (default), seeds that are centrally managed");
177 " by G4MTRunManager are set for every event of every worker thread.");
179 " This option guarantees event reproducibility regardless of number");
180 evModCmd->SetGuidance(" of threads.");
182 " - If seedOnce is set to 1, seeds are set only once for the first");
184 " event of each run of each worker thread. Event reproducibility is");
186 " guaranteed only if the same number of worker threads are used.");
188 " On the other hand, this option offers better computing performance");
190 " in particular for applications with relatively small primary");
191 evModCmd->SetGuidance(" particle energy and large number of events.");
193 " - If seedOnce is set to 2, seeds are set only for the first event of");
195 " group of N events. This option is reserved for the future use when");
197 " Geant4 allows number of threads to be dynamically changed during an");
198 evModCmd->SetGuidance(" event loop.");
199 evModCmd->SetGuidance("This command is valid only for multi-threaded mode.");
201 "This command is ignored if it is issued in sequential mode.");
202 G4UIparameter* emp1 = new G4UIparameter("N", 'i', true);
203 emp1->SetDefaultValue(0);
204 emp1->SetParameterRange("N >= 0");
205 evModCmd->SetParameter(emp1);
206 G4UIparameter* emp2 = new G4UIparameter("seedOnce", 'i', true);
207 emp2->SetDefaultValue(0);
208 emp2->SetParameterRange("seedOnce >= 0 && seedOnce <=2");
209 evModCmd->SetParameter(emp2);
212
213 dumpRegCmd = new G4UIcmdWithAString("/run/dumpRegion", this);
214 dumpRegCmd->SetGuidance("Dump region information.");
216 "In case name of a region is not given, all regions will be displayed.");
217 dumpRegCmd->SetParameterName("regionName", true);
218 dumpRegCmd->SetDefaultValue("**ALL**");
220
221 dumpCoupleCmd = new G4UIcmdWithoutParameter("/run/dumpCouples", this);
222 dumpCoupleCmd->SetGuidance("Dump material-cuts-couple information.");
224 "Note that material-cuts-couple information is updated");
225 dumpCoupleCmd->SetGuidance("after BeamOn has started.");
227
228 optCmd = new G4UIcmdWithABool("/run/optimizeGeometry", this);
229 optCmd->SetGuidance("Set the optimization flag for geometry.");
230 optCmd->SetGuidance("If it is set to TRUE, G4GeometryManager will optimize");
231 optCmd->SetGuidance("the geometry definitions.");
232 optCmd->SetGuidance("GEANT4 is initialized with this flag as TRUE.");
233 optCmd->SetParameterName("optimizeFlag", true);
234 optCmd->SetDefaultValue(true);
236
237 brkBoECmd = new G4UIcmdWithABool("/run/breakAtBeginOfEvent", this);
238 brkBoECmd->SetGuidance("Set a break point at the beginning of every event.");
239 brkBoECmd->SetParameterName("flag", true);
241
242 brkEoECmd = new G4UIcmdWithABool("/run/breakAtEndOfEvent", this);
243 brkEoECmd->SetGuidance("Set a break point at the end of every event.");
244 brkEoECmd->SetParameterName("flag", true);
246
247 abortCmd = new G4UIcmdWithABool("/run/abort", this);
248 abortCmd->SetGuidance("Abort current run processing.");
250 "If softAbort is false (default), currently processing event "
251 "will be immediately aborted,");
252 abortCmd->SetGuidance("while softAbort is true, abortion occurs after "
253 "processing the current event.");
255 abortCmd->SetParameterName("softAbort", true);
257
258 abortEventCmd = new G4UIcmdWithoutParameter("/run/abortCurrentEvent", this);
259 abortEventCmd->SetGuidance("Abort currently processing event.");
261
262 geomCmd = new G4UIcmdWithoutParameter("/run/geometryModified", this);
263 geomCmd->SetGuidance("Force geometry to be closed (re-voxellized) again.");
265 "This command must be applied if geometry has been modified");
266 geomCmd->SetGuidance(" after the first initialization (or BeamOn).");
268
269 geomRebCmd = new G4UIcmdWithABool("/run/reinitializeGeometry", this);
270 geomRebCmd->SetGuidance("Force geometry to be rebuilt once again.");
272 "This command must be applied if the user needs his/her");
273 geomRebCmd->SetGuidance(" detector construction to be reinvoked.");
275 "/run/geometryModified is automatically issued with this command.");
276 geomRebCmd->SetParameterName("destroyFirst", true);
279
280 physCmd = new G4UIcmdWithoutParameter("/run/physicsModified", this);
281 physCmd->SetGuidance("Force all physics tables recalculated again.");
282 physCmd->SetGuidance("This command must be applied");
283 physCmd->SetGuidance(" if physics process has been modified after the");
284 physCmd->SetGuidance(" first initialization (or BeamOn).");
286
288 new G4UIcmdWithoutParameter("/run/constructScoringWorlds", this);
289 constScoreCmd->SetGuidance("Construct scoring parallel world(s) if defined.");
290 constScoreCmd->SetGuidance("This command is not mandatory, but automatically "
291 "called when a run starts.");
293 "But the user may use this to visualize the scoring "
294 "world(s) before a run to start.");
296
298
299 randomDirectory = new G4UIdirectory("/random/");
300 randomDirectory->SetGuidance("Random number status control commands.");
301
302 seedCmd = new G4UIcmdWithAString("/random/setSeeds", this);
304 "Initialize the random number generator with integer seed stream.");
305 seedCmd->SetGuidance("Number of integers should be more than 1.");
307 "Actual number of integers to be used depends on the individual "
308 "random number engine.");
309#ifdef G4MULTITHREADED
310 seedCmd->SetGuidance("This command sets the seeds for the master thread.");
311#endif
312 seedCmd->SetParameterName("IntArray", false);
316
317 randDirCmd = new G4UIcmdWithAString("/random/setDirectoryName", this);
319 "Define the directory name of the rndm status files.");
320 randDirCmd->SetGuidance("Directory will be created if it does not exist.");
321 randDirCmd->SetParameterName("fileName", true);
325
326 savingFlagCmd = new G4UIcmdWithABool("/random/setSavingFlag", this);
327 savingFlagCmd->SetGuidance("The randomNumberStatus will be saved at :");
328 savingFlagCmd->SetGuidance("beginning of run (currentRun.rndm) and "
329 "beginning of event (currentEvent.rndm) ");
330 savingFlagCmd->SetParameterName("flag", true);
332
333 saveThisRunCmd = new G4UIcmdWithoutParameter("/random/saveThisRun", this);
334 saveThisRunCmd->SetGuidance("copy currentRun.rndm to runXXX.rndm");
337
338 saveThisEventCmd = new G4UIcmdWithoutParameter("/random/saveThisEvent", this);
339 saveThisEventCmd->SetGuidance("copy currentEvent.rndm to runXXXevtYYY.rndm");
341
342 restoreRandCmd = new G4UIcmdWithAString("/random/resetEngineFrom", this);
344 "Reset the status of the rndm engine from a file.");
345 restoreRandCmd->SetGuidance("See CLHEP manual for detail.");
346 restoreRandCmd->SetGuidance("The engine status must be stored beforehand.");
347 restoreRandCmd->SetGuidance("Directory of the status file should be set by"
348 " /random/setDirectoryName.");
349 restoreRandCmd->SetParameterName("fileName", true);
350 restoreRandCmd->SetDefaultValue("currentRun.rndm");
354
356 new G4UIcmdWithABool("/random/resetEngineFromEachEvent", this);
358 "Reset the status of the rndm engine from a file at each event.");
360 "Note that the file must follow the following naming convention:");
361 restoreRandCmdMT->SetGuidance("run{#1}evt{#2}.rndm ; where #1 is the run "
362 "number and #2 is the event number.");
364 "For example to re-seed the first event of the first "
365 "run the file should be called run0evt0.rndm.");
367 "If for a specific run/event the file is not found, "
368 "the standard re-seeding strategy is used.");
369 restoreRandCmdMT->SetGuidance("This command has meaning only in MT mode for "
370 "strong reproducibility studies.");
371 restoreRandCmdMT->SetGuidance("Directory of the status file should be set by"
372 " /random/setDirectoryName.");
376
377 saveEachEventCmd = new G4UIcmdWithABool("/random/saveEachEventFlag", this);
379 "Save random number status at beginning of each event.");
381 "File name contains run and event numbers: runXXXevtYYY.rndm");
382 saveEachEventCmd->SetParameterName("flag", true);
384
385 randEvtCmd = new G4UIcmdWithAnInteger("/run/storeRndmStatToEvent", this);
386 randEvtCmd->SetGuidance("Flag to store rndm status to G4Event object.");
387 randEvtCmd->SetGuidance(" flag = 0 : not store (default)");
389 " flag = 1 : status before primary particle generation is stored");
391 " flag = 2 : status before event processing (after primary "
392 "particle generation) is stored");
393 randEvtCmd->SetGuidance(" flag = 3 : both are stored");
395 "Note: Some performance overhead may be seen by storing rndm "
396 "status, in particular");
398 "for the case of simplest geometry and small number of tracks per event.");
399 randEvtCmd->SetParameterName("flag", true);
401 randEvtCmd->SetRange("flag>=0 && flag<=3");
403
404 procUICmds = new G4UIcmdWithoutParameter("/run/workersProcessCmds", this);
407 "Force workers to process current stack of UI commands.");
408 procUICmds->SetGuidance("This commands is meaningful only in MT mode.");
411}
@ G4State_EventProc
@ G4State_Idle
@ G4State_GeomClosed
@ G4State_PreInit
G4UIcmdWithAnInteger * verboseCmd
G4UIcmdWithoutParameter * physCmd
G4UIcmdWithABool * optCmd
G4MaterialScanner * materialScanner
G4UIcmdWithoutParameter * saveThisRunCmd
G4UIcmdWithoutParameter * saveThisEventCmd
G4UIcmdWithABool * restoreRandCmdMT
G4UIcmdWithAString * restoreRandCmd
G4UIdirectory * randomDirectory
G4UIcmdWithAnInteger * randEvtCmd
G4UIcommand * beamOnCmd
G4UIcmdWithAString * randDirCmd
G4UIcmdWithoutParameter * initCmd
G4UIcmdWithoutParameter * geomCmd
G4UIcmdWithAString * dumpRegCmd
G4UIcmdWithABool * saveEachEventCmd
G4UIdirectory * runDirectory
G4UIcmdWithAString * seedCmd
G4UIcmdWithABool * savingFlagCmd
G4UIcommand * procUICmds
G4UIcmdWithABool * brkBoECmd
G4UIcmdWithoutParameter * dumpCoupleCmd
G4UIcmdWithoutParameter * abortEventCmd
G4UIcmdWithAnInteger * printProgCmd
G4UIcmdWithABool * brkEoECmd
G4UIcmdWithABool * geomRebCmd
G4UIcommand * evModCmd
G4UIcmdWithABool * abortCmd
G4UIcmdWithoutParameter * maxThreadsCmd
G4UIcmdWithAnInteger * nThreadsCmd
G4UIcmdWithoutParameter * constScoreCmd
G4RunManager * runManager
G4UIcmdWithAnInteger * pinAffinityCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
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)
void SetDefaultValue(G4int defVal)
void SetToBeBroadcasted(G4bool val)
Definition: G4UIcommand.hh:172
void SetParameter(G4UIparameter *const newParameter)
Definition: G4UIcommand.hh:146
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
void SetDefaultValue(const char *theDefaultValue)
void SetParameterRange(const char *theRange)

References abortCmd, abortEventCmd, G4UIcommand::AvailableForStates(), beamOnCmd, brkBoECmd, brkEoECmd, constScoreCmd, dumpCoupleCmd, dumpRegCmd, evModCmd, G4State_EventProc, G4State_GeomClosed, G4State_Idle, G4State_PreInit, geomCmd, geomRebCmd, initCmd, materialScanner, maxThreadsCmd, nThreadsCmd, optCmd, physCmd, pinAffinityCmd, printProgCmd, procUICmds, randDirCmd, randEvtCmd, randomDirectory, restoreRandCmd, restoreRandCmdMT, runDirectory, saveEachEventCmd, saveThisEventCmd, saveThisRunCmd, savingFlagCmd, seedCmd, G4UIcmdWithAString::SetDefaultValue(), G4UIparameter::SetDefaultValue(), G4UIcmdWithABool::SetDefaultValue(), G4UIcmdWithAnInteger::SetDefaultValue(), G4UIcommand::SetGuidance(), G4UIcommand::SetParameter(), G4UIcmdWithABool::SetParameterName(), G4UIcmdWithAnInteger::SetParameterName(), G4UIcmdWithAString::SetParameterName(), G4UIparameter::SetParameterRange(), G4UIcommand::SetRange(), G4UIcommand::SetToBeBroadcasted(), and verboseCmd.

◆ ~G4RunMessenger()

G4RunMessenger::~G4RunMessenger ( )

Definition at line 414 of file G4RunMessenger.cc.

415{
416 delete materialScanner;
417 delete beamOnCmd;
418 delete verboseCmd;
419 delete printProgCmd;
420 delete nThreadsCmd;
421 delete maxThreadsCmd;
422 delete pinAffinityCmd;
423 delete evModCmd;
424 delete optCmd;
425 delete dumpRegCmd;
426 delete dumpCoupleCmd;
427 delete brkBoECmd;
428 delete brkEoECmd;
429 delete abortCmd;
430 delete abortEventCmd;
431 delete initCmd;
432 delete geomCmd;
433 delete geomRebCmd;
434 delete physCmd;
435 delete randEvtCmd;
436 delete constScoreCmd;
437 delete procUICmds;
438
439 delete seedCmd;
440 delete savingFlagCmd;
441 delete saveThisRunCmd;
442 delete saveThisEventCmd;
443 delete restoreRandCmd;
444 delete randomDirectory;
445 delete saveEachEventCmd;
446
447 delete randDirCmd;
448 delete runDirectory;
449
450 delete restoreRandCmdMT;
451}

References abortCmd, abortEventCmd, beamOnCmd, brkBoECmd, brkEoECmd, constScoreCmd, dumpCoupleCmd, dumpRegCmd, evModCmd, geomCmd, geomRebCmd, initCmd, materialScanner, maxThreadsCmd, nThreadsCmd, optCmd, physCmd, pinAffinityCmd, printProgCmd, procUICmds, randDirCmd, randEvtCmd, randomDirectory, restoreRandCmd, restoreRandCmdMT, runDirectory, saveEachEventCmd, saveThisEventCmd, saveThisRunCmd, savingFlagCmd, seedCmd, 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<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 G4RunMessenger::GetCurrentValue ( G4UIcommand command)
virtual

Reimplemented from G4UImessenger.

Definition at line 711 of file G4RunMessenger.cc.

712{
713 G4String cv;
714
715 if(command == verboseCmd)
716 {
718 }
719 else if(command == printProgCmd)
720 {
722 }
723 else if(command == randDirCmd)
724 {
726 }
727 else if(command == randEvtCmd)
728 {
731 }
732 else if(command == nThreadsCmd)
733 {
735 if(rmType == G4RunManager::masterRM)
736 {
738 static_cast<G4MTRunManager*>(runManager)->GetNumberOfThreads());
739 }
740 else if(rmType == G4RunManager::sequentialRM)
741 {
742 cv = "0";
743 }
744 }
745 else if(command == evModCmd)
746 {
748 if(rmType == G4RunManager::masterRM)
749 {
750 cv =
752 static_cast<G4MTRunManager*>(runManager)->GetEventModulo()) +
753 " " +
755 }
756 else if(rmType == G4RunManager::sequentialRM)
757 {
758 G4cout << "*** /run/eventModulo command is valid only in MT mode."
759 << G4endl;
760 }
761 }
762
763 return cv;
764}
G4GLOB_DLL std::ostream G4cout
static G4int SeedOncePerCommunication()
RMType GetRunManagerType() const
const G4String & GetRandomNumberStoreDir() const
G4int GetFlagRandomNumberStatusToG4Event() const
G4int GetPrintProgress()
G4int GetVerboseLevel() const
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:445

References G4UIcommand::ConvertToString(), evModCmd, G4cout, G4endl, G4RunManager::GetFlagRandomNumberStatusToG4Event(), G4RunManager::GetPrintProgress(), G4RunManager::GetRandomNumberStoreDir(), G4RunManager::GetRunManagerType(), G4RunManager::GetVerboseLevel(), G4RunManager::masterRM, nThreadsCmd, printProgCmd, randDirCmd, randEvtCmd, runManager, G4MTRunManager::SeedOncePerCommunication(), G4RunManager::sequentialRM, and verboseCmd.

◆ 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 G4RunMessenger::SetNewValue ( G4UIcommand command,
G4String  newValues 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 454 of file G4RunMessenger.cc.

455{
456 if(command == beamOnCmd)
457 {
458 G4int nev;
459 G4int nst;
460 const char* nv = (const char*) newValue;
461 std::istringstream is(nv);
462 is >> nev >> macroFileName >> nst;
463 if(macroFileName == "***NULL***")
464 {
465 runManager->BeamOn(nev);
466 }
467 else
468 {
469 runManager->BeamOn(nev, macroFileName, nst);
470 }
471 }
472 else if(command == verboseCmd)
473 {
475 }
476 else if(command == printProgCmd)
477 {
479 }
480 else if(command == nThreadsCmd)
481 {
483 if(rmType == G4RunManager::masterRM)
484 {
485 static_cast<G4MTRunManager*>(runManager)
486 ->SetNumberOfThreads(nThreadsCmd->GetNewIntValue(newValue));
487 }
488 else if(rmType == G4RunManager::sequentialRM)
489 {
490 G4cout << "*** /run/numberOfThreads command is issued in sequential mode."
491 << "\nCommand is ignored." << G4endl;
492 }
493 else
494 {
495 G4Exception("G4RunMessenger::ApplyNewCommand", "Run0901", FatalException,
496 "/run/numberOfThreads command is issued to local thread.");
497 }
498 }
499 else if(command == maxThreadsCmd)
500 {
502 if(rmType == G4RunManager::masterRM)
503 {
504 static_cast<G4MTRunManager*>(runManager)
505 ->SetNumberOfThreads(G4Threading::G4GetNumberOfCores());
506 }
507 else if(rmType == G4RunManager::sequentialRM)
508 {
509 G4cout << "*** /run/useMaximumLogicalCores command is issued in "
510 "sequential mode."
511 << "\nCommand is ignored." << G4endl;
512 }
513 else
514 {
516 "G4RunMessenger::ApplyNewCommand", "Run0901", FatalException,
517 "/run/useMaximumLogicalCores command is issued to local thread.");
518 }
519 }
520 else if(command == pinAffinityCmd)
521 {
523 if(rmType == G4RunManager::masterRM)
524 {
525 static_cast<G4MTRunManager*>(runManager)
527 }
528 else if(rmType == G4RunManager::sequentialRM)
529 {
530 G4cout << "*** /run/pinAffinity command is issued in sequential mode."
531 << "\nCommand is ignored." << G4endl;
532 }
533 else
534 {
535 G4Exception("G4RunMessenger::ApplyNewCommand", "Run0901", FatalException,
536 "/run/pinAffinity command is issued to local thread.");
537 }
538 }
539 else if(command == evModCmd)
540 {
542 if(rmType == G4RunManager::masterRM)
543 {
544 G4int nevMod = 0;
545 G4int sOnce = 0;
546 const char* nv = (const char*) newValue;
547 std::istringstream is(nv);
548 is >> nevMod >> sOnce;
549 static_cast<G4MTRunManager*>(runManager)->SetEventModulo(nevMod);
551 }
552 else if(rmType == G4RunManager::sequentialRM)
553 {
554 G4cout << "*** /run/eventModulo command is issued in sequential mode."
555 << "\nCommand is ignored." << G4endl;
556 }
557 else
558 {
559 G4Exception("G4RunMessenger::ApplyNewCommand", "Run0902", FatalException,
560 "/run/eventModulo command is issued to local thread.");
561 }
562 }
563 else if(command == dumpRegCmd)
564 {
565 if(newValue == "**ALL**")
566 {
568 }
569 else
570 {
571 runManager->DumpRegion(newValue);
572 }
573 }
574 else if(command == dumpCoupleCmd)
575 {
577 }
578 else if(command == optCmd)
579 {
581 }
582 else if(command == brkBoECmd)
583 {
585 brkBoECmd->GetNewBoolValue(newValue));
586 }
587 else if(command == brkEoECmd)
588 {
590 brkEoECmd->GetNewBoolValue(newValue));
591 }
592 else if(command == abortCmd)
593 {
595 }
596 else if(command == abortEventCmd)
597 {
599 }
600 else if(command == initCmd)
601 {
603 }
604 else if(command == geomCmd)
605 {
607 }
608 else if(command == geomRebCmd)
609 {
611 false);
612 }
613 else if(command == physCmd)
614 {
616 }
617 else if(command == seedCmd)
618 {
619 G4Tokenizer next(newValue);
620 G4int idx = 0;
621 G4long seeds[100];
622 G4String vl;
623 while(!(vl = next()).empty())
624 {
625 seeds[idx] = StoL(vl);
626 ++idx;
627 }
628 if(idx < 2)
629 {
630 G4cerr << "/random/setSeeds should have at least two values. "
631 "Command ignored."
632 << G4endl;
633 }
634 else
635 {
636 seeds[idx] = 0;
637 G4Random::setTheSeeds(seeds);
638 }
639 }
640 else if(command == randDirCmd)
641 {
643 }
644 else if(command == savingFlagCmd)
645 {
647 }
648 else if(command == saveThisRunCmd)
649 {
651 }
652 else if(command == saveThisEventCmd)
653 {
655 }
656 else if(command == restoreRandCmd)
657 {
659 }
660 else if(command == randEvtCmd)
661 {
663 randEvtCmd->GetNewIntValue(newValue));
664 }
665 else if(command == saveEachEventCmd)
666 {
669 }
670 else if(command == constScoreCmd)
671 {
673 }
674 else if(command == restoreRandCmdMT)
675 {
678 }
679 else if(command == procUICmds)
680 {
682 if(rmType == G4RunManager::masterRM)
683 {
684 auto rm = dynamic_cast<G4MTRunManager*>(runManager);
685 if(rm != nullptr)
686 {
688 }
689 else
690 {
691 G4Exception("G4RunManager::ApplyNewCommand", "Run0128", FatalException,
692 "/run/workersProcessCmds command issued on a "
693 "non-G4MTRunManager class instance.");
694 }
695 }
696 else if(rmType == G4RunManager::sequentialRM)
697 {
698 G4cout
699 << "*** /run/workersProcessCmds command is issued in sequential mode."
700 << "\nCommand is ignored." << G4endl;
701 }
702 else
703 {
704 G4Exception("G4RunMessenger::ApplyNewCommand", "Run0129", FatalException,
705 "/run/workersProcessCmds command is issued to local thread.");
706 }
707 }
708}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
long G4long
Definition: G4Types.hh:87
int G4int
Definition: G4Types.hh:85
static void SetSeedOncePerCommunication(G4int val)
virtual void RequestWorkersProcessCommandsStack()
static G4ProductionCutsTable * GetProductionCutsTable()
virtual void AbortRun(G4bool softAbort=false)
virtual void Initialize()
virtual void RestoreRandomNumberStatus(const G4String &fileN)
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
void SetRandomNumberStoreDir(const G4String &dir)
virtual void rndmSaveThisEvent()
virtual void RestoreRndmEachEvent(G4bool)
virtual void AbortEvent()
virtual void rndmSaveThisRun()
virtual void BeamOn(G4int n_event, const char *macroFile=nullptr, G4int n_select=-1)
void PhysicsHasBeenModified()
void SetVerboseLevel(G4int vl)
void SetRandomNumberStorePerEvent(G4bool flag)
void GeometryHasBeenModified(G4bool prop=true)
void SetGeometryToBeOptimized(G4bool vl)
void StoreRandomNumberStatusToG4Event(G4int vl)
void SetRandomNumberStore(G4bool flag)
void DumpRegion(const G4String &rname) const
virtual void ConstructScoringWorlds()
void SetPrintProgress(G4int i)
G4String macroFileName
static G4bool GetNewBoolValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)
void SetPauseAtBeginOfEvent(G4bool vl)
Definition: G4UImanager.hh:177
void SetPauseAtEndOfEvent(G4bool vl)
Definition: G4UImanager.hh:179
G4long StoL(G4String s)
G4int G4GetNumberOfCores()
Definition: G4Threading.cc:121
bool SetPinAffinity(int idx, NativeThread &at)
Definition: Threading.cc:82

References abortCmd, G4RunManager::AbortEvent(), abortEventCmd, G4RunManager::AbortRun(), G4RunManager::BeamOn(), beamOnCmd, brkBoECmd, brkEoECmd, G4RunManager::ConstructScoringWorlds(), constScoreCmd, dumpCoupleCmd, G4ProductionCutsTable::DumpCouples(), dumpRegCmd, G4RunManager::DumpRegion(), anonymous_namespace{G4MTcoutDestination.cc}::empty, evModCmd, FatalException, G4cerr, G4cout, G4endl, G4Exception(), G4Threading::G4GetNumberOfCores(), geomCmd, G4RunManager::GeometryHasBeenModified(), geomRebCmd, G4UIcmdWithABool::GetNewBoolValue(), G4UIcmdWithAnInteger::GetNewIntValue(), G4ProductionCutsTable::GetProductionCutsTable(), G4RunManager::GetRunManagerType(), G4UImanager::GetUIpointer(), initCmd, G4RunManager::Initialize(), macroFileName, G4RunManager::masterRM, maxThreadsCmd, nThreadsCmd, optCmd, physCmd, G4RunManager::PhysicsHasBeenModified(), pinAffinityCmd, printProgCmd, procUICmds, randDirCmd, randEvtCmd, G4RunManager::ReinitializeGeometry(), G4MTRunManager::RequestWorkersProcessCommandsStack(), restoreRandCmd, restoreRandCmdMT, G4RunManager::RestoreRandomNumberStatus(), G4RunManager::RestoreRndmEachEvent(), G4RunManager::rndmSaveThisEvent(), G4RunManager::rndmSaveThisRun(), runManager, saveEachEventCmd, saveThisEventCmd, saveThisRunCmd, savingFlagCmd, seedCmd, G4RunManager::sequentialRM, G4RunManager::SetGeometryToBeOptimized(), G4UImanager::SetPauseAtBeginOfEvent(), G4UImanager::SetPauseAtEndOfEvent(), PTL::Threading::SetPinAffinity(), G4RunManager::SetPrintProgress(), G4RunManager::SetRandomNumberStore(), G4RunManager::SetRandomNumberStoreDir(), G4RunManager::SetRandomNumberStorePerEvent(), G4MTRunManager::SetSeedOncePerCommunication(), G4RunManager::SetVerboseLevel(), G4UImessenger::StoL(), G4RunManager::StoreRandomNumberStatusToG4Event(), 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(), 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}

Referenced by SetNewValue().

Field Documentation

◆ abortCmd

G4UIcmdWithABool* G4RunMessenger::abortCmd = nullptr
private

Definition at line 93 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ abortEventCmd

G4UIcmdWithoutParameter* G4RunMessenger::abortEventCmd = nullptr
private

Definition at line 94 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ baseDir

G4UIdirectory* G4UImessenger::baseDir = nullptr
protectedinherited

◆ baseDirName

G4String G4UImessenger::baseDirName = ""
protectedinherited

◆ beamOnCmd

G4UIcommand* G4RunMessenger::beamOnCmd = nullptr
private

Definition at line 81 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ brkBoECmd

G4UIcmdWithABool* G4RunMessenger::brkBoECmd = nullptr
private

Definition at line 91 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ brkEoECmd

G4UIcmdWithABool* G4RunMessenger::brkEoECmd = nullptr
private

Definition at line 92 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ commandsShouldBeInMaster

G4bool G4UImessenger::commandsShouldBeInMaster = false
protectedinherited

◆ constScoreCmd

G4UIcmdWithoutParameter* G4RunMessenger::constScoreCmd = nullptr
private

Definition at line 112 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ dumpCoupleCmd

G4UIcmdWithoutParameter* G4RunMessenger::dumpCoupleCmd = nullptr
private

Definition at line 89 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ dumpRegCmd

G4UIcmdWithAString* G4RunMessenger::dumpRegCmd = nullptr
private

Definition at line 88 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ evModCmd

G4UIcommand* G4RunMessenger::evModCmd = nullptr
private

Definition at line 87 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4RunMessenger().

◆ geomCmd

G4UIcmdWithoutParameter* G4RunMessenger::geomCmd = nullptr
private

Definition at line 96 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ geomRebCmd

G4UIcmdWithABool* G4RunMessenger::geomRebCmd = nullptr
private

Definition at line 97 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ initCmd

G4UIcmdWithoutParameter* G4RunMessenger::initCmd = nullptr
private

Definition at line 95 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ macroFileName

G4String G4RunMessenger::macroFileName = "***NULL***"
private

Definition at line 78 of file G4RunMessenger.hh.

Referenced by SetNewValue().

◆ materialScanner

G4MaterialScanner* G4RunMessenger::materialScanner = nullptr
private

Definition at line 114 of file G4RunMessenger.hh.

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

◆ maxThreadsCmd

G4UIcmdWithoutParameter* G4RunMessenger::maxThreadsCmd = nullptr
private

Definition at line 85 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ nThreadsCmd

G4UIcmdWithAnInteger* G4RunMessenger::nThreadsCmd = nullptr
private

Definition at line 84 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4RunMessenger().

◆ optCmd

G4UIcmdWithABool* G4RunMessenger::optCmd = nullptr
private

Definition at line 90 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ physCmd

G4UIcmdWithoutParameter* G4RunMessenger::physCmd = nullptr
private

Definition at line 98 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ pinAffinityCmd

G4UIcmdWithAnInteger* G4RunMessenger::pinAffinityCmd = nullptr
private

Definition at line 86 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ printProgCmd

G4UIcmdWithAnInteger* G4RunMessenger::printProgCmd = nullptr
private

Definition at line 83 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4RunMessenger().

◆ procUICmds

G4UIcommand* G4RunMessenger::procUICmds = nullptr
private

Definition at line 100 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ randDirCmd

G4UIcmdWithAString* G4RunMessenger::randDirCmd = nullptr
private

Definition at line 104 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4RunMessenger().

◆ randEvtCmd

G4UIcmdWithAnInteger* G4RunMessenger::randEvtCmd = nullptr
private

Definition at line 99 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4RunMessenger().

◆ randomDirectory

G4UIdirectory* G4RunMessenger::randomDirectory = nullptr
private

Definition at line 102 of file G4RunMessenger.hh.

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

◆ restoreRandCmd

G4UIcmdWithAString* G4RunMessenger::restoreRandCmd = nullptr
private

Definition at line 108 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ restoreRandCmdMT

G4UIcmdWithABool* G4RunMessenger::restoreRandCmdMT = nullptr
private

Definition at line 110 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ runDirectory

G4UIdirectory* G4RunMessenger::runDirectory = nullptr
private

Definition at line 80 of file G4RunMessenger.hh.

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

◆ runManager

G4RunManager* G4RunMessenger::runManager = nullptr
private

Definition at line 77 of file G4RunMessenger.hh.

Referenced by GetCurrentValue(), and SetNewValue().

◆ saveEachEventCmd

G4UIcmdWithABool* G4RunMessenger::saveEachEventCmd = nullptr
private

Definition at line 109 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ saveThisEventCmd

G4UIcmdWithoutParameter* G4RunMessenger::saveThisEventCmd = nullptr
private

Definition at line 107 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ saveThisRunCmd

G4UIcmdWithoutParameter* G4RunMessenger::saveThisRunCmd = nullptr
private

Definition at line 106 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ savingFlagCmd

G4UIcmdWithABool* G4RunMessenger::savingFlagCmd = nullptr
private

Definition at line 105 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ seedCmd

G4UIcmdWithAString* G4RunMessenger::seedCmd = nullptr
private

Definition at line 103 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), SetNewValue(), and ~G4RunMessenger().

◆ verboseCmd

G4UIcmdWithAnInteger* G4RunMessenger::verboseCmd = nullptr
private

Definition at line 82 of file G4RunMessenger.hh.

Referenced by G4RunMessenger(), GetCurrentValue(), SetNewValue(), and ~G4RunMessenger().


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