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
ParticleProperty.py
Go to the documentation of this file.
1
14
def
properties
(pid):
15
return
{
16
"name"
: pid.name(),
17
"threeCharge"
: int(round(pid.charge() * 3)),
18
"hasAnti"
: pid.selfcc(),
19
}
20
21
22
# Generate the PID dictionary and optionally archive.
23
def
generate
(dat=None):
24
# The following is misunderstood by flake8 - the import is needed as it
25
# has necessary side effects
26
import
GaudiPartProp.PartPropSvc
# noqa: F401
27
from
GaudiPython.Bindings
import
AppMgr
28
29
gaudi =
AppMgr
()
30
ppsvc = gaudi.gaudiPartProp()
31
32
# Loop over the particles and add entries.
33
pids = {}
34
for
pid
in
ppsvc:
35
pids[pid.pid().pid()] =
properties
(pid)
36
37
# Archive if requested.
38
if
dat:
39
with
open(dat,
"w"
)
as
dat:
40
dat.write(repr(pids))
41
return
pids
42
43
44
# Load the PID dictionary.
45
try
:
46
pids = eval(open(
"ParticleProperty.dat"
).
read
())
47
except
FileNotFoundError:
48
pids =
generate
(
"ParticleProperty.dat"
)
GaudiPartProp.Service.AppMgr
AppMgr
Definition:
Service.py:41
GaudiPartProp.PartPropSvc
Definition:
PartPropSvc.py:1
GaudiPython.Bindings
Definition:
Bindings.py:1
ParticleProperty.properties
def properties(pid)
(c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations # # This software i...
Definition:
ParticleProperty.py:14
hivetimeline.read
def read(f, regex=".*", skipevents=0)
Definition:
hivetimeline.py:32
ParticleProperty.generate
def generate(dat=None)
Definition:
ParticleProperty.py:23
GaudiPartProp
scripts
ParticleProperty.py
Generated on Mon Apr 7 2025 16:26:24 for The Gaudi Framework by
1.8.18