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

Public Member Functions

def beginRun (self)
 

Detailed Description

strip pedestal importer

Definition at line 26 of file SVDDefaultPedestalImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
do everything here

Definition at line 29 of file SVDDefaultPedestalImporter.py.

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