376 if( command==beamOnCmd )
380 const char* nv = (
const char*)newValue;
381 std::istringstream is(nv);
382 is >> nev >> macroFileName >> nst;
383 if(macroFileName==
"***NULL***")
384 { runManager->
BeamOn(nev); }
386 { runManager->
BeamOn(nev,macroFileName,nst); }
388 else if( command==verboseCmd )
390 else if( command == printProgCmd )
392 else if( command==nThreadsCmd )
402 G4cout<<
"*** /run/numberOfThreads command is issued in sequential mode."
403 <<
"\nCommand is ignored."<<
G4endl;
408 "/run/numberOfThreads command is issued to local thread.");
411 else if( command==maxThreadsCmd)
421 G4cout<<
"*** /run/useMaximumLogicalCores command is issued in sequential mode."
422 <<
"\nCommand is ignored."<<
G4endl;
427 "/run/useMaximumLogicalCores command is issued to local thread.");
430 else if ( command == pinAffinityCmd )
440 G4cout<<
"*** /run/pinAffinity command is issued in sequential mode."
441 <<
"\nCommand is ignored."<<
G4endl;
446 "/run/pinAffinity command is issued to local thread.");
450 else if( command==evModCmd)
457 const char* nv = (
const char*)newValue;
458 std::istringstream is(nv);
459 is >> nevMod >> sOnce;
465 G4cout<<
"*** /run/eventModulo command is issued in sequential mode."
466 <<
"\nCommand is ignored."<<
G4endl;
471 "/run/eventModulo command is issued to local thread.");
474 else if( command==dumpRegCmd )
476 if(newValue==
"**ALL**")
481 else if( command==dumpCoupleCmd)
485 else if( command==optCmd )
487 else if( command==brkBoECmd )
489 else if( command==brkEoECmd )
491 else if( command==abortCmd )
493 else if( command==abortEventCmd )
495 else if( command==initCmd )
497 else if( command==geomCmd )
499 else if( command==geomRebCmd )
501 else if( command==physCmd )
503 else if( command==seedCmd )
509 while(!(vl=next()).isNull())
510 { seeds[idx] = (long)(
StoI(vl)); idx++; }
512 {
G4cerr <<
"/random/setSeeds should have at least two integers. Command ignored." <<
G4endl; }
516 G4Random::setTheSeeds(seeds);
519 else if( command==randDirCmd )
521 else if( command==savingFlagCmd )
523 else if( command==saveThisRunCmd )
525 else if( command==saveThisEventCmd )
527 else if( command==restoreRandCmd )
529 else if( command==randEvtCmd )
531 else if( command==saveEachEventCmd)
533 else if( command==constScoreCmd )
535 else if( command==restoreRandCmdMT)
537 else if ( command==procUICmds)
542 if ( rm !=
nullptr ) {
545 else {
G4Exception(
"G4RunManager::ApplyNewCommand",
"Run0128",
FatalException,
"/run/workersProcessCmds command issued on a non-G4MTRunManager class instance."); }
547 G4cout<<
"*** /run/workersProcessCmds command is issued in sequential mode."
548 <<
"\nCommand is ignored."<<
G4endl;
551 "/run/workersProcessCmds command is issued to local thread.");
void GeometryHasBeenModified(G4bool prop=true)
virtual void AbortRun(G4bool softAbort=false)
void SetVerboseLevel(G4int vl)
static G4int GetNewIntValue(const char *paramString)
void SetPrintProgress(G4int i)
void SetGeometryToBeOptimized(G4bool vl)
void SetRandomNumberStorePerEvent(G4bool flag)
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
void SetRandomNumberStore(G4bool flag)
static G4bool GetNewBoolValue(const char *paramString)
static G4UImanager * GetUIpointer()
virtual void RestoreRandomNumberStatus(const G4String &fileN)
virtual void rndmSaveThisRun()
G4GLOB_DLL std::ostream G4cout
void StoreRandomNumberStatusToG4Event(G4int vl)
void PhysicsHasBeenModified()
RMType GetRunManagerType() const
virtual void ConstructScoringWorlds()
G4int G4GetNumberOfCores()
virtual void rndmSaveThisEvent()
virtual void RequestWorkersProcessCommandsStack()
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ProductionCutsTable * GetProductionCutsTable()
void SetPauseAtEndOfEvent(G4bool vl)
virtual void RestoreRndmEachEvent(G4bool)
void SetPauseAtBeginOfEvent(G4bool vl)
virtual void Initialize()
virtual void AbortEvent()
void SetRandomNumberStoreDir(const G4String &dir)
static void SetSeedOncePerCommunication(G4int val)
void DumpRegion(const G4String &rname) const
G4GLOB_DLL std::ostream G4cerr