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.");
303 " /random/setDirectoryName.");
318 randEvtCmd->
SetGuidance(
" flag = 2 : status before event processing (after primary particle generation) is stored");
320 randEvtCmd->
SetGuidance(
"Note: Some performance overhead may be seen by storing rndm status, in particular");
372 const char* nv = (
const char*)newValue;
373 std::istringstream is(nv);
394 G4cout<<
"*** /run/numberOfThreads command is issued in sequential mode."
395 <<
"\nCommand is ignored."<<
G4endl;
400 "/run/numberOfThreads command is issued to local thread.");
413 G4cout<<
"*** /run/useMaximumLogicalCores command is issued in sequential mode."
414 <<
"\nCommand is ignored."<<
G4endl;
419 "/run/useMaximumLogicalCores command is issued to local thread.");
432 G4cout<<
"*** /run/pinAffinity command is issued in sequential mode."
433 <<
"\nCommand is ignored."<<
G4endl;
438 "/run/pinAffinity command is issued to local thread.");
449 const char* nv = (
const char*)newValue;
450 std::istringstream is(nv);
451 is >> nevMod >> sOnce;
457 G4cout<<
"*** /run/eventModulo command is issued in sequential mode."
458 <<
"\nCommand is ignored."<<
G4endl;
463 "/run/eventModulo command is issued to local thread.");
468 if(newValue==
"**ALL**")
477 else if( command==
optCmd )
501 while(!(vl=next()).isNull())
502 { seeds[idx] = (long)(
StoI(vl)); idx++; }
504 {
G4cerr <<
"/random/setSeeds should have at least two integers. Command ignored." <<
G4endl; }
508 G4Random::setTheSeeds(seeds);
549 static_cast<G4MTRunManager*>(
runManager)->GetNumberOfThreads());
562 static_cast<G4MTRunManager*>(
runManager)->GetEventModulo() )
566 {
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
virtual void RestoreRndmEachEvent(G4bool)
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)
G4UIcmdWithABool * restoreRandCmdMT
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