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