123 pinAffinityCmd->
SetGuidance(
"Locks each thread to a specific logical core. Workers are locked in round robin to logical cores.");
127 pinAffinityCmd->
SetGuidance(
"If a value n>0 is provided it starts setting affinity from the n-th CPU (note: counting from 1).");
140 evModCmd->
SetGuidance(
"If it is set to zero (default value), N is roughly given by this.");
142 evModCmd->
SetGuidance(
"The value N may affect on the computing performance in particular");
144 evModCmd->
SetGuidance(
"The second parameter seedOnce specifies how frequently each worker");
147 evModCmd->
SetGuidance(
" - If seedOnce is set to 0 (default), seeds that are centrally managed");
148 evModCmd->
SetGuidance(
" by G4MTRunManager are set for every event of every worker thread.");
149 evModCmd->
SetGuidance(
" This option guarantees event reproducability regardless of number");
151 evModCmd->
SetGuidance(
" - If seedOnce is set to 1, seeds are set only once for the first");
152 evModCmd->
SetGuidance(
" event of each run of each worker thread. Event reproducability is");
154 evModCmd->
SetGuidance(
" On the other hand, this option offers better computing performance");
157 evModCmd->
SetGuidance(
" - If seedOnce is set to 2, seeds are set only for the first event of");
158 evModCmd->
SetGuidance(
" group of N events. This option is reserved for the future use when");
159 evModCmd->
SetGuidance(
" Geant4 allows number of threads to be dynatically changed during an");
208 abortCmd->
SetGuidance(
"If softAbort is false (default), currently processing event will be immediately aborted,");
209 abortCmd->
SetGuidance(
"while softAbort is true, abortion occurs after processing the current event.");
252 seedCmd->
SetGuidance(
"Initialize the random number generator with integer seed stream.");
254 seedCmd->
SetGuidance(
"Actual number of integers to be used depends on the individual random number engine.");
255 #ifdef G4MULTITHREADED
272 "begining of event (currentEvent.rndm) ");
289 " /random/setDirectoryName.");
305 randEvtCmd->
SetGuidance(
" flag = 2 : status before event processing (after primary particle generation) is stored");
307 randEvtCmd->
SetGuidance(
"Note: Some performance overhead may be seen by storing rndm status, in particular");
357 const char* nv = (
const char*)newValue;
358 std::istringstream is(nv);
379 G4cout<<
"*** /run/numberOfThreads command is issued in sequential mode."
380 <<
"\nCommand is ignored."<<
G4endl;
385 "/run/numberOfThreads command is issued to local thread.");
398 G4cout<<
"*** /run/useMaximumLogicalCores command is issued in sequential mode."
399 <<
"\nCommand is ignored."<<
G4endl;
404 "/run/useMaximumLogicalCores command is issued to local thread.");
417 G4cout<<
"*** /run/pinAffinity command is issued in sequential mode."
418 <<
"\nCommand is ignored."<<
G4endl;
423 "/run/pinAffinity command is issued to local thread.");
434 const char* nv = (
const char*)newValue;
435 std::istringstream is(nv);
436 is >> nevMod >> sOnce;
442 G4cout<<
"*** /run/eventModulo command is issued in sequential mode."
443 <<
"\nCommand is ignored."<<
G4endl;
448 "/run/eventModulo command is issued to local thread.");
453 if(newValue==
"**ALL**")
462 else if( command==
optCmd )
486 while(!(vl=next()).isNull())
487 { seeds[idx] = (long)(
StoI(vl)); idx++; }
489 {
G4cerr <<
"/random/setSeeds should have at least two integers. Command ignored." <<
G4endl; }
493 G4Random::setTheSeeds(seeds);
533 static_cast<G4MTRunManager*>(
runManager)->GetNumberOfThreads());
546 static_cast<G4MTRunManager*>(
runManager)->GetEventModulo() )
550 {
G4cout<<
"*** /run/eventModulo command is valid only in MT mode."<<
G4endl; }
G4UIcmdWithoutParameter * saveThisRunCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void GeometryHasBeenModified(G4bool prop=true)
G4UIcmdWithABool * optCmd
G4int GetVerboseLevel() const
virtual void AbortRun(G4bool softAbort=false)
G4UIcmdWithAString * randDirCmd
void SetParameter(G4UIparameter *const newParameter)
G4RunMessenger(G4RunManager *runMgr)
G4UIcmdWithoutParameter * initCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIdirectory * runDirectory
const G4String & GetRandomNumberStoreDir() const
void SetVerboseLevel(G4int vl)
G4UIcmdWithAString * restoreRandCmd
static G4int GetNewIntValue(const char *paramString)
void SetParameterRange(const char *theRange)
G4UIcmdWithAnInteger * nThreadsCmd
G4UIdirectory * randomDirectory
void SetPrintProgress(G4int i)
G4UIcmdWithAnInteger * printProgCmd
void SetToBeBroadcasted(G4bool val)
void SetGeometryToBeOptimized(G4bool vl)
void SetDefaultValue(const char *theDefaultValue)
static G4String ConvertToString(G4bool boolVal)
void SetRandomNumberStorePerEvent(G4bool flag)
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
G4UIcmdWithoutParameter * constScoreCmd
G4UIcmdWithABool * savingFlagCmd
void SetRandomNumberStore(G4bool flag)
G4int GetFlagRandomNumberStatusToG4Event() const
G4String GetCurrentValue(G4UIcommand *command)
G4UIcmdWithoutParameter * maxThreadsCmd
G4UIcmdWithoutParameter * geomCmd
static G4bool GetNewBoolValue(const char *paramString)
void SetDefaultValue(G4bool defVal)
G4MaterialScanner * materialScanner
static G4UImanager * GetUIpointer()
virtual void RestoreRandomNumberStatus(const G4String &fileN)
G4UIcmdWithoutParameter * dumpCoupleCmd
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
virtual void rndmSaveThisRun()
G4GLOB_DLL std::ostream G4cout
void StoreRandomNumberStatusToG4Event(G4int vl)
void PhysicsHasBeenModified()
RMType GetRunManagerType() const
G4UIcmdWithABool * geomRebCmd
virtual void ConstructScoringWorlds()
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
G4int G4GetNumberOfCores()
virtual void rndmSaveThisEvent()
void AvailableForStates(G4ApplicationState s1)
G4UIcmdWithAString * seedCmd
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4UIcmdWithoutParameter * physCmd
void SetNewValue(G4UIcommand *command, G4String newValues)
static G4ProductionCutsTable * GetProductionCutsTable()
G4UIcmdWithABool * brkEoECmd
G4RunManager * runManager
G4UIcmdWithoutParameter * abortEventCmd
void SetDefaultValue(const char *defVal)
G4UIcmdWithABool * saveEachEventCmd
void SetPauseAtEndOfEvent(G4bool vl)
G4UIcmdWithAString * dumpRegCmd
G4UIcmdWithABool * brkBoECmd
G4UIcmdWithAnInteger * randEvtCmd
static G4int SeedOncePerCommunication()
void SetPauseAtBeginOfEvent(G4bool vl)
virtual void Initialize()
G4UIcmdWithAnInteger * pinAffinityCmd
G4UIcmdWithoutParameter * saveThisEventCmd
virtual void AbortEvent()
void SetDefaultValue(G4int defVal)
void SetRandomNumberStoreDir(const G4String &dir)
G4UIcmdWithABool * abortCmd
static void SetSeedOncePerCommunication(G4int val)
void DumpRegion(const G4String &rname) const
G4UIcmdWithAnInteger * verboseCmd
G4GLOB_DLL std::ostream G4cerr