Belle II Software  release-08-01-10
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 85 of file SVDDetectorConfigurationImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 88 of file SVDDetectorConfigurationImporter.py.

88  def beginRun(self):
89  '''begin run'''
90 
91  # call the importer class
92  configImporterToDB = SVDDetectorConfigurationImporter(experiment, run, experiment, -1)
93  if args.calib is not None:
94  # import SVDGlobalConfigParameters dbobject: ZS, latency, mask, APV clock units
95  configImporterToDB.importSVDGlobalConfigParametersFromXML(calibfile)
96  print(colored("V) Global Detector Configuration parameters: (ZS, latency, mask, APVClock units) Imported", 'green'))
97  # import SVDLocalConfigParameters dbobject: calibration peak and time units, date
98  configImporterToDB.importSVDLocalConfigParametersFromXML(calibfile)
99  print(colored("V) Local Detector Configuration parameters Imported", 'green'))
100  else:
101  print(colored("X) Detector Configuration parameters are not NOT imported.", 'red'))
102 
103 
104 main.add_module(configImporterToDBModule())
105 
106 b2.process(main)
107 
108 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: