CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SimRunInterface.cc
Go to the documentation of this file.
9 
10 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
11 
13  : m_runManagerMT(runm), m_runManagerMTWorker(nullptr), m_SimTrackManager(nullptr), m_isMaster(master) {}
14 
16  : m_runManagerMT(nullptr), m_runManagerMTWorker(runm), m_SimTrackManager(nullptr), m_isMaster(master) {
19  }
20 }
21 
23 
25 
27  if (m_runManagerMT) {
28  m_runManagerMT->Connect(runAction);
29  } else if (m_runManagerMTWorker) {
30  m_runManagerMTWorker->Connect(runAction);
31  }
32 }
33 
36  m_runManagerMTWorker->Connect(eventAction);
37  }
38 }
39 
42  m_runManagerMTWorker->Connect(trackAction);
43  }
44 }
45 
48  m_runManagerMTWorker->Connect(stepAction);
49  }
50 }
51 
53 
57  }
58 }
59 
60 void SimRunInterface::abortRun(bool softAbort) {
62  m_runManagerMTWorker->abortRun(softAbort);
63  }
64 }
65 
67  G4SimEvent* ptr = nullptr;
70  }
71  return ptr;
72 }
73 
74 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void Connect(RunAction *)
Master< F > master(const F &f)
Definition: FunctClone.h:63
void setRunManagerMTWorker(RunManagerMTWorker *run)
SimTrackManager * GetSimTrackManager()
G4SimEvent * simEvent()
RunManagerMTWorker * m_runManagerMTWorker
G4SimEvent * simEvent()
SimTrackManager * m_SimTrackManager
void abortRun(bool softAbort)
SimTrackManager * GetSimTrackManager()
void abortRun(bool softAbort=false)
RunManagerMT * m_runManagerMT
void Connect(RunAction *)
SimRunInterface(RunManagerMT *run, bool master)
void Connect(RunAction *)