Belle II Software  release-06-01-15
mdst_compatibility-v01-02-11.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-01-02-11.
14 
15 See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
16 
17 CHANGES since release-01-02-11:
18 - EventMetaData:
19  + isEndOfRun
20 - EventLevelTrackingInfo:
21  + hasSVDCKFAbortionFlag/setSVDCKFAbortionFlag
22  + hasPXDCKFAbortionFlag/setPXDCKFAbortionFlag
23  + hasSVDSpacePointCreatorAbortionFlag/setSVDSpacePointCreatorAbortionFlag
24 - The default magnetic field is changed affecting all momentum measurements.
25 - Track:
26  + getQualityIndicator
27 - TrackFitResult:
28  + ndf
29  + chi2
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 - ECLCluster:
36  + getMinTrkDistanceID
37  + getPulseShapeDiscriminationMVA
38  + getClusterHadronIntensity
39  + getNumberOfHadronDigits
40  + hasPulseShapeDiscrimination
41  + hasTriggerClusterMatching
42  + isTriggerCluster
43  + hasFailedFitTime
44  + hasFailedTimeResolution
45  * getCovarianceMatrixAsArray removed
46 - KlIds are added
47 - TRGSummary:
48  * getTimQuality added
49 - SoftwareTriggerResult:
50  * non-prescaled results added
51 - Particle masses:
52  * The particle masses have been updated to PDG 2020. As a result, the
53  energies corresponding to the measured momenta became slightly different.
54 - EventLevelTriggerTimeInfo
55  * added new storage element for information from the Trigger Timing Distribution (TTD)
56 """
57 
58 from basf2 import create_path, process, set_random_seed, find_file
59 from b2test_utils import configure_logging_for_tests
60 from mdst import add_mdst_dump
61 
62 if __name__ == "__main__":
63  configure_logging_for_tests()
64  set_random_seed(1)
65  main = create_path()
66  main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v01-02-11.root"))
67  main.add_module("EventInfoPrinter")
68  add_mdst_dump(main, True)
69  process(main, 3)