Belle II Software development
pxdDataReductionDigits.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12from tracking import add_tracking_reconstruction
13from simulation import add_simulation
14
15b2.set_random_seed(1)
16
17# Create paths
18main = b2.create_path()
19
20# Add modules to paths
21main.add_module('EventInfoSetter', expList=[0], runList=[1], evtNumList=[100])
22main.add_module('EvtGenInput', logLevel=b2.LogLevel.INFO)
23
24add_simulation(main, forceSetPXDDataReduction=True, usePXDDataReduction=False)
25add_tracking_reconstruction(main, ['SVD', 'CDC'])
26
27main.add_module('PXDROIFinder',
28 recoTrackListName='RecoTracks',
29 PXDInterceptListName='PXDIntercepts',
30 ROIListName='ROIs',
31 logLevel=b2.LogLevel.DEBUG)
32# filter PXDClusters that are in ROIs
33main.add_module('PXDdigiFilter', ROIidsName='ROIs', CreateOutside=True, overrideDB=True, usePXDDataReduction=True)
34
35main.add_module('Progress')
36
37# Process events
38b2.process(main)
39
40print(b2.statistics)