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

Public Member Functions

def beginRun (self)
 

Detailed Description

Defining the python module to do the import.

Definition at line 30 of file SVDDefaultCoGOnlyPositionErrorImporter.py.

Member Function Documentation

◆ beginRun()

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

Definition at line 35 of file SVDDefaultCoGOnlyPositionErrorImporter.py.

35  def beginRun(self):
36  """
37  call the functions to import the cluster parameters
38  """
40 
41  # cluster position error
42  clsParam = SVDPositionErrorFunction()
43 
45  clsParam,
46  "CoGOnlyPositionError_default_" +
47  str(
48  now.isoformat()) +
49  "_INFO:_formulas=rel05")
50 
52 
53  for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
54  layerNumber = layer.getLayerNumber()
55  for ladder in geoCache.getLadders(layer):
56  ladderNumber = ladder.getLadderNumber()
57  for sensor in geoCache.getSensors(ladder):
58  sensorNumber = sensor.getSensorNumber()
59  for side in (0, 1):
60  print("setting CoGOnly Position Error for " +
61  str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
62  cls_payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, clsParam)
63 
64  Belle2.Database.Instance().storeData(Belle2.SVDCoGOnlyPositionError.name, cls_payload, iov)
65 
66 
67 b2conditions.prepend_globaltag('svd_onlySVDinGeoConfiguration')
68 
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: