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