Belle II Software development
mdst_compatibility-v09-00-00.py
1#!/usr/bin/env python3
2
3
10
11"""
12Test backwards compatibility for an mdst file produced with release-09-00-00.
13
14See https://xwiki.desy.de/xwiki/rest/p/0a372 if this test fails.
15
16CHANGES since release-09-00-00:
17
18None
19"""
20
21from basf2 import create_path, process, set_random_seed, find_file
22from b2test_utils import configure_logging_for_tests
23from mdst import add_mdst_dump
24
25if __name__ == "__main__":
26 configure_logging_for_tests()
27 set_random_seed(1)
28 main = create_path()
29 main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v09-00-00.root"))
30 main.add_module("EventInfoPrinter")
31 add_mdst_dump(main, True)
32 process(main, 3)