11 from ROOT
import Belle2
16 algo.setDebugHisto(
True)
19 inputFileNames = [
"CollectorOutput.root"]
20 algo.setInputFileNames(inputFileNames)
22 d = algo.getInputFileNames()
24 print(
"Resolved input file to algorithm:", name)
28 print(
"Result of calibration =", algo.execute([(1, 1), (1, 2)]))
29 output_json_string = algo.dumpOutputJson()
30 print(f
"Output JSON was {output_json_string}")
35 print(
"Result of calibration =", algo.execute())
36 output_json_string = algo.dumpOutputJson()
37 print(f
"Output JSON was {output_json_string}")
43 algo.loadInputJson(output_json_string)
46 print(
"Result of calibration =", algo.execute([], 0, iov))
47 output_json_string = algo.dumpOutputJson()
48 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.