Belle II Software release-09-00-00
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 92 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 99 of file SVDLocalCalibrationsImporter.py.

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

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