19from caf.framework
import Calibration, CAF
20from caf.utils
import ExpRun, IoV
21from caf.strategies
import SimpleRunByRun
23b2.set_log_level(b2.LogLevel.INFO)
30 print(
"Usage: python3 caf_ignoring_runs.py <data directory>")
36 input_files_test = [os.path.join(os.path.abspath(data_dir),
'*.root')]
42 col_test = b2.register_module(
'CaTest')
44 col_test.param(
'spread', 15)
46 from ROOT
import Belle2
47 from ROOT.Belle2
import TestCalibrationAlgorithm
48 alg_test = TestCalibrationAlgorithm()
53 input_files=input_files_test)
58 cal_test.ignored_runs = [ExpRun(0, 2), ExpRun(0, 3), ExpRun(0, 5), ExpRun(0, 6)]
61 cal_test.strategies = SimpleRunByRun
72 cal_fw.add_calibration(cal_test)
83 cal_fw.run(iov=IoV(0, 3, 0, 9))
84 print(
"End of CAF processing.")
87if __name__ ==
"__main__":