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
Notification
interface
G4TrackToParticleID.h
Go to the documentation of this file.
1
#ifndef SimG4Core_G4TrackToParticleID_H
2
#define SimG4Core_G4TrackToParticleID_H
3
4
class
G4Track;
5
class
G4PrimaryParticle;
6
7
class
G4TrackToParticleID
{
8
public
:
9
// CMS convention (different from ordinary PDG code)
10
static
int
particleID
(
const
G4Track *);
11
static
int
particleID
(
const
G4PrimaryParticle *,
const
int
id
);
12
13
static
bool
isGammaElectronPositron
(
int
pdgCode);
14
static
bool
isGammaElectronPositron
(
const
G4Track *);
15
16
static
bool
isMuon
(
int
pdgCode);
17
static
bool
isMuon
(
const
G4Track *);
18
19
// pi+-, p, pbar, n, nbar, KL, K+-, light ion and anti-ion, generic ion
20
static
bool
isStableHadron
(
int
pdgCode);
21
22
// pi+-, p, pbar, n, nbar, KL, K+-, light ions and anti-ions
23
static
bool
isStableHadronIon
(
const
G4Track *);
24
};
25
26
#endif
G4TrackToParticleID
Definition:
G4TrackToParticleID.h:7
G4TrackToParticleID::isMuon
static bool isMuon(int pdgCode)
Definition:
G4TrackToParticleID.cc:37
G4TrackToParticleID::isStableHadron
static bool isStableHadron(int pdgCode)
Definition:
G4TrackToParticleID.cc:43
G4TrackToParticleID::particleID
static int particleID(const G4Track *)
Definition:
G4TrackToParticleID.cc:8
G4TrackToParticleID::isStableHadronIon
static bool isStableHadronIon(const G4Track *)
Definition:
G4TrackToParticleID.cc:50
G4TrackToParticleID::isGammaElectronPositron
static bool isGammaElectronPositron(int pdgCode)
Definition:
G4TrackToParticleID.cc:27
Generated for CMSSW Reference Manual by
1.8.14