13 SVD Default 3-sample CoG Time Calibration importer.
14 alfa = 1 and beta = 0 for all sensors and sides
15 Script to Import Calibrations into a local DB
18 from ROOT
import Belle2
19 from ROOT.Belle2
import SVDCoGCalibrationFunction
20 from basf2
import conditions
as b2conditions
23 now = datetime.datetime.now()
27 """ default importer for the first order polynomial, TB dependent
28 for the 3-sample CoG calibration payload
32 """do everything here"""
36 timeCal = SVDCoGCalibrationFunction()
37 timeCal.set_bias(0., 0., 0., 0.)
38 timeCal.set_scale(1., 1., 1., 1.)
39 timeCal.set_current(0)
43 timeCal,
"3SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_1stOrderPol__alpha=1_beta=0")
49 """ default importer for the third order polynomial, TB independent
50 for the 3-sample CoG calibration payload
54 """ do everything here"""
58 timeCal = SVDCoGCalibrationFunction()
59 timeCal.set_pol3parameters(0., 1., 0., 0.)
60 timeCal.set_current(1)
64 timeCal,
"3SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_3rdOrderPol_a=0_b=1_c=0_d=0")
69 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
71 main = b2.create_path()
74 eventinfosetter = b2.register_module(
'EventInfoSetter')
75 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
76 main.add_module(eventinfosetter)
78 main.add_module(
"Gearbox")
79 main.add_module(
"Geometry")
85 progress = b2.register_module(
'Progress')
86 main.add_module(progress)
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
base class for calibrations classes
static Database & Instance()
Instance of a singleton Database.