Belle II Software  release-06-01-15
mdst_compatibility-v03-01-02.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-03-01-02.
14 
15 See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
16 
17 CHANGES since release-03-01-02:
18 
19 - EventMetaData:
20  + isEndOfRun
21 - EventLevelTrackingInfo:
22  + hasSVDCKFAbortionFlag/setSVDCKFAbortionFlag
23  + hasPXDCKFAbortionFlag/setPXDCKFAbortionFlag
24  + hasSVDSpacePointCreatorAbortionFlag/setSVDSpacePointCreatorAbortionFlag
25 - ECLCluster:
26  + getMinTrkDistanceID
27  + hasFailedFitTime
28  + hasFailedTimeResolution
29 - TrackFitResult:
30  + ndf
31  + chi2
32 - TRGSummary:
33  + getTimQuality added
34  + isPoissonInInjectionVeto()
35  * added getters to map bit names to numbers (getInputBitNumber, getOutputBitNumber)
36  The mapping is from the database and doesn't affect mdst content and is thus not tested here.
37  + getInputBitNumber added
38  + getOutputBitNumber added
39 - Particle masses:
40  * The particle masses have been updated to PDG 2020. As a result, the
41  energies corresponding to the measured momenta became slightly different.
42 - EventLevelTriggerTimeInfo
43  * added new storage element for information from the Trigger Timing Distribution (TTD)
44 """
45 
46 from basf2 import create_path, process, set_random_seed, find_file
47 from b2test_utils import configure_logging_for_tests
48 from mdst import add_mdst_dump
49 
50 if __name__ == "__main__":
51  configure_logging_for_tests()
52  set_random_seed(1)
53  main = create_path()
54  main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v03-01-02.root"))
55  main.add_module("EventInfoPrinter")
56  add_mdst_dump(main, True)
57  process(main, 3)