test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimRunInterface.cc
Go to the documentation of this file.
8 
9 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
10 
12  : m_runManager(runm),m_SimTrackManager(0),m_isMaster(master)
13 {
14  if(m_runManager) {
16  }
17 }
18 
20 {}
21 
23 {
24  if(m_runManager) {
25  m_runManager->Connect(runAction);
26  }
27 }
28 
30 {
31  if(m_runManager) {
32  m_runManager->Connect(eventAction);
33  }
34 }
35 
37 {
38  if(m_runManager) {
39  m_runManager->Connect(trackAction);
40  }
41 }
42 
44 {
45  if(m_runManager) {
46  m_runManager->Connect(stepAction);
47  }
48 }
49 
51 {
52  return m_SimTrackManager;
53 }
54 
56 {
57  if(m_runManager) {
59  }
60 }
61 
62 void SimRunInterface::abortRun(bool softAbort)
63 {
64  if(m_runManager) {
65  m_runManager->abortRun(softAbort);
66  }
67 }
68 
70 {
71  G4SimEvent* ptr = 0;
72  if(m_runManager) {
73  ptr = m_runManager->simEvent();
74  }
75  return ptr;
76 }
77 
78 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
SimTrackManager * GetSimTrackManager()
Definition: RunManager.cc:503
void abortRun(bool softAbort=false)
Definition: RunManager.cc:484
G4SimEvent * simEvent()
void abortEvent()
Definition: RunManager.cc:382
SimTrackManager * m_SimTrackManager
void abortRun(bool softAbort)
SimTrackManager * GetSimTrackManager()
SimRunInterface(RunManager *run, bool master)
RunManager * m_runManager
void Connect(RunAction *)
Definition: RunManager.cc:508
G4SimEvent * simEvent()
Definition: RunManager.h:80
void Connect(RunAction *)