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

Public Member Functions

def beginRun (self)
 

Detailed Description

Defining the python module to do the import.

Definition at line 29 of file SVDDefaultCoGOnlyPositionErrorImporter.py.

Member Function Documentation

◆ beginRun()

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

Definition at line 34 of file SVDDefaultCoGOnlyPositionErrorImporter.py.

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