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