Belle II Software development
PXDOnlySelection.py
1#!/usr/bin/env python3
2
3
10
11
15
16import basf2 as b2
17
18# output filename, can be overriden with -o
19output_filename = "RootOutput_PXDOnly.root"
20
21# create path
22main = b2.create_path()
23
24main.add_module('Progress')
25
26# REAL DATA:
27branches = ['EventMetaData', 'RawFTSWs', 'RawPXDs']
28main.add_module('RootInput', branchNames=branches)
29
30# main.add_module('Gearbox', fileName='/geometry/Beast2_phase2.xml')
31# main.add_module('Geometry', components=['PXD'])
32
33# Finally add output, if you need
34main.add_module("RootOutput", outputFileName=output_filename)
35
36# process events and print call statistics
37b2.process(main)
38print(b2.statistics)