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
▼
The Gaudi Framework
Gaudi Software Framework
►
Changelog
►
Changelog
README
Platform Specific Sources
►
Gaudi Manual
►
THistSvc
►
Intel Profiler Example
►
How to build and use Gaudi with CMake
Related external libraries
►
Release Notes
Fix-Me's
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
PythiaID.py
Go to the documentation of this file.
1
14
def
properties
(pid, sgn=1):
15
return
{
16
"name"
: pid.name(sgn),
17
"threeCharge"
: pid.chargeType(sgn),
18
"hasAnti"
: pid.hasAnti(),
19
"isLepton"
: pid.isLepton(),
20
"isQuark"
: pid.isQuark(),
21
"isDiQuark"
: pid.isDiquark(),
22
"isHadron"
: pid.isHadron(),
23
"isMeson"
: pid.isMeson(),
24
"isBaryon"
: pid.isBaryon(),
25
"jSpin"
: pid.spinType(),
26
}
27
28
29
# Generate the PID dictionary and optionally archive.
30
def
generate
(dat=None):
31
import
pythia8
32
33
pythia = pythia8.Pythia(
""
,
False
)
34
35
# Loop over the particles.
36
pid, pids = 1, {}
37
while
pid != 0:
38
pids[pid] =
properties
(pythia.particleData.particleDataEntryPtr(pid))
39
if
pids[pid][
"hasAnti"
]:
40
pids[-pid] =
properties
(pythia.particleData.particleDataEntryPtr(pid), -1)
41
pid = pythia.particleData.nextId(
abs
(pid))
42
43
# Archive if requested.
44
if
dat:
45
with
open(dat,
"w"
)
as
dat:
46
dat.write(repr(pids))
47
return
pids
48
49
50
# Load the Pythia dictionary.
51
try
:
52
pids = eval(open(
"PythiaID.dat"
).
read
())
53
except
FileNotFoundError:
54
pids =
generate
(
"PythiaID.dat"
)
PythiaID.generate
def generate(dat=None)
Definition:
PythiaID.py:30
std::abs
Gaudi::ParticleID abs(const Gaudi::ParticleID &p)
Return the absolute value for a PID.
Definition:
ParticleID.h:191
hivetimeline.read
def read(f, regex=".*", skipevents=0)
Definition:
hivetimeline.py:32
PythiaID.properties
def properties(pid, sgn=1)
(c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations # # This software i...
Definition:
PythiaID.py:14
GaudiPartProp
scripts
PythiaID.py
Generated on Mon Apr 7 2025 16:26:24 for The Gaudi Framework by
1.8.18