12 from ROOT
import Belle2
17 algo.setDebugHisto(
True)
20 inputFileNames = [
"CollectorOutput.root"]
21 algo.setInputFileNames(inputFileNames)
23 d = algo.getInputFileNames()
25 print(
"Resolved input file to algorithm:", name)
29 print(
"Result of calibration =", algo.execute([(1, 1), (1, 2)]))
30 output_json_string = algo.dumpOutputJson()
31 print(f
"Output JSON was {output_json_string}")
36 print(
"Result of calibration =", algo.execute())
37 output_json_string = algo.dumpOutputJson()
38 print(f
"Output JSON was {output_json_string}")
44 algo.loadInputJson(output_json_string)
47 print(
"Result of calibration =", algo.execute([], 0, iov))
48 output_json_string = algo.dumpOutputJson()
49 print(f
"Output JSON was {output_json_string}")
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
Test class implementing calibration algorithm.