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

Public Member Functions

def beginRun (self)
 

Detailed Description

default importer for hot strips

Definition at line 24 of file SVDDefaultHotStripsImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 27 of file SVDDefaultHotStripsImporter.py.

27  def beginRun(self):
28  '''begin run'''
29 
31  # iov = IntervalOfValidity(0,0,-1,-1)
32 
33  payload = Belle2.SVDHotStripsCalibrations.t_payload(0, "HotStrips_default_" + str(now.isoformat()) + "_INFO:_noHotstrips")
34 
36 
37  for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
38  layerNumber = layer.getLayerNumber()
39  for ladder in geoCache.getLadders(layer):
40  ladderNumber = ladder.getLadderNumber()
41  for sensor in geoCache.getSensors(ladder):
42  sensorNumber = sensor.getSensorNumber()
43  for side in (0, 1):
44  Nstrips = 768
45  print("setting hot strips default value (0, good strip) for " +
46  str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber))
47 
48  if side == 0 and not layerNumber == 3: # non-L3 V side
49  Nstrips = 512
50 
51  for strip in range(0, Nstrips):
52  payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), 1, 0)
53 
54  Belle2.Database.Instance().storeData(Belle2.SVDHotStripsCalibrations.name, payload, iov)
55 
56 
57 b2conditions.prepend_globaltag("svd_onlySVDinGeoConfiguration")
58 
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: