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

Public Member Functions

def beginRun (self)
 

Detailed Description

 default strip noise importer

Definition at line 56 of file SVDDefaultNoiseImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 59 of file SVDDefaultNoiseImporter.py.

59  def beginRun(self):
60  '''begin run'''
61 
63 
64  payload = Belle2.SVDNoiseCalibrations.t_payload(-1, "NoiseCalibrations_default_" +
65  str(now.isoformat()) + "_INFO:_fromPhase3calibrations")
66 
68 
69  for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
70  layerNumber = layer.getLayerNumber()
71  for ladder in geoCache.getLadders(layer):
72  ladderNumber = ladder.getLadderNumber()
73  for sensor in geoCache.getSensors(ladder):
74  sensorNumber = sensor.getSensorNumber()
75  for side in (0, 1):
76  Nstrips = 768
77  print("setting Noise for " +
78  str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
79  if side == 0: # V
80  if layerNumber == 3: # L3 V
81  noise = noise_L3_V
82  else:
83  Nstrips = 512
84  if sensorNumber == 1: # FW V
85  noise = noise_fwd_V
86  else: # BKW V
87  if sensorNumber == layerNumber - 1: # FW V
88  noise = noise_bkw_V
89  else: # BARREL V
90  noise = noise_origami_V
91  if side == 1: # U
92  if layerNumber == 3: # L3 U
93  noise = noise_L3_U
94  else:
95  if sensorNumber == 1: # FW U
96  noise = noise_fwd_U
97  else: # BKW U
98  if sensorNumber == layerNumber - 1: # FW U
99  noise = noise_bkw_U
100  else: # BARREL U
101  noise = noise_origami_U
102 
103  print(str(Nstrips))
104  for strip in range(0, Nstrips):
105  payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, noise)
106 
107  Belle2.Database.Instance().storeData(Belle2.SVDNoiseCalibrations.name, payload, iov)
108 
109 
110 b2conditions.prepend_globaltag("svd_onlySVDinGeoConfiguration")
111 
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: