Belle II Software development
configImporterToDBModule Class Reference
Inheritance diagram for configImporterToDBModule:

Public Member Functions

def beginRun (self)
 

Detailed Description

detector configuration importer

Definition at line 83 of file SVDDetectorConfigurationImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 86 of file SVDDetectorConfigurationImporter.py.

86 def beginRun(self):
87 '''begin run'''
88 # avoid top level ROOT imports
89 from ROOT import Belle2 # noqa: make Belle2 namespace available
90 from ROOT.Belle2 import SVDDetectorConfigurationImporter
91
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'))
101 else:
102 print(colored("X) Detector Configuration parameters are not NOT imported.", 'red'))
103
104

The documentation for this class was generated from the following file: