Belle II Software  release-08-01-10
defaultSVDClusteringImporter Class Reference
Inheritance diagram for defaultSVDClusteringImporter:
Collaboration diagram for defaultSVDClusteringImporter:

Public Member Functions

def beginRun (self)
 

Detailed Description

Defining the python module to do the import.

Definition at line 33 of file SVDDefaultClusteringImporter.py.

Member Function Documentation

◆ beginRun()

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

Definition at line 38 of file SVDDefaultClusteringImporter.py.

38  def beginRun(self):
39  """
40  call the functions to import the cluster parameters
41  """
43 
44  # cluster reconstruction & position error
45  clsParam = SVDClusterCuts()
46  clsParam.minSeedSNR = clsSeedSNR
47  clsParam.minAdjSNR = clsAdjSNR
48  clsParam.minClusterSNR = clsMinSNR
49  clsParam.UnfoldingCoeff = clsUnfoldingCoeffV
50 
52  clsParam,
53  "Clustering_default_" +
54  str(
55  now.isoformat()) +
56  "_INFO:_seed=" +
57  str(clsSeedSNR) +
58  "_adj=" +
59  str(clsAdjSNR) +
60  "_cls=" +
61  str(clsMinSNR) +
62  "_unfU=" +
63  str(clsUnfoldingCoeffU) +
64  "_unfV=" +
65  str(clsUnfoldingCoeffV))
66 
68 
69  for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
70  layerNumber = layer.getLayerNumber()
71  for ladder in geoCache.getLadders(layer):
72  ladderNumber = ladder.getLadderNumber()
73  for sensor in geoCache.getSensors(ladder):
74  sensorNumber = sensor.getSensorNumber()
75  for side in (0, 1):
76  print("setting SVD Clustering parameters for " +
77  str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
78  if side == 1:
79  clsParam.UnfoldingCoeff = clsUnfoldingCoeffU
80  else:
81  clsParam.UnfoldingCoeff = clsUnfoldingCoeffV
82  print(clsParam.UnfoldingCoeff)
83  payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
84 
85  Belle2.Database.Instance().storeData(Belle2.SVDClustering.name, payload, iov)
86 
87 
88 b2conditions.prepend_globaltag('svd_onlySVDinGeoConfiguration')
89 
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: