Belle II Software  light-2205-abys
mdst_compatibility-v06-00-00.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 Test backwards compatibility for an mdst file produced with release-06-00-00.
14 
15 See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
16 
17 CHANGES since release-06-00-00:
18 """
19 
20 from basf2 import create_path, process, set_random_seed, find_file
21 from b2test_utils import configure_logging_for_tests
22 from mdst import add_mdst_dump
23 
24 if __name__ == "__main__":
25  configure_logging_for_tests()
26  set_random_seed(1)
27  main = create_path()
28  main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v06-00-00.root"))
29  main.add_module("EventInfoPrinter")
30  add_mdst_dump(main, True)
31  process(main, 3)