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

Public Member Functions

def beginRun (self)
 

Detailed Description

default pulse shape calibrations importer

Definition at line 57 of file SVDDefaultPulseShapeImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 60 of file SVDDefaultPulseShapeImporter.py.

60 def beginRun(self):
61 '''begin run'''
62
64
65 # gain, peakTime,
66 tmp_calAmp = SVDStripCalAmp()
67 tmp_calAmp.gain = 275 # set after the loop on sensors
68 tmp_calAmp.peakTime = 75 # set after the loop on sensors
69 tmp_calAmp.pulseWidth = pulseWidth
71 tmp_calAmp, "PulseShapeCalibrations_default_" + str(now.isoformat()) +
72 "_INFO:_peakTime=fromPhase3calibrations_pulseWidth=130_gain=fromPhase3calibrations")
73
75
76 for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
77 layerNumber = layer.getLayerNumber()
78 for ladder in geoCache.getLadders(layer):
79 ladderNumber = ladder.getLadderNumber()
80 for sensor in geoCache.getSensors(ladder):
81 sensorNumber = sensor.getSensorNumber()
82 for side in (0, 1):
83 Nstrips = 768
84 print("setting PulseShape for " +
85 str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
86 if side == 0: # V
87 if layerNumber == 3: # L3 V
88 gain = gain_L3_V
89 peakTime = peakTime_L3_V
90 else:
91 Nstrips = 512
92 if sensorNumber == 1: # FW V
93 gain = gain_fwd_V
94 peakTime = peakTime_fwd_V
95 else: # BKW V
96 if sensorNumber == layerNumber - 1: # FW V
97 gain = gain_bkw_V
98 peakTime = peakTime_bkw_V
99 else: # BARREL V
100 gain = gain_origami_V
101 peakTime = peakTime_origami_V
102 if side == 1: # U
103 if layerNumber == 3: # L3 U
104 gain = gain_L3_U
105 peakTime = peakTime_L3_U
106 else:
107 if sensorNumber == 1: # FW U
108 gain = gain_fwd_U
109 peakTime = peakTime_fwd_U
110 else: # BKW U
111 if sensorNumber == layerNumber - 1: # FW U
112 gain = gain_bkw_U
113 peakTime = peakTime_bkw_U
114 else: # BARREL U
115 gain = gain_origami_U
116 peakTime = peakTime_origami_U
117
118 tmp_calAmp.gain = 1 / gain
119 tmp_calAmp.peakTime = peakTime
120
121 # print(str(Nstrips))
122 for strip in range(0, Nstrips):
123 # print("setting Gain for strip " + str(strip) + " to " + str(tmp_calAmp.gain))
124
125 calAmp_payload.set(layerNumber, ladderNumber, sensorNumber, bool(side), strip, tmp_calAmp)
126
127 Belle2.Database.Instance().storeData(Belle2.SVDPulseShapeCalibrations.calAmp_name, calAmp_payload, iov)
128
129
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: