13 SVD Default 3-sample ELS 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 """1st order pol importer for ELS3 (TB dep)"""
30 '''do everything here'''
34 timeCal = SVDCoGCalibrationFunction()
35 timeCal.set_bias(0., 0., 0., 0.)
36 timeCal.set_scale(1., 1., 1., 1.)
37 timeCal.set_current(0)
41 timeCal,
"3SampleELSTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_1stOrderPol__alpha=1_beta=0")
47 """3rd order pol importer for ELS3 (TB indep)"""
50 """do everything here"""
54 timeCal = SVDCoGCalibrationFunction()
55 timeCal.set_pol3parameters(0., 1., 0., 0.)
56 timeCal.set_current(1)
60 timeCal,
"3SampleELSTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_3rdOrderPol_a=0_b=1_c=0_d=0")
65 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
67 main = b2.create_path()
70 eventinfosetter = b2.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 = b2.register_module(
'Progress')
82 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.