Belle II Software development
dbImporterModule Class Reference
Inheritance 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 91 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 98 of file SVDLocalCalibrationsImporter.py.

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

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