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