Belle II Software light-2406-ragdoll
mdst_compatibility-v04-00-03.py
1#!/usr/bin/env python3
2
3
10
11"""
12Test backwards compatibility for an mdst file produced with release-04-00-03.
13
14See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
15
16CHANGES since release-04-00-03:
17
18- EventLevelClusteringInfo
19 + nKLMDigitsMultiStrip
20 + nECLShowers
21 + nECLLocalMaximums
22 + nECLTriggerCells
23- EventLevelTrackingInfo:
24 + hasSVDCKFAbortionFlag/setSVDCKFAbortionFlag
25 + hasPXDCKFAbortionFlag/setPXDCKFAbortionFlag
26 + hasSVDSpacePointCreatorAbortionFlag/setSVDSpacePointCreatorAbortionFlag
27- Global tags:
28 * The compatibility tag "Legacy_IP_Information" is no longer added for
29 release 4 input files.
30- TRGSummary:
31 + getTimQuality added
32 + isPoissonInInjectionVeto()
33 * added getters to map bit names to numbers (getInputBitNumber, getOutputBitNumber)
34 The mapping is from the database and doesn't affect mdst content and is thus not tested here. + getInputBitNumber added
35 + getOutputBitNumber added
36- Particle masses:
37 * The particle masses have been updated to PDG 2020. As a result, the
38 energies corresponding to the measured momenta became slightly different.
39- TrackFitResult:
40 + ndf
41 + chi2
42 + remove the const classifier of TrackFitResults and add a function to update the contents
43 + updateTrackFitResult
44 + mask
45- ECLCluster:
46 + getMinTrkDistanceID
47- EventLevelTriggerTimeInfo
48 * added new storage element for information from the Trigger Timing Distribution (TTD)
49- Track:
50 + statusBitmap and getStatusBit
51 + getTrackTime added
52 + wasRefined
53 + isFlippedAndRefitted
54 + getTrackFitResultByName
55 + getTrackFitResultsByName
56 + getTrackFitResultWithClosestMassByName
57"""
58
59from basf2 import create_path, process, set_random_seed, find_file
60from b2test_utils import configure_logging_for_tests
61from mdst import add_mdst_dump
62
63if __name__ == "__main__":
64 configure_logging_for_tests()
65 set_random_seed(1)
66 main = create_path()
67 main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v04-00-03.root"))
68 main.add_module("EventInfoPrinter")
69 add_mdst_dump(main, True)
70 process(main, 3)
71