Belle II Software  release-08-00-10
test1_DSTtoMDST.py
1 #!/usr/bin/env python3
2 
3 
10 
11 """
12 <header>
13  <input>../GenericB_GENSIMRECtoDST.dst.root</input>
14  <output>../DSTtoMDST.mdst.root</output>
15  <contact>Frank Meier; frank.meier@duke.edu</contact>
16 </header>
17 """
18 
19 import sys
20 
21 import basf2
22 from mdst import add_mdst_output
23 
24 rootFileName = '../DSTtoMDST'
25 logFileName = rootFileName + '.log'
26 sys.stdout = open(logFileName, 'w')
27 
28 main = basf2.create_path()
29 input = basf2.register_module('RootInput')
30 input.param('inputFileName', '../GenericB_GENSIMRECtoDST.dst.root')
31 main.add_module(input)
32 add_mdst_output(main, True, '../DSTtoMDST.mdst.root')
33 
34 main.add_module('Progress')
35 basf2.process(main)
36 
37 # Print call statistics
38 print(basf2.statistics)