Belle II Software  release-08-01-10
ECLEvtGen.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 <header>
14 <input>EvtGenSimRec.root</input>
15 <output>ECLEvtGenOutput.root</output>
16 <contact>Priyanka Cheema, pche3675@uni.sydney.edu.au</contact>
17 </header>
18 """
19 
20 import basf2 as b2
21 
22 # Create paths
23 main = b2.create_path()
24 
25 # Fixed random seed
26 b2.set_random_seed(123456)
27 
28 inputFile = '../EvtGenSimRec.root'
29 main.add_module('RootInput', inputFileName=inputFile)
30 
31 # eclDataAnalysis module
32 ecldataanalysis = b2.register_module('ECLDataAnalysis')
33 ecldataanalysis.param('rootFileName', '../ECLEvtGenOutput.root')
34 ecldataanalysis.param('doTracking', 1)
35 main.add_module(ecldataanalysis)
36 
37 main.add_module('Progress')
38 b2.process(main)
39 # print(statistics)