Example #1
0
mgr.initialize(db, folderPath, folderTag, (run, lumi), warn, -2)
if iov or comment or warn < 0:
    blobReader = TileCalibTools.TileBlobReader(db, folderPath, folderTag)

#=== Dump the current isBad definition
isBadDef = mgr.getAdcProblems(0, TileCalibUtils.definitions_draweridx(),
                              TileCalibUtils.bad_definition_chan(), 0)
if len(list(isBadDef.keys())):
    log.info("isBad Definition: ")
    for prbCode in sorted(isBadDef.keys()):
        prbDesc = isBadDef[prbCode]
        msg = "- %2i (%s)" % (prbCode, prbDesc)
        log.info(msg)
#=== Dump the current isBadTiming definition
isBadTimingDef = mgr.getAdcProblems(0, TileCalibUtils.definitions_draweridx(),
                                    TileCalibUtils.badtiming_definition_chan(),
                                    0)
if len(list(isBadTimingDef.keys())):
    log.info("isBadTiming Definition: ")
    for prbCode in sorted(isBadTimingDef.keys()):
        prbDesc = isBadTimingDef[prbCode]
        msg = "- %2i (%s)" % (prbCode, prbDesc)
        log.info(msg)

#=== check ROS and module numbers
if one_mod:
    partname = modulename[:3]
    mod = int(modulename[3:]) - 1

part_dict = {'AUX': 0, 'LBA': 1, 'LBC': 2, 'EBA': 3, 'EBC': 4}
if partname in part_dict:
Example #2
0
 def getBadTimingDefinition(self):
     """
     Returns bad time status definition
     """
     return self.getAdcStatus(0, TileCalibUtils.definitions_draweridx(),
                              TileCalibUtils.badtiming_definition_chan(), 0)