Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework
master (f31105fd)
Main Page
Related Pages
Modules
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
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
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
Typedefs
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
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
Enumerations
a
c
d
e
f
i
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
g
h
i
m
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
e
g
h
i
m
o
p
q
r
s
t
v
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
c
e
f
p
u
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
ParticleID.py
Go to the documentation of this file.
1
14
def
properties
(pid):
15
from
GaudiPartProp.decorators
import
Gaudi
16
17
pid =
Gaudi.ParticleID
(pid)
18
return
{
19
"isSM"
: pid.isSM(),
20
"isValid"
: pid.isValid(),
21
"isMeson"
: pid.isMeson(),
22
"isBaryon"
: pid.isBaryon(),
23
"isDiQuark"
: pid.isDiQuark(),
24
"isHadron"
: pid.isHadron(),
25
"isLepton"
: pid.isLepton(),
26
"isNucleus"
: pid.isNucleus(),
27
"hasUp"
: pid.hasUp(),
28
"hasDown"
: pid.hasDown(),
29
"hasStrange"
: pid.hasStrange(),
30
"hasCharm"
: pid.hasCharm(),
31
"hasBottom"
: pid.hasBottom(),
32
"hasTop"
: pid.hasTop(),
33
"hasBottomPrime"
: pid.hasBottomPrime(),
34
"hasTopPrime"
: pid.hasTopPrime(),
35
"isQuark"
: pid.isQuark(),
36
"hasQuarks"
: pid.hasQuarks(),
37
"Z"
: pid.Z(),
38
"A"
: pid.A(),
39
"nLambda"
: pid.nLambda(),
40
"threeCharge"
: pid.threeCharge(),
41
"jSpin"
: pid.jSpin(),
42
"sSpin"
: pid.sSpin(),
43
"lSpin"
: pid.lSpin(),
44
}
45
46
47
# Generate the PID dictionary and optionally archive.
48
def
generate
(dat=None):
49
import
ParticleProperty
50
import
PythiaID
51
52
pids = PythiaID.pids
53
pids.update(ParticleProperty.pids)
54
55
# Loop over the particles and update entries.
56
for
pid
in
pids:
57
pids[pid] =
properties
(pid)
58
59
# Archive if requested.
60
if
dat:
61
with
open(dat,
"w"
)
as
dat:
62
dat.write(repr(pids))
63
return
pids
64
65
66
# Load the PID dictionary.
67
try
:
68
pids = eval(open(
"ParticleID.dat"
).
read
())
69
except
FileNotFoundError:
70
pids =
generate
(
"ParticleID.dat"
)
ParticleID.properties
def properties(pid)
(c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations # # This software i...
Definition:
ParticleID.py:14
ParticleID.generate
def generate(dat=None)
Definition:
ParticleID.py:48
GaudiPartProp.decorators
Definition:
decorators.py:1
hivetimeline.read
def read(f, regex=".*", skipevents=0)
Definition:
hivetimeline.py:32
Gaudi::ParticleID
Definition:
ParticleID.h:43
GaudiPartProp
scripts
ParticleID.py
Generated on Mon Apr 7 2025 16:26:24 for The Gaudi Framework by
1.8.18