Belle II Software  release-05-01-25
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 20 of file SVDDefaultHotStripsImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 23 of file SVDDefaultHotStripsImporter.py.

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

The documentation for this class was generated from the following file:
Belle2::IntervalOfValidity::always
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
Definition: IntervalOfValidity.h:72
Belle2::VXD::GeoCache::getInstance
static GeoCache & getInstance()
Return a reference to the singleton instance.
Definition: GeoCache.cc:215
Belle2::Database::Instance
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:54
Belle2::SVDCalibrationsBase
base class for calibrations classes
Definition: SVDCalibrationsBase.h:36