12SVD Default 3-sample CoG Time Calibration importer.
13alfa = 1 and beta = 0 for all sensors and sides
14Script to Import Calibrations into a local DB
17from ROOT
import Belle2
18from ROOT.Belle2
import SVDCoGCalibrationFunction
19from basf2
import conditions
as b2conditions
22now = datetime.datetime.now()
26 """ default importer for the first order polynomial, TB dependent
27 for the 3-sample CoG calibration payload
31 """do everything here"""
35 timeCal = SVDCoGCalibrationFunction()
36 timeCal.set_bias(0., 0., 0., 0.)
37 timeCal.set_scale(1., 1., 1., 1.)
38 timeCal.set_current(0)
42 timeCal,
"3SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_1stOrderPol__alpha=1_beta=0")
48 """ default importer for the third order polynomial, TB independent
49 for the 3-sample CoG calibration payload
53 """ do everything here"""
57 timeCal = SVDCoGCalibrationFunction()
58 timeCal.set_pol3parameters(0., 1., 0., 0.)
59 timeCal.set_current(1)
63 timeCal,
"3SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_3rdOrderPol_a=0_b=1_c=0_d=0")
68b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
70main = b2.create_path()
73eventinfosetter = b2.register_module(
'EventInfoSetter')
74eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
75main.add_module(eventinfosetter)
77main.add_module(
"Gearbox")
78main.add_module(
"Geometry")
84progress = b2.register_module(
'Progress')
85main.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.