Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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/G4SimEvent.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
SimRunInterface::~SimRunInterface
() {}
23
24
void
SimRunInterface::setRunManagerMTWorker
(
RunManagerMTWorker
*
run
) {
m_runManagerMTWorker
=
run
; }
25
26
void
SimRunInterface::Connect
(
RunAction
* runAction) {
27
if
(
m_runManagerMT
) {
28
m_runManagerMT
->
Connect
(runAction);
29
}
else
if
(
m_runManagerMTWorker
) {
30
m_runManagerMTWorker
->
Connect
(runAction);
31
}
32
}
33
34
void
SimRunInterface::Connect
(
EventAction
* eventAction) {
35
if
(
m_runManagerMTWorker
) {
36
m_runManagerMTWorker
->
Connect
(eventAction);
37
}
38
}
39
40
void
SimRunInterface::Connect
(
TrackingAction
* trackAction) {
41
if
(
m_runManagerMTWorker
) {
42
m_runManagerMTWorker
->
Connect
(trackAction);
43
}
44
}
45
46
void
SimRunInterface::Connect
(
SteppingAction
* stepAction) {
47
if
(
m_runManagerMTWorker
) {
48
m_runManagerMTWorker
->
Connect
(stepAction);
49
}
50
}
51
52
SimTrackManager
*
SimRunInterface::GetSimTrackManager
() {
return
m_SimTrackManager
; }
53
54
void
SimRunInterface::abortEvent
() {
55
if
(
m_runManagerMTWorker
) {
56
m_runManagerMTWorker
->
abortEvent
();
57
}
58
}
59
60
void
SimRunInterface::abortRun
(
bool
softAbort) {
61
if
(
m_runManagerMTWorker
) {
62
m_runManagerMTWorker
->
abortRun
(softAbort);
63
}
64
}
65
66
G4SimEvent
*
SimRunInterface::simEvent
() {
67
G4SimEvent
* ptr =
nullptr
;
68
if
(
m_runManagerMTWorker
) {
69
ptr =
m_runManagerMTWorker
->
simEvent
();
70
}
71
return
ptr;
72
}
73
74
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
RunManagerMT::Connect
void Connect(RunAction *)
Definition:
RunManagerMT.cc:265
G4SimEvent.h
funct::master
Master< F > master(const F &f)
Definition:
FunctClone.h:63
SimRunInterface::setRunManagerMTWorker
void setRunManagerMTWorker(RunManagerMTWorker *run)
Definition:
SimRunInterface.cc:24
TrackingAction.h
RunManagerMTWorker::GetSimTrackManager
SimTrackManager * GetSimTrackManager()
Definition:
RunManagerMTWorker.cc:419
EventAction.h
SimRunInterface::simEvent
G4SimEvent * simEvent()
Definition:
SimRunInterface.cc:66
RunManagerMTWorker.h
SimRunInterface::m_runManagerMTWorker
RunManagerMTWorker * m_runManagerMTWorker
Definition:
SimRunInterface.h:47
RunManagerMTWorker::simEvent
G4SimEvent * simEvent()
Definition:
RunManagerMTWorker.h:64
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:60
SimRunInterface::GetSimTrackManager
SimTrackManager * GetSimTrackManager()
Definition:
SimRunInterface.cc:52
submitPVValidationJobs.run
tuple run
Definition:
submitPVValidationJobs.py:227
EventAction
Definition:
EventAction.h:23
RunManagerMTWorker::abortEvent
void abortEvent()
Definition:
RunManagerMTWorker.cc:533
RunManagerMTWorker::abortRun
void abortRun(bool softAbort=false)
Definition:
RunManagerMTWorker.cc:550
RunManagerMT
Definition:
RunManagerMT.h:51
SimRunInterface.h
SimRunInterface::m_runManagerMT
RunManagerMT * m_runManagerMT
Definition:
SimRunInterface.h:46
SteppingAction.h
SteppingAction
Definition:
SteppingAction.h:32
TrackingAction
Definition:
TrackingAction.h:16
SimRunInterface::abortEvent
void abortEvent()
Definition:
SimRunInterface.cc:54
RunManagerMTWorker
Definition:
RunManagerMTWorker.h:49
SimRunInterface::Connect
void Connect(RunAction *)
Definition:
SimRunInterface.cc:26
SimRunInterface::~SimRunInterface
~SimRunInterface()
Definition:
SimRunInterface.cc:22
G4SimEvent
Definition:
G4SimEvent.h:14
RunAction.h
SimRunInterface::SimRunInterface
SimRunInterface(RunManagerMT *run, bool master)
Definition:
SimRunInterface.cc:12
SimTrackManager
Definition:
SimTrackManager.h:35
RunManagerMTWorker::Connect
void Connect(RunAction *)
Definition:
RunManagerMTWorker.cc:400
Generated for CMSSW Reference Manual by
1.8.5