Belle II Software  release-08-01-10
extractRawWaveforms.py
1 # /**************************************************************************
2 # * basf2 (Belle II Analysis Software Framework) *
3 # * Author: The Belle II Collaboration *
4 # * *
5 # * See git log for contributors and copyright holders. *
6 # * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 # **************************************************************************/
8 
9 import basf2
10 import sys
11 
12 main_path = basf2.create_path()
13 
14 inID = sys.argv[1]
15 
16 indir = sys.argv[2]
17 
18 raw_branches = ["EventMetaData", "RawECLs"]
19 
20 main_path.add_module("RootInput", inputFileNames="", branchNames=raw_branches)
21 
22 eclunpacker = basf2.register_module('ECLUnpacker')
23 eclunpacker.param("storeTrigTime", True)
24 main_path.add_module(eclunpacker)
25 
26 main_path.add_module('ECLWaveformFit')
27 
28 eclCovMat = basf2.register_module('ECLWaveformCalibCollector')
29 eclCovMat.param("OutputFileName", indir+"outWaveInfo_"+inID+".root")
30 
31 main_path.add_module(eclCovMat)
32 
33 basf2.print_path(main_path)
34 basf2.process(main_path)