5 Test backwards compatibility for an mdst file produced with release-03-01-02.
7 See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
9 CHANGES since release-03-01-02:
13 - EventLevelTrackingInfo:
14 + hasSVDCKFAbortionFlag/setSVDCKFAbortionFlag
15 + hasPXDCKFAbortionFlag/setPXDCKFAbortionFlag
18 + hasFailedTimeResolution
24 + isPoissonInInjectionVeto()
25 * added getters to map bit names to numbers (getInputBitNumber, getOutputBitNumber)
26 The mapping is from the database and doesn't affect mdst content and is thus not tested here.
28 * The particle masses have been updated to PDG 2020. As a result, the
29 energies corresponding to the measured momenta became slightly different.
32 from basf2
import create_path, process, set_random_seed, find_file, LogLevel, logging
33 from b2test_utils
import configure_logging_for_tests
34 from mdst
import add_mdst_dump
36 if __name__ ==
"__main__":
37 configure_logging_for_tests()
40 main.add_module(
"RootInput", inputFileName=find_file(
"mdst/tests/mdst-v03-01-02.root"))
41 main.add_module(
"EventInfoPrinter")
42 add_mdst_dump(main,
True)