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