5 SVD Default 3-sample CoG Time Calibration importer.
6 alfa = 1 and beta = 0 for all sensors and sides
7 Script to Import Calibrations into a local DB
13 from ROOT
import Belle2
14 from ROOT.Belle2
import SVDCoGCalibrationFunction
15 from ROOT.Belle2
import SVD3SampleCoGTimeCalibrations
16 from basf2
import conditions
as b2conditions
20 now = datetime.datetime.now()
24 """ default importer for the first order polynomial, TB dependent
25 for the 3-sample CoG calibration payload
29 """do everything here"""
33 timeCal = SVDCoGCalibrationFunction()
34 timeCal.set_bias(0., 0., 0., 0.)
35 timeCal.set_scale(1., 1., 1., 1.)
36 timeCal.set_current(0)
40 timeCal,
"3SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_1stOrderPol__alpha=1_beta=0")
46 """ default importer for the third order polynomial, TB independent
47 for the 3-sample CoG calibration payload
51 """ do everything here"""
55 timeCal = SVDCoGCalibrationFunction()
56 timeCal.set_pol3parameters(0., 1., 0., 0.)
57 timeCal.set_current(1)
61 timeCal,
"3SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_3rdOrderPol_a=0_b=1_c=0_d=0")
65 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
70 eventinfosetter = register_module(
'EventInfoSetter')
71 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
72 main.add_module(eventinfosetter)
74 main.add_module(
"Gearbox")
75 main.add_module(
"Geometry")
81 progress = register_module(
'Progress')
82 main.add_module(progress)