Belle II Software  release-06-00-14
mdst_compatibility-v05-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-05-00-00.
14 
15 See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
16 
17 CHANGES since release-05-00-00:
18 
19 - EventLevelTrackingInfo:
20  + hasSVDSpacePointCreatorAbortionFlag/setSVDSpacePointCreatorAbortionFlag
21 - TrackFitResult:
22  + ndf
23  + chi2
24 - TRGSummary:
25  + getTimQuality added
26  + isPoissonInInjectionVeto()
27  * added getters to map bit names to numbers (getInputBitNumber, getOutputBitNumber)
28  The mapping is from the database and doesn't affect mdst content and is thus not tested here.
29  + getInputBitNumber added
30  + getOutputBitNumber added
31 - ECLCluster:
32  + getMinTrkDistanceID
33 - EventLevelTriggerTimeInfo
34  * added new storage element for information from the Trigger Timing Distribution (TTD)
35 """
36 
37 from basf2 import create_path, process, set_random_seed, find_file
38 from b2test_utils import configure_logging_for_tests
39 from mdst import add_mdst_dump
40 
41 if __name__ == "__main__":
42  configure_logging_for_tests()
43  set_random_seed(1)
44  main = create_path()
45  main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v05-00-00.root"))
46  main.add_module("EventInfoPrinter")
47  add_mdst_dump(main, True)
48  process(main, 3)