Belle II Software  release-05-01-25
configImporterToDBModule Class Reference
Inheritance diagram for configImporterToDBModule:
Collaboration diagram for configImporterToDBModule:

Public Member Functions

def beginRun (self)
 

Detailed Description

detector configuration importer

Definition at line 91 of file SVDDetectorConfigurationImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 94 of file SVDDetectorConfigurationImporter.py.

94  def beginRun(self):
95  '''begin run'''
96 
97  # call the importer class
98  configImporterToDB = SVDDetectorConfigurationImporter(experiment, run, experiment, -1)
99  if args.calib is not None:
100  # import SVDGlobalConfigParameters dbobject: ZS, latency, mask, APV clock units
101  configImporterToDB.importSVDGlobalConfigParametersFromXML(calibfile)
102  print(colored("V) Global Detector Configuration parameters: (ZS, latency, mask, APVClock units) Imported", 'green'))
103  # import SVDLocalConfigParameters dbobject: calibration peak and time units, date
104  configImporterToDB.importSVDLocalConfigParametersFromXML(calibfile)
105  print(colored("V) Local Detector Configuration parameters Imported", 'green'))
106  else:
107  print(colored("X) Detector Configuration parameters are not NOT imported.", 'red'))
108 
109 
110 main.add_module(configImporterToDBModule())
111 
112 process(main)
113 
114 print("IMPORT COMPLETED, check the localDB folder and then proceeed with the upload to the central DB")

The documentation for this class was generated from the following file:
SVDDetectorConfigurationImporter
Definition: SVDDetectorConfigurationImporter.py:1