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