13 CDC Database importer.
14 Simple example to import CDClayerTimeCut payload from json file to the database.
18 from ROOT.Belle2
import FileSystem
19 from ROOT.Belle2
import CDCDatabaseImporter
23 INPUT = FileSystem.findFile(
"data/cdc/CDClayerTimeCut_example.json")
32 basf2.conditions.testing_payloads = [
"localdb/database.txt"]
34 main = basf2.create_path()
37 eventinfosetter = basf2.register_module(
'EventInfoSetter')
38 main.add_module(eventinfosetter)
44 dbImporter.importCDClayerTimeCut(INPUT)
47 dbImporter.printCDClayerTimeCut()