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