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. + getInputBitNumber added
36 + getOutputBitNumber added
37- ECLCluster:
38 + getMinTrkDistanceID
39- EventLevelTriggerTimeInfo
40 * added new storage element for information from the Trigger Timing Distribution (TTD)
41- Track:
42 + statusBitmap and getStatusBit
43 + getTrackTime added
44 + wasRefined
45 + isFlippedAndRefitted
46 + getTrackFitResultByName
47 + getTrackFitResultsByName
48 + getTrackFitResultWithClosestMassByName
49"""
50
51from basf2 import create_path, process, set_random_seed, find_file
52from b2test_utils import configure_logging_for_tests
53from mdst import add_mdst_dump
54
55if __name__ == "__main__":
56 configure_logging_for_tests()
57 set_random_seed(1)
58 main = create_path()
59 main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v05-00-00.root"))
60 main.add_module("EventInfoPrinter")
61 add_mdst_dump(main, True)
62 process(main, 3)
63