conddb.iovdbsvc.Folders += [ "<dbConnection> sqlite://;schema=noisemap.db;dbname=COMP200 </dbConnection> /PIXEL/PixMapShort <tag>" + ReferenceTag + "</tag>" + "<key> /PIXEL/PixMapShortRef_sqlite </key>" ] conddb.iovdbsvc.Folders += [ "<dbConnection> sqlite://;schema=noisemap.db;dbname=COMP200 </dbConnection> /PIXEL/PixMapLong <tag>" + ReferenceLongTag + "</tag>" + "<key> /PIXEL/PixMapLongRef_sqlite </key>" ] ## configure the PixMapDBWriter algorithm: from PixelCalibAlgs.PixelCalibAlgsConf import PixMapDBWriter PixMapDBWriter = PixMapDBWriter() PixMapDBWriter.PixMapFileName = PixMapFilename # name of ROOT input file with maps of noisy pixels PixMapDBWriter.CalculateOccupancy = True if 'PixelStatus' in dir(): PixMapDBWriter.PixelStatus = PixelStatus if 'ListSpecialPixels' in dir(): PixMapDBWriter.ListSpecialPixels = ListSpecialPixels PixMapDBWriter.PixelPropertyName = PixelPropertyName doMerge = False if doMerge == True: PixMapDBWriter.SpecialPixelMapKey = SpecialPixelMapSvc.SpecialPixelMapKeys[
conddb.iovdbsvc.Folders += [ "<dbConnection> sqlite://;schema=noisemap.db;dbname=CONDBR2 </dbConnection> /PIXEL/NoiseMapShort <tag>" + ReferenceTag + "</tag>" + "<key> /PIXEL/NoiseMapShortRef_sqlite </key>" ] conddb.iovdbsvc.Folders += [ "<dbConnection> sqlite://;schema=noisemap.db;dbname=CONDBR2 </dbConnection> /PIXEL/NoiseMapLong <tag>" + ReferenceLongTag + "</tag>" + "<key> /PIXEL/NoiseMapLongRef_sqlite </key>" ] ## configure the PixMapDBWriter algorithm: from PixelCalibAlgs.PixelCalibAlgsConf import PixMapDBWriter PixMapDBWriter = PixMapDBWriter() if not 'NoiseMapFilename' in dir(): NoiseMapFilename = "NoiseMap.root" PixMapDBWriter.PixMapFileName = NoiseMapFilename # name of ROOT input file with maps of noisy pixels PixMapDBWriter.DoValidate = True PixMapDBWriter.SpecialPixelMapKey = SpecialPixelMapSvc.SpecialPixelMapKeys[0] ## DetFlags from AthenaCommon.DetFlags import DetFlags DetFlags.all_setOff() DetFlags.pixel_setOn()
conddb.iovdbsvc.Folders += [ "<dbConnection> sqlite://;schema=deadmap.db;dbname=CONDBR2 </dbConnection> /PIXEL/PixMapShort <tag>" + ReferenceTag + "</tag>" + "<key> /PIXEL/PixMapShortRef_sqlite </key>" ] conddb.iovdbsvc.Folders += [ "<dbConnection> sqlite://;schema=deadmap.db;dbname=CONDBR2 </dbConnection> /PIXEL/PixMapLong <tag>" + ReferenceLongTag + "</tag>" + "<key> /PIXEL/PixMapLongRef_sqlite </key>" ] ## configure the PixMapDBWriter algorithm: from PixelCalibAlgs.PixelCalibAlgsConf import PixMapDBWriter PixMapDBWriter = PixMapDBWriter() PixMapDBWriter.PixMapFileName = PixMapFilename # name of ROOT input file with maps of noisy pixels PixMapDBWriter.DoValidate = True PixMapDBWriter.SpecialPixelMapKey = SpecialPixelMapSvc.SpecialPixelMapKeys[0] PixMapDBWriter.PixelPropertyName = PixelPropertyName if 'PixelStatus' in dir(): PixMapDBWriter.PixelStatus = PixelStatus if 'ListSpecialPixels' in dir(): PixMapDBWriter.ListSpecialPixels = ListSpecialPixels ## DetFlags
conddb.iovdbsvc.Folders += [ "<dbConnection> sqlite://;schema=noisemap.db;dbname=CONDBR2 </dbConnection> /PIXEL/NoiseMapShort <tag>" + ReferenceTag + "</tag>" + "<key> /PIXEL/NoiseMapShortRef_sqlite </key>" ] conddb.iovdbsvc.Folders += [ "<dbConnection> sqlite://;schema=noisemap.db;dbname=CONDBR2 </dbConnection> /PIXEL/NoiseMapLong <tag>" + ReferenceLongTag + "</tag>" + "<key> /PIXEL/NoiseMapLongRef_sqlite </key>" ] ## configure the PixMapDBWriter algorithm: from PixelCalibAlgs.PixelCalibAlgsConf import PixMapDBWriter PixMapDBWriter = PixMapDBWriter() if not 'NoiseMapFilename' in dir(): NoiseMapFilename = "NoiseMap.root" PixMapDBWriter.PixMapFileName = NoiseMapFilename # name of ROOT input file with maps of noisy pixels #PixMapDBWriter.CalculateOccupancy = True doMerge = False if doMerge == True: PixMapDBWriter.SpecialPixelMapKey = SpecialPixelMapSvc.SpecialPixelMapKeys[ 0] # key of special pixel map to merge with the new noise map ## DetFlags