Belle II Software  release-05-01-25
test2_MDSTtoUDST.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 """
5 <header>
6 <input>../DSTtoMDST.mdst.root</input>
7 <output>../MDSTtoUDST.udst.root</output>
8 <contact>Luis Pesantez; pesantez@uni-bonn.de</contact>
9 </header>
10 """
11 
12 import sys
13 
14 rootFileName = '../MDSTtoUDST'
15 logFileName = rootFileName + '.log'
16 sys.stdout = open(logFileName, 'w')
17 
18 import basf2
19 from modularAnalysis import outputUdst
20 
21 main = basf2.create_path()
22 input = basf2.register_module('RootInput')
23 input.param('inputFileName', '../DSTtoMDST.mdst.root')
24 main.add_module(input)
25 outputUdst('../MDSTtoUDST.udst.root', path=main)
26 
27 basf2.process(main)
28 
29 # Print call statistics
30 print(basf2.statistics)
basf2.process
def process(path, max_event=0)
Definition: __init__.py:25