5 SVD Default 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 SVDCoGTimeCalibrations
16 from basf2
import conditions
as b2conditions
20 now = datetime.datetime.now()
24 """1st order pol importer for CoG6 (TB dep)"""
27 """do everything here"""
31 timeCal = SVDCoGCalibrationFunction()
32 timeCal.set_bias(0., 0., 0., 0.)
33 timeCal.set_scale(1., 1., 1., 1.)
34 timeCal.set_current(0)
38 timeCal,
"6SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_1stOrderPol__alpha=1_beta=0")
44 """3rd order pol importer for CoG6 (TB indep)"""
47 """do everything here"""
51 timeCal = SVDCoGCalibrationFunction()
52 timeCal.set_pol3parameters(0., 1., 0., 0.)
53 timeCal.set_current(1)
57 timeCal,
"6SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_3rdOrderPol_a=0_b=1_c=0_d=0")
62 b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
67 eventinfosetter = register_module(
'EventInfoSetter')
68 eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
69 main.add_module(eventinfosetter)
71 main.add_module(
"Gearbox")
72 main.add_module(
"Geometry")
78 progress = register_module(
'Progress')
79 main.add_module(progress)