Belle II Software development
mdst_compatibility-v03-01-02.py
1#!/usr/bin/env python3
2
3
10
11"""
12Test backwards compatibility for an mdst file produced with release-03-01-02.
13
14See https://xwiki.desy.de/xwiki/rest/p/0a372 if this test fails.
15
16CHANGES since release-03-01-02:
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 + hasFailedFitTime
32 + hasFailedTimeResolution
33- TrackFitResult:
34 + ndf
35 + chi2
36 + remove the const classifier of TrackFitResults and add a function to update the contents
37 + updateTrackFitResult
38 + mask
39- TRGSummary:
40 + getTimQuality added
41 + isPoissonInInjectionVeto()
42 * added getters to map bit names to numbers (getInputBitNumber, getOutputBitNumber)
43 The mapping is from the database and doesn't affect mdst content and is thus not tested here.
44 + getInputBitNumber added
45 + getOutputBitNumber added
46- Particle masses:
47 * The particle masses have been updated to PDG 2020. As a result, the
48 energies corresponding to the measured momenta became slightly different.
49- EventLevelTriggerTimeInfo
50 * added new storage element for information from the Trigger Timing Distribution (TTD)
51- Track:
52 + statusBitmap and getStatusBit
53 + getTrackTime added
54 + wasRefined
55 + isFlippedAndRefitted
56 + getTrackFitResultByName
57 + getTrackFitResultsByName
58 + getTrackFitResultWithClosestMassByName
59"""
60
61from basf2 import create_path, process, set_random_seed, find_file
62from b2test_utils import configure_logging_for_tests
63from mdst import add_mdst_dump
64
65if __name__ == "__main__":
66 configure_logging_for_tests()
67 set_random_seed(1)
68 main = create_path()
69 main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v03-01-02.root"))
70 main.add_module("EventInfoPrinter")
71 add_mdst_dump(main, True)
72 process(main, 3)