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