Belle II Software development
pxdDataReductionAnalysis.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)
25
26add_tracking_reconstruction(main, ['SVD', 'CDC'], mcTrackFinding=True)
27
28main.add_module('PXDROIFinder',
29 recoTrackListName='RecoTracks',
30 PXDInterceptListName='PXDIntercepts',
31 ROIListName='ROIs',
32 logLevel=b2.LogLevel.DEBUG)
33
34main.add_module('PXDROIFinderAnalysis',
35 recoTrackListName='RecoTracks',
36 PXDInterceptListName='PXDIntercepts',
37 ROIListName='ROIs',
38 writeToRoot=True,
39 rootFileName='pxdDataRedAnalysis_SVDCDC_MCTF_test',
40 logLevel=b2.LogLevel.RESULT)
41main.add_module('Progress')
42
43# Process events
44b2.process(main)
45
46print(b2.statistics)