20from ROOT.Belle2
import TestDBAccessAlgorithm
21from caf.framework
import Calibration, CAF
22from caf.utils
import IoV
23from caf.strategies
import SequentialRunByRun
25b2.set_log_level(b2.LogLevel.DEBUG)
26b2.set_debug_level(100)
30data_dir =
"../../../examples/test_data"
38input_files_test.append(os.path.join(os.path.abspath(data_dir),
'*.root'))
42alg_test = TestDBAccessAlgorithm()
45col = b2.register_module(
"CaTest")
49cal_test =
Calibration(name=
"TestCalibration", collector=
"CaTest", algorithms=alg_test, input_files=input_files_test)
50cal_test.strategies = SequentialRunByRun
54cal_fw.add_calibration(cal_test)
57iov_to_calibrate = IoV(exp_low=0, run_low=1, exp_high=0, run_high=4)
60print(
"End of CAF processing.")