Belle II Software
release-06-01-15
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
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
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
PXDOnlySelection.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
16
17
import
basf2
as
b2
18
19
# output filename, can be overriden with -o
20
output_filename =
"RootOutput_PXDOnly.root"
21
22
# create path
23
main = b2.create_path()
24
25
main.add_module(
'Progress'
)
26
27
# REAL DATA:
28
branches = [
'EventMetaData'
,
'RawFTSWs'
,
'RawPXDs'
]
29
main.add_module(
'RootInput'
, branchNames=branches)
30
31
# main.add_module('Gearbox', fileName='/geometry/Beast2_phase2.xml')
32
# main.add_module('Geometry', components=['PXD'])
33
34
# Finally add output, if you need
35
main.add_module(
"RootOutput"
, outputFileName=output_filename)
36
37
# process events and print call statistics
38
b2.process(main)
39
print(b2.statistics)
pxd
examples
PXDOnlySelection.py
Generated on Fri Dec 8 2023 04:23:16 for Belle II Software by
1.9.1