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

Public Member Functions

def beginRun (self)
 

Detailed Description

strip pedestal importer

Definition at line 25 of file SVDDefaultPedestalImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
do everything here

Definition at line 28 of file SVDDefaultPedestalImporter.py.

28 def beginRun(self):
29 """do everything here"""
30
32
33 payload = Belle2.SVDPedestalCalibrations.t_payload(-1, "PedestalCalibrations_default_" +
34 str(now.isoformat()) + "_INFO:_fakeNULLpedestals")
35
37
38 for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
39 layerNumber = layer.getLayerNumber()
40 for ladder in geoCache.getLadders(layer):
41 ladderNumber = ladder.getLadderNumber()
42 for sensor in geoCache.getSensors(ladder):
43 sensorNumber = sensor.getSensorNumber()
44 for side in (0, 1):
45 Nstrips = 768
46 if side == 0:
47 Nstrips = 512
48 if layerNumber == 3: # L3
49 Nstrips = 768
50
51 for strip in range(0, Nstrips):
52 payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, pedestal)
53
54 Belle2.Database.Instance().storeData(Belle2.SVDPedestalCalibrations.name, payload, iov)
55
56
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: