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