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