Belle II Software development
defaultSVDClusteringImporter Class Reference
Inheritance diagram for defaultSVDClusteringImporter:

Public Member Functions

def beginRun (self)
 

Detailed Description

Defining the python module to do the import.

Definition at line 32 of file SVDDefaultClusteringImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
call the functions to import the cluster parameters

Definition at line 37 of file SVDDefaultClusteringImporter.py.

37 def beginRun(self):
38 """
39 call the functions to import the cluster parameters
40 """
42
43 # cluster reconstruction & position error
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
84 Belle2.Database.Instance().storeData(Belle2.SVDClustering.name, payload, iov)
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.
Definition: GeoCache.cc:214
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:42

The documentation for this class was generated from the following file: