Belle II Software development
chi2MCTrackMatcher.py
1
8
9# Path building
10from basf2 import create_path, process, statistics
11from simulation import add_simulation
12from tracking import add_prefilter_tracking_reconstruction
13
14path = create_path()
15
16path.add_module("EventInfoSetter", expList=0, runList=1, evtNumList=10)
17
18# generate BBbar events
19path.add_module('EvtGenInput')
20
21# detector simulation, don't perform PXD data reduction
22add_simulation(path, bkgOverlay=False, forceSetPXDDataReduction=True, usePXDDataReduction=False, cleanupPXDDataReduction=False)
23
24# add tracking and track fitting, without MC matching
25add_prefilter_tracking_reconstruction(path)
26
27# Add the Chi2-matcher to path
28# We need CutOffs values, which are from a preliminary optimisation
29# In addition, a package used for inversion of the covariance matrix is needed, which is set by the linalg parameter
30# ROOT is default since in general it is faster and scales better
31# False: ROOT [default]; True: eigen
32# Add the Chi2-matcher module to the execution path
33path.add_module("Chi2MCTrackMatcher", CutOffs=[128024, 95, 173, 424, 90, 424], linalg=False)
34# process the path
35process(path)
36# show some module statistics
37print(statistics)