Belle II Software development
svdROIFinding.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12from tracking import add_prefilter_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")
23add_simulation(main, forceSetPXDDataReduction=True, usePXDDataReduction=False)
24add_prefilter_tracking_reconstruction(main, ['CDC'], mcTrackFinding=True)
25# Add the SVDROIFinder module
26main.add_module(
27 'SVDROIFinder',
28 recoTrackListName='RecoTracks',
29 SVDInterceptListName='SVDIntercepts',
30 ROIListName='ROIs',
31 tolerancePhi=0.15,
32 toleranceZ=0.5,
33 sigmaSystU=0.02,
34 sigmaSystV=0.02,
35 numSigmaTotU=10,
36 numSigmaTotV=10,
37 maxWidthU=0.5,
38 maxWidthV=0.5,
39 logLevel=b2.LogLevel.DEBUG)
40# Add the corresponding analysis module if desired
41# main.add_module(
42# 'SVDROIFinderAnalysis',
43# recoTrackListName='RecoTracks',
44# SVDInterceptListName='SVDIntercepts',
45# ROIListName='ROIs',
46# writeToRoot=True,
47# rootFileName='svdDataRedAnalysis_SVDCDC_MCTF_test',
48# logLevel=b2.LogLevel.RESULT)
49
50main.add_module('Progress')
51
52# Process events
53b2.process(main)
54
55print(b2.statistics)