406{
407 if (command == beamOnCmd) {
410 const auto nv = (const char*)newValue;
411 std::istringstream is(nv);
412 is >> nev >> macroFileName >> nst;
413 if (macroFileName == "***NULL***") {
415 }
416 else {
417 runManager->
BeamOn(nev, macroFileName, nst);
418 }
419 }
420 else if (command == verboseCmd) {
422 }
423 else if (command == printProgCmd) {
425 }
426 else if (command == nThreadsCmd) {
431 }
433 G4cout <<
"*** /run/numberOfThreads command is issued in sequential mode."
434 <<
"\nCommand is ignored." <<
G4endl;
435 }
436 else {
438 "/run/numberOfThreads command is issued to local thread.");
439 }
440 }
441 else if (command == maxThreadsCmd) {
446 }
448 G4cout <<
"*** /run/useMaximumLogicalCores command is issued in "
449 "sequential mode."
450 <<
"\nCommand is ignored." <<
G4endl;
451 }
452 else {
454 "/run/useMaximumLogicalCores command is issued to local thread.");
455 }
456 }
457 else if (command == pinAffinityCmd) {
462 }
464 G4cout <<
"*** /run/pinAffinity command is issued in sequential mode."
465 <<
"\nCommand is ignored." <<
G4endl;
466 }
467 else {
469 "/run/pinAffinity command is issued to local thread.");
470 }
471 }
472 else if (command == evModCmd) {
477 const auto nv = (const char*)newValue;
478 std::istringstream is(nv);
479 is >> nevMod >> sOnce;
482 }
484 G4cout <<
"*** /run/eventModulo command is issued in sequential mode."
485 <<
"\nCommand is ignored." <<
G4endl;
486 }
487 else {
489 "/run/eventModulo command is issued to local thread.");
490 }
491 }
492 else if (command == dumpRegCmd) {
493 if (newValue == "**ALL**") {
495 }
496 else {
498 }
499 }
500 else if (command == dumpCoupleCmd) {
502 }
503 else if (command == optCmd) {
505 }
506 else if (command == brkBoECmd) {
508 }
509 else if (command == brkEoECmd) {
511 }
512 else if (command == abortCmd) {
514 }
515 else if (command == abortEventCmd) {
517 }
518 else if (command == initCmd) {
520 }
521 else if (command == geomCmd) {
523 }
524 else if (command == geomRebCmd) {
526 }
527 else if (command == physCmd) {
529 }
530 else if (command == seedCmd) {
535 while (!(vl = next()).empty()) {
536 seeds[idx] =
StoL(vl);
537 ++idx;
538 }
539 if (idx < 2) {
540 G4cerr <<
"/random/setSeeds should have at least two values. "
541 "Command ignored."
543 }
544 else {
545 seeds[idx] = 0;
546 G4Random::setTheSeeds(seeds);
547 }
548 }
549 else if (command == randDirCmd) {
551 }
552 else if (command == savingFlagCmd) {
554 }
555 else if (command == saveThisRunCmd) {
557 }
558 else if (command == saveThisEventCmd) {
560 }
561 else if (command == restoreRandCmd) {
563 }
564 else if (command == randEvtCmd) {
566 }
567 else if (command == saveEachEventCmd) {
569 }
570 else if (command == constScoreCmd) {
572 }
573 else if (command == restoreRandCmdMT) {
575 }
576 else if (command == procUICmds) {
580 if (rm != nullptr) {
581 rm->RequestWorkersProcessCommandsStack();
582 }
583 else {
585 "/run/workersProcessCmds command issued on a "
586 "non-G4MTRunManager class instance.");
587 }
588 }
590 G4cout <<
"*** /run/workersProcessCmds command is issued in sequential mode."
591 <<
"\nCommand is ignored." <<
G4endl;
592 }
593 else {
595 "/run/workersProcessCmds command is issued to local thread.");
596 }
597 }
598}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cerr
static void SetSeedOncePerCommunication(G4int val)
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)
static G4bool GetNewBoolValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)
void SetPauseAtBeginOfEvent(G4bool vl)
static G4UImanager * GetUIpointer()
void SetPauseAtEndOfEvent(G4bool vl)
G4long StoL(const G4String &s)
G4int G4GetNumberOfCores()
bool SetPinAffinity(int idx)