Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
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/MCTruthUtil.h
"
4
5
#include "G4Track.hh"
6
7
G4ClassificationOfNewTrack
KillSecondariesStackingAction::ClassifyNewTrack
(
const
G4Track *aTrack) {
8
auto
track
=
const_cast<
G4Track *
>
(aTrack);
9
if
(aTrack->GetCreatorProcess() ==
nullptr
|| aTrack->GetParentID() == 0) {
10
MCTruthUtil::primary
(
track
);
11
return
fUrgent;
12
}
else
{
13
const
G4Track *mother =
CurrentG4Track::track
();
14
MCTruthUtil::secondary
(
track
, *mother, 0);
15
return
fKill;
16
}
17
}
KillSecondariesStackingAction.h
KillSecondariesStackingAction::ClassifyNewTrack
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *) override
Definition:
KillSecondariesStackingAction.cc:7
CurrentG4Track.h
MCTruthUtil::secondary
static void secondary(G4Track *aSecondary, const G4Track &mother, int)
Definition:
MCTruthUtil.cc:18
MCTruthUtil.h
MCTruthUtil::primary
static void primary(G4Track *aPrimary)
Definition:
MCTruthUtil.cc:8
CurrentG4Track::track
static const G4Track * track()
Definition:
CurrentG4Track.cc:7
HLT_2023v12_cff.track
track
Definition:
HLT_2023v12_cff.py:9616
Generated for CMSSW Reference Manual by
1.8.14