Belle II Software  light-2212-foldex
mdst_compatibility-v03-01-02.py
1 #!/usr/bin/env python3
2 
3 
10 
11 """
12 Test backwards compatibility for an mdst file produced with release-03-01-02.
13 
14 See https://confluence.desy.de/display/BI/Backward+Compatibility if this test fails.
15 
16 CHANGES since release-03-01-02:
17 
18 - EventMetaData:
19  + isEndOfRun
20 - EventLevelTrackingInfo:
21  + hasSVDCKFAbortionFlag/setSVDCKFAbortionFlag
22  + hasPXDCKFAbortionFlag/setPXDCKFAbortionFlag
23  + hasSVDSpacePointCreatorAbortionFlag/setSVDSpacePointCreatorAbortionFlag
24 - ECLCluster:
25  + getMinTrkDistanceID
26  + hasFailedFitTime
27  + hasFailedTimeResolution
28 - TrackFitResult:
29  + ndf
30  + chi2
31  + remove the const classifier of TrackFitResults and add a function to update the contents
32  + updateTrackFitResult
33  + mask
34 - TRGSummary:
35  + getTimQuality added
36  + isPoissonInInjectionVeto()
37  * added getters to map bit names to numbers (getInputBitNumber, getOutputBitNumber)
38  The mapping is from the database and doesn't affect mdst content and is thus not tested here.
39  + getInputBitNumber added
40  + getOutputBitNumber added
41 - Particle masses:
42  * The particle masses have been updated to PDG 2020. As a result, the
43  energies corresponding to the measured momenta became slightly different.
44 - EventLevelTriggerTimeInfo
45  * added new storage element for information from the Trigger Timing Distribution (TTD)
46 - Track:
47  + statusBitmap and getStatusBit
48  + getTrackTime added
49  + wasRefined
50  + isFlippedAndRefitted
51  + getTrackFitResultByName
52  + getTrackFitResultsByName
53  + getTrackFitResultWithClosestMassByName
54 """
55 
56 from basf2 import create_path, process, set_random_seed, find_file
57 from b2test_utils import configure_logging_for_tests
58 from mdst import add_mdst_dump
59 
60 if __name__ == "__main__":
61  configure_logging_for_tests()
62  set_random_seed(1)
63  main = create_path()
64  main.add_module("RootInput", inputFileName=find_file("mdst/tests/mdst-v03-01-02.root"))
65  main.add_module("EventInfoPrinter")
66  add_mdst_dump(main, True)
67  process(main, 3)