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