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