Belle II Software
release-05-01-25
PXDOnlySelection.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
9
10
from
basf2
import
*
11
import
glob
12
import
rawdata
13
14
# output filename, can be overriden with -o
15
output_filename =
"RootOutput_PXDOnly.root"
16
17
# create path
18
main = create_path()
19
20
main.add_module(
'Progress'
)
21
22
# REAL DATA:
23
branches = [
'EventMetaData'
,
'RawFTSWs'
,
'RawPXDs'
]
24
main.add_module(
'RootInput'
, branchNames=branches)
25
26
# main.add_module('Gearbox', fileName='/geometry/Beast2_phase2.xml')
27
# main.add_module('Geometry', components=['PXD'])
28
29
# Finally add output, if you need
30
main.add_module(
"RootOutput"
, outputFileName=output_filename)
31
32
# process events and print call statistics
33
process(main)
34
print(statistics)
pxd
examples
PXDOnlySelection.py
Generated on Fri Nov 5 2021 03:56:11 for Belle II Software by
1.8.17