18from ROOT.Belle2
import TestCalibrationAlgorithm
20from caf.framework
import Calibration, CAF
21from caf.utils
import ExpRun, IoV
22from caf.strategies
import SimpleRunByRun
24b2.set_log_level(b2.LogLevel.INFO)
31 print(
"Usage: python3 caf_ignoring_runs.py <data directory>")
37 input_files_test = [os.path.join(os.path.abspath(data_dir),
'*.root')]
43 col_test = b2.register_module(
'CaTest')
45 col_test.param(
'spread', 15)
47 alg_test = TestCalibrationAlgorithm()
52 input_files=input_files_test)
57 cal_test.ignored_runs = [ExpRun(0, 2), ExpRun(0, 3), ExpRun(0, 5), ExpRun(0, 6)]
60 cal_test.strategies = SimpleRunByRun
71 cal_fw.add_calibration(cal_test)
82 cal_fw.run(iov=IoV(0, 3, 0, 9))
83 print(
"End of CAF processing.")
86if __name__ ==
"__main__":