Belle II Software  release-08-01-10
dbImporterModule Class Reference
Inheritance diagram for dbImporterModule:
Collaboration diagram for dbImporterModule:

Public Member Functions

def beginRun (self)
 

Detailed Description

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 93 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 100 of file SVDLocalCalibrationsImporter.py.

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