Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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/RunManager.h
"
3
#include "
SimG4Core/Application/interface/RunAction.h
"
4
#include "
SimG4Core/Application/interface/EventAction.h
"
5
#include "
SimG4Core/Application/interface/TrackingAction.h
"
6
#include "
SimG4Core/Application/interface/SteppingAction.h
"
7
#include "
SimG4Core/Application/interface/G4SimEvent.h
"
8
9
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
10
11
SimRunInterface::SimRunInterface
(
RunManager
* runm,
bool
master
)
12
: m_runManager(runm),m_SimTrackManager(0),m_isMaster(master)
13
{
14
if
(
m_runManager
) {
15
m_SimTrackManager
=
m_runManager
->
GetSimTrackManager
();
16
}
17
}
18
19
SimRunInterface::~SimRunInterface
()
20
{}
21
22
void
SimRunInterface::Connect
(
RunAction
* runAction)
23
{
24
if
(
m_runManager
) {
25
m_runManager
->
Connect
(runAction);
26
}
27
}
28
29
void
SimRunInterface::Connect
(
EventAction
* eventAction)
30
{
31
if
(
m_runManager
) {
32
m_runManager
->
Connect
(eventAction);
33
}
34
}
35
36
void
SimRunInterface::Connect
(
TrackingAction
* trackAction)
37
{
38
if
(
m_runManager
) {
39
m_runManager
->
Connect
(trackAction);
40
}
41
}
42
43
void
SimRunInterface::Connect
(
SteppingAction
* stepAction)
44
{
45
if
(
m_runManager
) {
46
m_runManager
->
Connect
(stepAction);
47
}
48
}
49
50
SimTrackManager
*
SimRunInterface::GetSimTrackManager
()
51
{
52
return
m_SimTrackManager
;
53
}
54
55
void
SimRunInterface::abortEvent
()
56
{
57
if
(
m_runManager
) {
58
m_runManager
->
abortEvent
();
59
}
60
}
61
62
void
SimRunInterface::abortRun
(
bool
softAbort)
63
{
64
if
(
m_runManager
) {
65
m_runManager
->
abortRun
(softAbort);
66
}
67
}
68
69
G4SimEvent
*
SimRunInterface::simEvent
()
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......
G4SimEvent.h
RunManager::GetSimTrackManager
SimTrackManager * GetSimTrackManager()
Definition:
RunManager.cc:503
TrackingAction.h
RunManager::abortRun
void abortRun(bool softAbort=false)
Definition:
RunManager.cc:484
EventAction.h
SimRunInterface::simEvent
G4SimEvent * simEvent()
Definition:
SimRunInterface.cc:69
RunManager::abortEvent
void abortEvent()
Definition:
RunManager.cc:382
RunAction
Definition:
RunAction.h:15
SimRunInterface::m_SimTrackManager
SimTrackManager * m_SimTrackManager
Definition:
SimRunInterface.h:45
autoMagneticFieldProducer_cfi.master
tuple master
Definition:
autoMagneticFieldProducer_cfi.py:99
SimRunInterface::abortRun
void abortRun(bool softAbort)
Definition:
SimRunInterface.cc:62
SimRunInterface::GetSimTrackManager
SimTrackManager * GetSimTrackManager()
Definition:
SimRunInterface.cc:50
SimRunInterface::SimRunInterface
SimRunInterface(RunManager *run, bool master)
Definition:
SimRunInterface.cc:11
EventAction
Definition:
EventAction.h:24
SimRunInterface::m_runManager
RunManager * m_runManager
Definition:
SimRunInterface.h:43
SimRunInterface.h
RunManager
Definition:
RunManager.h:60
SteppingAction.h
SteppingAction
Definition:
SteppingAction.h:20
TrackingAction
Definition:
TrackingAction.h:15
RunManager::Connect
void Connect(RunAction *)
Definition:
RunManager.cc:508
RunManager::simEvent
G4SimEvent * simEvent()
Definition:
RunManager.h:80
SimRunInterface::abortEvent
void abortEvent()
Definition:
SimRunInterface.cc:55
SimRunInterface::Connect
void Connect(RunAction *)
Definition:
SimRunInterface.cc:22
SimRunInterface::~SimRunInterface
~SimRunInterface()
Definition:
SimRunInterface.cc:19
G4SimEvent
Definition:
G4SimEvent.h:15
RunAction.h
RunManager.h
SimTrackManager
Definition:
SimTrackManager.h:34
Generated for CMSSW Reference Manual by
1.8.5