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