Belle II Software
release-08-02-06
Main Page
Modules
Namespaces
Namespace List
Namespace 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
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
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
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
printMCParticleArray.py
1
#!/usr/bin/env python3
2
3
10
11
# Doxygen should skip this script
12
# @cond
13
14
"""
15
This script loads specified ROOT file and prints the content of the MCParticle StoreArray
16
for each event. To be used for debugging.
17
18
Execute script with:
19
$> basf2 printMCParticleArray.py -i [input_ROOT_file]
20
"""
21
22
import
basf2
23
import
modularAnalysis
as
ma
24
25
path = basf2.Path()
26
ma.inputMdst(filename=basf2.find_file(
'mdst14.root'
,
'validation'
,
True
),
27
path=path)
28
ma.printMCParticles(path=path)
29
30
# The printed information can be stored in TTree via VariablesToNtuple module
31
# The branch __MCDecayString__ is automatically created if printMCParticles is called
32
ma.variablesToNtuple(decayString=
""
, variables=[], path=path)
33
34
basf2.process(path)
35
36
# @endcond
analysis
examples
printMCParticleArray.py
Generated on Tue Jan 28 2025 01:52:09 for Belle II Software by
1.9.1