Belle II Software  release-05-01-25
test1_DSTtoMDST.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 """
5 <header>
6  <input>../GenericB_GENSIMRECtoDST.dst.root</input>
7  <output>../DSTtoMDST.mdst.root</output>
8  <contact>Jorge Martinez-Ortega; jmartinez@fis.cinvestav.mx</contact>
9 </header>
10 """
11 
12 import sys
13 
14 rootFileName = '../DSTtoMDST'
15 logFileName = rootFileName + '.log'
16 sys.stdout = open(logFileName, 'w')
17 
18 import basf2
19 from reconstruction import add_mdst_output
20 
21 main = basf2.create_path()
22 input = basf2.register_module('RootInput')
23 input.param('inputFileName', '../GenericB_GENSIMRECtoDST.dst.root')
24 main.add_module(input)
25 add_mdst_output(main, True, '../DSTtoMDST.mdst.root')
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