18from ROOT.Belle2
import TestCalibrationAlgorithm
19from caf.framework
import Calibration, CAF
20from caf.utils
import IoV
22b2.set_log_level(b2.LogLevel.INFO)
32 print(
"Usage: basf2 CAF_simplest.py <data directory>")
41 input_files_test.append(os.path.join(os.path.abspath(data_dir),
'*.root'))
45 alg_test = TestCalibrationAlgorithm()
48 cal_test =
Calibration(name=
"TestCalibration", collector=
"CaTest", algorithms=alg_test, input_files=input_files_test)
53 cal_fw.add_calibration(cal_test)
56 iov_to_calibrate = IoV(exp_low=0, run_low=2, exp_high=0, run_high=3)
57 cal_fw.run(iov=iov_to_calibrate)
58 print(
"End of CAF processing.")
61if __name__ ==
"__main__":