14from ROOT
import Belle2
15from ROOT.Belle2
import KLMTimeAlgorithm
16from klm_calibration_utils
import get_time_pre_collector_path
17from prompt.calibrations.caf_klm_time
import get_collector
18from caf.framework
import CAF, Calibration, Collection
19from caf
import backends
21basf2.set_log_level(basf2.LogLevel.INFO)
23input_files = sys.argv[1:]
33algorithm = KLMTimeAlgorithm()
35algorithm.setMinimalDigitNumber(0)
36cal_klm =
Calibration(name=
'KLMTime', algorithms=algorithm)
38coll_cdst = get_collector(
'hlt_mumu',
'klmTime')
39rec_path_cdst = get_time_pre_collector_path(muon_list_name=
'klmTime', mc=
True)
40collection_cdst =
Collection(collector=coll_cdst,
41 input_files=input_files,
42 pre_collector_path=rec_path_cdst)
43cal_klm.add_collection(name=
'cdst', collection=collection_cdst)
47framework.backend = backends.LSF()
48framework.add_calibration(cal_klm)