Belle II Software development
ImportSimulationPar.py
1#!/usr/bin/env python3
2
3
10
11# Import BKLM simulation parameters payloads.
12
13import basf2
14from ROOT import Belle2 # noqa: make the Belle2 namespace available
15from ROOT.Belle2 import BKLMDatabaseImporter
16
17basf2.set_log_level(basf2.LogLevel.INFO)
18
19# The Gearbox is needed for BKLMSimulationPar
20eventinfosetter = basf2.register_module('EventInfoSetter')
21eventinfosetter.initialize()
22gearbox = basf2.register_module('Gearbox')
23gearbox.initialize()
24
25dbImporter = BKLMDatabaseImporter()
26
27dbImporter.setIOV(0, 0, 0, -1)
28dbImporter.importSimulationPar()