37 def beginRun(self):
38 """
39 call the functions to import the cluster parameters
40 """
42
43
44 clsParam = SVDClusterCuts()
45 clsParam.minSeedSNR = clsSeedSNR
46 clsParam.minAdjSNR = clsAdjSNR
47 clsParam.minClusterSNR = clsMinSNR
48 clsParam.UnfoldingCoeff = clsUnfoldingCoeffV
49
51 clsParam,
52 "Clustering_default_" +
53 str(
54 now.isoformat()) +
55 "_INFO:_seed=" +
56 str(clsSeedSNR) +
57 "_adj=" +
58 str(clsAdjSNR) +
59 "_cls=" +
60 str(clsMinSNR) +
61 "_unfU=" +
62 str(clsUnfoldingCoeffU) +
63 "_unfV=" +
64 str(clsUnfoldingCoeffV))
65
67
68 for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
69 layerNumber = layer.getLayerNumber()
70 for ladder in geoCache.getLadders(layer):
71 ladderNumber = ladder.getLadderNumber()
72 for sensor in geoCache.getSensors(ladder):
73 sensorNumber = sensor.getSensorNumber()
74 for side in (0, 1):
75 print("setting SVD Clustering parameters for " +
76 str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
77 if side == 1:
78 clsParam.UnfoldingCoeff = clsUnfoldingCoeffU
79 else:
80 clsParam.UnfoldingCoeff = clsUnfoldingCoeffV
81 print(clsParam.UnfoldingCoeff)
82 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
83
85
86
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
base class for calibrations classes
static GeoCache & getInstance()
Return a reference to the singleton instance.
static Database & Instance()
Instance of a singleton Database.