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

Public Member Functions

def beginRun (self)
 

Detailed Description

 default strip noise importer

Definition at line 55 of file SVDDefaultNoiseImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 58 of file SVDDefaultNoiseImporter.py.

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