Belle II Software  release-06-01-15
test1_DSTtoMDST.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 <header>
14  <input>../GenericB_GENSIMRECtoDST.dst.root</input>
15  <output>../DSTtoMDST.mdst.root</output>
16  <contact>Frank Meier; frank.meier@duke.edu</contact>
17 </header>
18 """
19 
20 import sys
21 
22 import basf2
23 from reconstruction import add_mdst_output
24 
25 rootFileName = '../DSTtoMDST'
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', '../GenericB_GENSIMRECtoDST.dst.root')
32 main.add_module(input)
33 add_mdst_output(main, True, '../DSTtoMDST.mdst.root')
34 
35 basf2.process(main)
36 
37 # Print call statistics
38 print(basf2.statistics)