Belle II Software development
datcon_functions.py
1#!/usr/bin/env python3
2
3
10
11import math
12
13
14def add_datcon(path):
15 """
16 Convenience function to add the FPGA version of DATCON to the path.
17 : param path: The path to add the DATCONFPGA module to.
18 """
19
20 path.add_module('DATCON',
21 uSideVerticalHoughSpaceSize=100000000,
22 uSideNAngleSectors=128,
23 uSideNVerticalSectors=128,
24 uSideMinimumHSClusterSize=5,
25 uSideMaximumHSClusterSize=50,
26 vSideIsUClusterizer=False, # required, as default is True for u side
27 vSideIsUFinder=False, # required, as default is True for u side
28 vSideNAngleSectors=128,
29 vSideNVerticalSectors=64,
30 vSideMinimumHSClusterSize=5,
31 vSideMaximumHSClusterSize=50,
32 vSideMinimumX=-75. / 180. * math.pi, # corresponds to +15° for theta (default values are for u side)
33 vSideMaximumX=65. / 180. * math.pi, # corresponds to +155° for theta (default values are for u side)
34 vSideVerticalHoughSpaceSize=20000000,
35 createPXDIntercepts=False,
36 extrapolationPhiCutL1=1.,
37 extrapolationPhiCutL2=1.,
38 uROIsizeL1=80,
39 uROIsizeL2=60,
40 vROIsizeL1=80,
41 vROIsizeL2=60)