Belle II Software development
pxdDataReductionClusters.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# PXD clusterizer
33main.add_module('PXDClusterizer')
34# filter PXDClusters that are in ROIs
35main.add_module('PXDclusterFilter', ROIidsName='ROIs', CreateOutside=True, overrideDB=True, enableFiltering=True)
36
37main.add_module('Progress')
38
39# Process events
40b2.process(main)
41
42print(b2.statistics)