13 CDC Database importer.
14 Simple example to import CDCWireHitRequirements to the database.
18 from ROOT.Belle2
import FileSystem
19 from ROOT.Belle2
import CDCDatabaseImporter
23 INPUT = FileSystem.findFile(
"data/cdc/CDCWireHitRequirements_example.json")
31 basf2.conditions.testing_payloads = [
"localdb/database.txt"]
33 main = basf2.create_path()
36 eventinfosetter = basf2.register_module(
'EventInfoSetter')
37 main.add_module(eventinfosetter)
43 dbImporter.importCDCWireHitRequirements(INPUT)
46 dbImporter.printCDCWireHitRequirements()