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