Main Page
Namespaces
Classes
Package Documentation
SimG4Core
KillSecondaries
src
KillSecondariesStackingAction.cc
Go to the documentation of this file.
1
#include "
SimG4Core/KillSecondaries/interface/KillSecondariesStackingAction.h
"
2
#include "
SimG4Core/Notification/interface/CurrentG4Track.h
"
3
#include "
SimG4Core/Notification/interface/NewTrackAction.h
"
4
5
#include "G4Track.hh"
6
7
G4ClassificationOfNewTrack
KillSecondariesStackingAction::ClassifyNewTrack
(
const
G4Track * aTrack) {
8
9
NewTrackAction
newTA;
10
if
(aTrack->GetCreatorProcess()==
nullptr
|| aTrack->GetParentID()==0) {
11
newTA.
primary
(aTrack);
12
return
fUrgent;
13
}
else
{
14
const
G4Track * mother =
CurrentG4Track::track
();
15
newTA.
secondary
(aTrack, *mother, 0);
16
return
fKill;
17
}
18
19
}
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
NewTrackAction::primary
void primary(const G4Track *aSecondary) const
Definition:
NewTrackAction.cc:14
KillSecondariesStackingAction.h
KillSecondariesStackingAction::ClassifyNewTrack
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *) override
Definition:
KillSecondariesStackingAction.cc:7
CurrentG4Track.h
NewTrackAction::secondary
void secondary(const G4Track *aSecondary, const G4Track &mother, int) const
Definition:
NewTrackAction.cc:22
NewTrackAction.h
CurrentG4Track::track
static const G4Track * track()
Definition:
CurrentG4Track.cc:10
NewTrackAction
Definition:
NewTrackAction.h:14
Generated for CMSSW Reference Manual by
1.8.11