15from pathlib
import Path
17from ROOT.Belle2
import TestCalibrationAlgorithm
18from caf.framework
import Calibration, CAF
19from caf.utils
import IoV
20from caf.strategies
import SequentialBoundaries
23b2.set_log_level(b2.LogLevel.DEBUG)
30 print(
"Usage: basf2 caf_boundary_strategy.py <data directory>")
38 input_files_test.append(Path(Path(data_dir).absolute(),
'*.root').as_posix())
42 alg_test = TestCalibrationAlgorithm()
43 alg_test.setMinEntries(15000)
44 alg_test.setAllowedMeanShift(0.1)
47 cal_test =
Calibration(name=
"TestCalibration", collector=
"CaTest", algorithms=alg_test, input_files=input_files_test)
54 cal_test.strategies = SequentialBoundaries
56 cal_test.algorithms[0].params[
"iov_coverage"] = IoV(0, 0, -1, -1)
61 cal_fw.add_calibration(cal_test)
63 print(
"End of CAF processing.")
66if __name__ ==
"__main__":