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