12 """Tests udst creation with background BGx1 MC"""
16 import b2test_utils
as b2tu
17 import modularAnalysis
as ma
22 """Create a udst with one event in it."""
24 ma.inputMdst(
"default", b2.find_file(
"analysis/tests/mdst.root"), path=pa)
25 ma.fillParticleList(
"pi+:all",
"", path=pa)
27 b2tu.safe_process(pa, 1)
32 """Check that the udst contains the particles storearray"""
34 ma.inputMdst(
"default",
"test.udst.root", path=pa)
35 ma.printDataStore(path=pa)
36 b2tu.safe_process(path=pa)
40 if __name__ ==
"__main__":
41 with b2tu.clean_working_directory():
def add_udst_output(path, filename, particleLists=None, additionalBranches=None, dataDescription=None, mc=True)