Belle II Software development
DumpData.py
1#!/usr/bin/env python3
2
3
10
11import os
12import basf2
13from b2biiConversion import convertBelleMdstToBelleIIMdst
14
15os.environ['PGUSER'] = 'g0db'
16
17main = basf2.create_path()
18
19# add all modules necessary to read and convert the mdst file
20inputfile = basf2.find_file('b2bii_input_evtgen_exp_07_BptoD0pip-D0toKpipi0-0.mdst', 'examples', False)
21convertBelleMdstToBelleIIMdst(inputfile, applySkim=True, path=main)
22
23# Print out the contents of the DataStore
24main.add_module('PrintCollections')
25
26# progress
27main.add_module('Progress')
28
29basf2.process(main)
30
31# Print call statistics
32print(basf2.statistics)