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