12SVD Default 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 """1st order pol importer for CoG6 (TB dep)"""
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,
"6SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_1stOrderPol__alpha=1_beta=0")
46 """3rd order pol importer for CoG6 (TB indep)"""
49 """do everything here"""
53 timeCal = SVDCoGCalibrationFunction()
54 timeCal.set_pol3parameters(0., 1., 0., 0.)
55 timeCal.set_current(1)
59 timeCal,
"6SampleCoGTimeCalibrations_default_" + str(now.isoformat()) +
"_INFO:_3rdOrderPol_a=0_b=1_c=0_d=0")
64b2conditions.prepend_globaltag(
"svd_onlySVDinGeoConfiguration")
66main = b2.create_path()
69eventinfosetter = b2.register_module(
'EventInfoSetter')
70eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
71main.add_module(eventinfosetter)
73main.add_module(
"Gearbox")
74main.add_module(
"Geometry")
80progress = b2.register_module(
'Progress')
81main.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.