Belle II Software  release-05-02-19
dbImporterModule Class Reference
Inheritance diagram for dbImporterModule:
Collaboration diagram for dbImporterModule:

Public Member Functions

def beginRun (self)
 

Detailed Description

:author: Laura Zani
Module to call the importer methods for the payloads creation from XML file
:param calibfile: path to the xml file containing the local calibrations
:type calibfile: string

Definition at line 98 of file SVDLocalCalibrationsImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
Function to call the dbImporter methods to upload the different local payloads

Definition at line 106 of file SVDLocalCalibrationsImporter.py.

106  def beginRun(self):
107  """
108  Function to call the dbImporter methods to upload the different local payloads
109  """
110  # call the importer class
111  dbImporter = SVDLocalCalibrationsImporter(experiment, run, experiment, -1)
112  if args.calib is not None:
113  # import the noises
114  dbImporter.importSVDNoiseCalibrationsFromXML(calibfile)
115  print(colored("V) Noise Imported", 'green'))
116  # import the pedestals
117  dbImporter.importSVDPedestalCalibrationsFromXML(calibfile)
118  print(colored("V) Pedestal Imported", 'green'))
119  # import pulse shape calibrations
120  dbImporter.importSVDCalAmpCalibrationsFromXML(calibfile)
121  print(colored("V) Pulse Shape Calibrations Imported", 'green'))
122  # import FADCMasked strips only if NOT --nomask
123  if not args.mask:
124  dbImporter.importSVDFADCMaskedStripsFromXML(calibfile)
125  print(colored("V) FADC Masked Strips Imported", 'green'))
126  else:
127  print(colored("X) FADC Masked Strips are NOT imported.", 'red'))
128  if not args.localXml:
129  # import XML file only if NOT --isLocalXML
130  dbImporter.importSVDGlobalXMLFile(calibfile)
131  print(colored("V) Global Run Configuration xml payload file Imported", 'green'))
132  else:
133  print(colored("X) Global Run Configuration xml payload file is NOT imported.", 'red'))
134 
135 main.add_module(dbImporterModule())
136 
137 process(main)
138 
139 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:
SVDLocalCalibrationsImporter
Definition: SVDLocalCalibrationsImporter.py:1