Belle II Software  light-2212-foldex
mdst_compatibility-v05-00-00.py
1 #!/usr/bin/env python3
2 
3 
10 
11 """
12 Test backwards compatibility for an mdst file produced with release-05-00-00.
13 
14 See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
15 
16 CHANGES since release-05-00-00:
17 
18 - EventLevelTrackingInfo:
19  + hasSVDSpacePointCreatorAbortionFlag/setSVDSpacePointCreatorAbortionFlag
20 - TrackFitResult:
21  + ndf
22  + chi2
23  + remove the const classifier of TrackFitResults and add a function to update the contents
24  + updateTrackFitResult
25  + mask
26 - TRGSummary:
27  + getTimQuality added
28  + isPoissonInInjectionVeto()
29  * added getters to map bit names to numbers (getInputBitNumber, getOutputBitNumber)
30  The mapping is from the database and doesn't affect mdst content and is thus not tested here.
31  + getInputBitNumber added
32  + getOutputBitNumber added
33 - ECLCluster:
34  + getMinTrkDistanceID
35 - EventLevelTriggerTimeInfo
36  * added new storage element for information from the Trigger Timing Distribution (TTD)
37 - Track:
38  + statusBitmap and getStatusBit
39  + getTrackTime added
40  + wasRefined
41  + isFlippedAndRefitted
42  + getTrackFitResultByName
43  + getTrackFitResultsByName
44  + getTrackFitResultWithClosestMassByName
45 """
46 
47 from basf2 import create_path, process, set_random_seed, find_file
48 from b2test_utils import configure_logging_for_tests
49 from mdst import add_mdst_dump
50 
51 if __name__ == "__main__":
52  configure_logging_for_tests()
53  set_random_seed(1)
54  main = create_path()
55  main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v05-00-00.root"))
56  main.add_module("EventInfoPrinter")
57  add_mdst_dump(main, True)
58  process(main, 3)