src
SimG4Core
Application
src
SimRunInterface.cc
Go to the documentation of this file.
1
#include "
SimG4Core/Application/interface/SimRunInterface.h
"
2
#include "
SimG4Core/Application/interface/RunManagerMT.h
"
3
#include "
SimG4Core/Application/interface/RunManagerMTWorker.h
"
4
#include "
SimG4Core/Application/interface/RunAction.h
"
5
#include "
SimG4Core/Application/interface/EventAction.h
"
6
#include "
SimG4Core/Application/interface/TrackingAction.h
"
7
#include "
SimG4Core/Application/interface/SteppingAction.h
"
8
#include "
SimG4Core/Notification/interface/TmpSimEvent.h
"
9
10
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
11
12
SimRunInterface::SimRunInterface
(
RunManagerMT
* runm,
bool
master
)
13
: m_runManagerMT(runm), m_runManagerMTWorker(nullptr), m_SimTrackManager(nullptr), m_isMaster(
master
) {}
14
15
SimRunInterface::SimRunInterface
(
RunManagerMTWorker
* runm,
bool
master
)
16
: m_runManagerMT(nullptr), m_runManagerMTWorker(runm), m_SimTrackManager(nullptr), m_isMaster(
master
) {
17
if
(
m_runManagerMTWorker
) {
18
m_SimTrackManager
=
m_runManagerMTWorker
->
getSimTrackManager
();
19
}
20
}
21
22
void
SimRunInterface::setRunManagerMTWorker
(
RunManagerMTWorker
*
run
) {
m_runManagerMTWorker
=
run
; }
23
24
void
SimRunInterface::Connect
(
RunAction
* runAction) {
25
if
(
m_runManagerMT
) {
26
m_runManagerMT
->
Connect
(runAction);
27
}
else
if
(
m_runManagerMTWorker
) {
28
m_runManagerMTWorker
->
Connect
(runAction);
29
}
30
}
31
32
void
SimRunInterface::Connect
(
EventAction
* eventAction) {
33
if
(
m_runManagerMTWorker
) {
34
m_runManagerMTWorker
->
Connect
(eventAction);
35
}
36
}
37
38
void
SimRunInterface::Connect
(
TrackingAction
* trackAction) {
39
if
(
m_runManagerMTWorker
) {
40
m_runManagerMTWorker
->
Connect
(trackAction);
41
}
42
}
43
44
void
SimRunInterface::Connect
(
SteppingAction
* stepAction) {
45
if
(
m_runManagerMTWorker
) {
46
m_runManagerMTWorker
->
Connect
(stepAction);
47
}
48
}
49
50
SimTrackManager
*
SimRunInterface::GetSimTrackManager
() {
return
m_SimTrackManager
; }
51
52
void
SimRunInterface::abortEvent
() {
53
if
(
m_runManagerMTWorker
) {
54
m_runManagerMTWorker
->
abortEvent
();
55
}
56
}
57
58
void
SimRunInterface::abortRun
(
bool
softAbort) {
59
if
(
m_runManagerMTWorker
) {
60
m_runManagerMTWorker
->
abortRun
(softAbort);
61
}
62
}
63
64
TmpSimEvent
*
SimRunInterface::simEvent
() {
65
TmpSimEvent
* ptr =
nullptr
;
66
if
(
m_runManagerMTWorker
) {
67
ptr =
m_runManagerMTWorker
->
simEvent
();
68
}
69
return
ptr;
70
}
71
72
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
RunManagerMT::Connect
void Connect(RunAction *)
Definition:
RunManagerMT.cc:281
SimRunInterface::setRunManagerMTWorker
void setRunManagerMTWorker(RunManagerMTWorker *run)
Definition:
SimRunInterface.cc:22
TrackingAction.h
TmpSimEvent.h
EventAction.h
RunManagerMTWorker.h
TmpSimEvent
Definition:
TmpSimEvent.h:14
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
SimRunInterface::m_runManagerMTWorker
RunManagerMTWorker * m_runManagerMTWorker
Definition:
SimRunInterface.h:47
RunAction
Definition:
RunAction.h:15
RunManagerMT.h
SimRunInterface::m_SimTrackManager
SimTrackManager * m_SimTrackManager
Definition:
SimRunInterface.h:49
SimRunInterface::abortRun
void abortRun(bool softAbort)
Definition:
SimRunInterface.cc:58
SimRunInterface::GetSimTrackManager
SimTrackManager * GetSimTrackManager()
Definition:
SimRunInterface.cc:50
volumeBasedMagneticField_160812_cfi.master
master
Definition:
volumeBasedMagneticField_160812_cfi.py:60
SimRunInterface::simEvent
TmpSimEvent * simEvent()
Definition:
SimRunInterface.cc:64
EventAction
Definition:
EventAction.h:22
RunManagerMTWorker::abortEvent
void abortEvent()
Definition:
RunManagerMTWorker.cc:593
RunManagerMTWorker::abortRun
void abortRun(bool softAbort=false)
Definition:
RunManagerMTWorker.cc:610
RunManagerMT
Definition:
RunManagerMT.h:51
SimRunInterface.h
SimRunInterface::m_runManagerMT
RunManagerMT * m_runManagerMT
Definition:
SimRunInterface.h:46
RunManagerMTWorker::getSimTrackManager
SimTrackManager * getSimTrackManager()
Definition:
RunManagerMTWorker.cc:469
SteppingAction.h
SteppingAction
Definition:
SteppingAction.h:20
TrackingAction
Definition:
TrackingAction.h:16
SimRunInterface::abortEvent
void abortEvent()
Definition:
SimRunInterface.cc:52
RunManagerMTWorker
Definition:
RunManagerMTWorker.h:50
SimRunInterface::Connect
void Connect(RunAction *)
Definition:
SimRunInterface.cc:24
RunManagerMTWorker::simEvent
TmpSimEvent * simEvent()
Definition:
RunManagerMTWorker.h:76
RunAction.h
SimRunInterface::SimRunInterface
SimRunInterface(RunManagerMT *run, bool master)
Definition:
SimRunInterface.cc:12
SimTrackManager
Definition:
SimTrackManager.h:28
RunManagerMTWorker::Connect
void Connect(RunAction *)
Definition:
RunManagerMTWorker.cc:446
Generated for CMSSW Reference Manual by
1.8.14