Belle II Software  light-2212-foldex
mdst_compatibility-v06-00-00.py
1 #!/usr/bin/env python3
2 
3 
10 
11 """
12 Test backwards compatibility for an mdst file produced with release-06-00-00.
13 
14 See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
15 
16 CHANGES since release-06-00-00:
17 - Track:
18  + statusBitmap and getStatusBit
19  + getTrackTime added
20  + wasRefined
21  + isFlippedAndRefitted
22  + getTrackFitResultByName
23  + getTrackFitResultsByName
24  + getTrackFitResultWithClosestMassByName
25 - TrackFitResult:
26  + remove the const classifier of TrackFitResults and add a function to update the contents
27  + updateTrackFitResult
28  + mask
29 """
30 
31 from basf2 import create_path, process, set_random_seed, find_file
32 from b2test_utils import configure_logging_for_tests
33 from mdst import add_mdst_dump
34 
35 if __name__ == "__main__":
36  configure_logging_for_tests()
37  set_random_seed(1)
38  main = create_path()
39  main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v06-00-00.root"))
40  main.add_module("EventInfoPrinter")
41  add_mdst_dump(main, True)
42  process(main, 3)