Belle II Software development
ImportLikelihoodParameters.py
1#!/usr/bin/env python3
2
3
10
11import basf2
12from ROOT import Belle2 # noqa: make the Belle2 namespace available
13from ROOT.Belle2 import KLMLikelihoodParametersImporter
14
15basf2.set_log_level(basf2.LogLevel.INFO)
16
17eventinfo = basf2.register_module('EventInfoSetter')
18eventinfo.param({'evtNumList': [0], 'runList': [0]})
19paramloader = basf2.register_module('Gearbox')
20
21main = basf2.create_path()
22main.add_module(eventinfo)
23main.add_module(paramloader)
24basf2.process(main)
25
26# run the MuidParameters writer, create dbobject payload in ./localdb
27dbWriter = KLMLikelihoodParametersImporter()
28dbWriter.writeLikelihoodParameters()
29
30# run the MuidParameters reader
31# dbReader = MuidParameterDBReaderWriter()
32# dbReader.readMuidParameters()