CMS 3D CMS Logo

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......
SimTrackManager
Definition: SimTrackManager.h:35
RunAction.h
TrackingAction.h
RunManagerMTWorker::abortRun
void abortRun(bool softAbort=false)
Definition: RunManagerMTWorker.cc:576
SteppingAction.h
EventAction
Definition: EventAction.h:23
G4SimEvent
Definition: G4SimEvent.h:14
SimRunInterface::abortRun
void abortRun(bool softAbort)
Definition: SimRunInterface.cc:60
RunManagerMTWorker.h
RunManagerMTWorker::abortEvent
void abortEvent()
Definition: RunManagerMTWorker.cc:559
EventAction.h
SimRunInterface::setRunManagerMTWorker
void setRunManagerMTWorker(RunManagerMTWorker *run)
Definition: SimRunInterface.cc:24
SteppingAction
Definition: SteppingAction.h:32
RunManagerMTWorker::simEvent
G4SimEvent * simEvent()
Definition: RunManagerMTWorker.h:63
RunManagerMTWorker::Connect
void Connect(RunAction *)
Definition: RunManagerMTWorker.cc:419
SimRunInterface::SimRunInterface
SimRunInterface(RunManagerMT *run, bool master)
Definition: SimRunInterface.cc:12
RunManagerMTWorker::GetSimTrackManager
SimTrackManager * GetSimTrackManager()
Definition: RunManagerMTWorker.cc:438
SimRunInterface::m_SimTrackManager
SimTrackManager * m_SimTrackManager
Definition: SimRunInterface.h:49
TrackingAction
Definition: TrackingAction.h:16
SimRunInterface::Connect
void Connect(RunAction *)
Definition: SimRunInterface.cc:26
RunManagerMT
Definition: RunManagerMT.h:50
SimRunInterface::GetSimTrackManager
SimTrackManager * GetSimTrackManager()
Definition: SimRunInterface.cc:52
RunAction
Definition: RunAction.h:15
SimRunInterface::~SimRunInterface
~SimRunInterface()
Definition: SimRunInterface.cc:22
RunManagerMT.h
G4SimEvent.h
SimRunInterface::abortEvent
void abortEvent()
Definition: SimRunInterface.cc:54
RunManagerMTWorker
Definition: RunManagerMTWorker.h:48
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SimRunInterface::m_runManagerMT
RunManagerMT * m_runManagerMT
Definition: SimRunInterface.h:46
SimRunInterface.h
SimRunInterface::simEvent
G4SimEvent * simEvent()
Definition: SimRunInterface.cc:66
RunManagerMT::Connect
void Connect(RunAction *)
Definition: RunManagerMT.cc:261
SimRunInterface::m_runManagerMTWorker
RunManagerMTWorker * m_runManagerMTWorker
Definition: SimRunInterface.h:47
volumeBasedMagneticField_160812_cfi.master
master
Definition: volumeBasedMagneticField_160812_cfi.py:60