18from caf.framework
import Calibration, CAF
20b2.set_log_level(b2.LogLevel.INFO)
30 print(
"Usage: basf2 CAF_simplest.py <data directory>")
39 input_files_test.append(os.path.join(os.path.abspath(data_dir),
'*.root'))
43 from ROOT
import Belle2
44 from ROOT.Belle2
import TestCalibrationAlgorithm
46 alg_test = TestCalibrationAlgorithm()
47 alg_test.setMinEntries(15000)
50 cal_test =
Calibration(name=
"TestCalibration", collector=
"CaTest", algorithms=alg_test, input_files=input_files_test)
53 from caf.strategies
import SingleIOV, SequentialRunByRun, SimpleRunByRun, SequentialBoundaries
66 cal_test.strategies = SequentialRunByRun
92 cal_fw.add_calibration(cal_test)
94 print(
"End of CAF processing.")
97if __name__ ==
"__main__":