Belle II Software
development
Toggle main menu visibility
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
Enumerator
c
d
f
p
t
v
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
EclChargedPidAnalysis.py
1
#!/usr/bin/env python3
2
3
10
11
"""This steering file shows how to use 'ECLChargedPIDDataAnalysis'
12
module to dump ECL-related quantities
in
an ntuple.
13
14
Input:
15
File
with
DST format
16
17
Output:
18
Ntuple
with
ECL-related quantities
19
20
Usage:
21
$ basf2 -i <path_to_input_file> -n <number_of_events>
22
EclChargedPidAnalysis.py
23
"""
24
25
import basf2 as b2
26
27
# Create path. Register necessary modules to this path.
28
mainPath = b2.create_path()
29
30
# Register and add 'RootInput' module
31
inputFile = b2.register_module('RootInput')
32
mainPath.add_module(inputFile)
33
34
# Register and add 'ECLChargedPIDDataAnalysis' module
35
eclChargedPIDDataAnalysis = b2.register_module('ECLChargedPIDDataAnalysis')
36
eclChargedPIDDataAnalysis.param('rootFileName',
37
'ECLChargedPIDDataAnalysis_Test.root'
)
38
mainPath.add_module(eclChargedPIDDataAnalysis)
39
40
# Process the events and print call statistics
41
mainPath.add_module(
'Progress'
)
42
b2.process(mainPath)
43
print(b2.statistics)
ecl
examples
EclChargedPidAnalysis.py
Generated on Thu Apr 10 2025 02:34:47 for Belle II Software by
1.9.6