12 Test backwards compatibility for a udst file produced with release-05-00-00.
14 This is the *start* of analysis objects guarantee of backwards compatibility.
15 Pragmatically, we are backwards compatible with release-04 **in** release-05
16 but we cannot guarantee this in general.
18 See https://confluence.desy.de/display/BI/Backward+Compatibility for more
19 specific statements about guarantees, and in case you observe a test failure.
21 We keep a coarse log of the changes here for reference. Please reference a
22 GitLab issue wherever possible...
24 CHANGES between release-04-00-00 and release-05-00-00:
25 * Renamed m_particleType to m_particleSource (a more meaningful name).
26 See BII-3959 and BII-7148.
28 CHANGES since release-05-00-00:
29 * Added m_momentumScale to handle the momentum scale correction for
30 TreeFitter. See BII-6971.
37 if __name__ ==
"__main__":
41 basf2.set_random_seed(1)
45 main = basf2.create_path()
47 "RootInput", inputFileName=basf2.find_file(
"analysis/tests/udst-v05-00-00.root")
49 main.add_module(
"EventInfoPrinter")
56 sanity_check_variables = [
59 "Mbc",
"InvM",
"deltaE",
60 "daughter(1, pionID)",
61 "daughter(1, kaonID)",
62 "daughter(1, clusterE)",
63 "daughter(1, klmClusterLayers)",
65 for listname
in [
"B+:feiSL",
"B-:feiSL",
"B0:feiSL"]:
67 "ParticlePrinter", listName=listname, variables=sanity_check_variables)
70 basf2.process(main, 1)
def configure_logging_for_tests(user_replacements=None)
def add_udst_dump(path, print_untested=False)