CMS 3D CMS Logo

SimRunInterface.cc
Go to the documentation of this file.
10 
11 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
12 
14  : m_runManager(runm),m_runManagerMT(nullptr),m_runManagerMTWorker(nullptr),
15  m_SimTrackManager(nullptr),
16  m_isMaster(master)
17 {
18  if(m_runManager) {
20  }
21 }
22 
26 {}
27 
31 {
34  }
35 }
36 
38 {}
39 
42 }
43 
45 {
46  if(m_runManager) {
47  m_runManager->Connect(runAction);
48  } else if(m_runManagerMT) {
49  m_runManagerMT->Connect(runAction);
50  } else if(m_runManagerMTWorker) {
51  m_runManagerMTWorker->Connect(runAction);
52  }
53 }
54 
56 {
57  if(m_runManager) {
58  m_runManager->Connect(eventAction);
59  } else if(m_runManagerMTWorker) {
60  m_runManagerMTWorker->Connect(eventAction);
61  }
62 }
63 
65 {
66  if(m_runManager) {
67  m_runManager->Connect(trackAction);
68  } else if(m_runManagerMTWorker) {
69  m_runManagerMTWorker->Connect(trackAction);
70  }
71 }
72 
74 {
75  if(m_runManager) {
76  m_runManager->Connect(stepAction);
77  } else if(m_runManagerMTWorker) {
78  m_runManagerMTWorker->Connect(stepAction);
79  }
80 }
81 
83 {
84  return m_SimTrackManager;
85 }
86 
88 {
89  if(m_runManager) {
91  } else if(m_runManagerMTWorker) {
93  }
94 }
95 
96 void SimRunInterface::abortRun(bool softAbort)
97 {
98  if(m_runManager) {
99  m_runManager->abortRun(softAbort);
100  } else if(m_runManagerMTWorker) {
101  m_runManagerMTWorker->abortRun(softAbort);
102  }
103 }
104 
106 {
107  G4SimEvent* ptr = 0;
108  if(m_runManager) {
109  ptr = m_runManager->simEvent();
110  } else if(m_runManagerMTWorker) {
112  }
113  return ptr;
114 }
115 
116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void Connect(RunAction *)
Master< F > master(const F &f)
Definition: FunctClone.h:68
SimTrackManager * GetSimTrackManager()
Definition: RunManager.cc:537
void setRunManagerMTWorker(RunManagerMTWorker *run)
void abortRun(bool softAbort=false)
Definition: RunManager.cc:519
SimTrackManager * GetSimTrackManager()
#define nullptr
G4SimEvent * simEvent()
void abortEvent()
Definition: RunManager.cc:434
RunManagerMTWorker * m_runManagerMTWorker
G4SimEvent * simEvent()
SimTrackManager * m_SimTrackManager
void abortRun(bool softAbort)
SimTrackManager * GetSimTrackManager()
SimRunInterface(RunManager *run, bool master)
void abortRun(bool softAbort=false)
RunManager * m_runManager
RunManagerMT * m_runManagerMT
void Connect(RunAction *)
Definition: RunManager.cc:542
G4SimEvent * simEvent()
Definition: RunManager.h:82
void Connect(RunAction *)
void Connect(RunAction *)