12Test backwards compatibility for a udst file produced with release-05-00-00.
14This is the *start* of analysis objects guarantee of backwards compatibility.
15Pragmatically, we are backwards compatible with release-04 **in** release-05
16but we cannot guarantee this in general.
18See https://confluence.desy.de/display/BI/Backward+Compatibility for more
19specific statements about guarantees, and in case you observe a test failure.
21We keep a coarse log of the changes here for reference. Please reference a
22GitLab issue wherever possible...
24CHANGES 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.
28CHANGES since release-05-00-00:
29 * Added m_momentumScale to handle the momentum scale correction
for
30 TreeFitter. See BII-6971.
37if __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)