Belle II Software  release-08-01-10
algorithm_boundary_finding.py
1 #!/usr/bin/env python3
2 
3 
10 
11 from ROOT import Belle2
12 from caf.utils import runs_from_vector, find_run_lists_from_boundaries
13 
15 
16 # Can use a Python list of input files/wildcards. It will resolve the existing files
17 inputFileNames = ["CollectorOutput.root"]
18 algo.setInputFileNames(inputFileNames)
19 all_runs = algo.getRunListFromAllData()
20 boundaries = runs_from_vector(algo.findPayloadBoundaries(all_runs))
21 
22 print("Boundaries were:")
23 for exprun in boundaries:
24  print(exprun)
25 
26 print("Run lists associated to boundary IoVs")
27 
28 for iov, runs in find_run_lists_from_boundaries(boundaries, runs_from_vector(all_runs)).items():
29  print(iov, runs)
Test class implementing calibration algorithm.