20from ROOT
import Belle2
21from ROOT.Belle2
import TestDBAccessAlgorithm
22from caf.framework
import Calibration, CAF
23from caf.utils
import IoV
24from caf.strategies
import SequentialRunByRun
26b2.set_log_level(b2.LogLevel.DEBUG)
27b2.set_debug_level(100)
31data_dir =
"../../../examples/test_data"
39input_files_test.append(os.path.join(os.path.abspath(data_dir),
'*.root'))
43alg_test = TestDBAccessAlgorithm()
46col = b2.register_module(
"CaTest")
50cal_test =
Calibration(name=
"TestCalibration", collector=
"CaTest", algorithms=alg_test, input_files=input_files_test)
51cal_test.strategies = SequentialRunByRun
55cal_fw.add_calibration(cal_test)
58iov_to_calibrate = IoV(exp_low=0, run_low=1, exp_high=0, run_high=4)
61print(
"End of CAF processing.")