88 # avoid top level ROOT imports
89 from ROOT import Belle2 # noqa: make Belle2 namespace available
90 from ROOT.Belle2 import SVDDetectorConfigurationImporter
92 # call the importer class
93 configImporterToDB = SVDDetectorConfigurationImporter(experiment, run, experiment, -1)
94 if args.calib is not None:
95 # import SVDGlobalConfigParameters dbobject: ZS, latency, mask, APV clock units
96 configImporterToDB.importSVDGlobalConfigParametersFromXML(calibfile)
97 print(colored("V) Global Detector Configuration parameters: (ZS, latency, mask, APVClock units) Imported", 'green'))
98 # import SVDLocalConfigParameters dbobject: calibration peak and time units, date
99 configImporterToDB.importSVDLocalConfigParametersFromXML(calibfile)
100 print(colored("V) Local Detector Configuration parameters Imported", 'green'))
102 print(colored("X) Detector Configuration parameters are not NOT imported.", 'red'))