18from caf.framework
import Calibration, CAF
19from caf.utils
import ExpRun, IoV
21b2.set_log_level(b2.LogLevel.INFO)
28 print(
"Usage: python3 caf_ignoring_runs.py <data directory>")
34 input_files_test = [os.path.join(os.path.abspath(data_dir),
'*.root')]
40 col_test = b2.register_module(
'CaTest')
42 col_test.param(
'spread', 15)
44 from ROOT
import Belle2
45 from ROOT.Belle2
import TestCalibrationAlgorithm
46 alg_test = TestCalibrationAlgorithm()
51 input_files=input_files_test)
56 cal_test.ignored_runs = [ExpRun(0, 2), ExpRun(0, 3), ExpRun(0, 5), ExpRun(0, 6)]
68 cal_test.algorithms[0].params[
"apply_iov"] = IoV(0, 1, 0, 10)
79 cal_fw.add_calibration(cal_test)
90 cal_fw.run(iov=IoV(0, 3, 0, 9))
91 print(
"End of CAF processing.")
94if __name__ ==
"__main__":