Beispiel #1
0
    SpecialPixelMapSvc.SpecialPixelMapKeys = ['SpecialPixelMap', 'PixMapLong']
    conddb.iovdbsvc.Folders += [
        "<dbConnection> oracle://ATLAS_COOLPROD;schema=ATLAS_COOLOFL_PIXEL;dbname=COMP200 </dbConnection> /PIXEL/PixMapShort <tag>"
        + ReferenceTag + "</tag>" + "<key> /PIXEL/PixMapShortRef_oracle </key>"
    ]
    conddb.iovdbsvc.Folders += [
        "<dbConnection> oracle://ATLAS_COOLPROD;schema=ATLAS_COOLOFL_PIXEL;dbname=COMP200 </dbConnection> /PIXEL/PixMapLong <tag>"
        + ReferenceLongTag + "</tag>" +
        "<key> /PIXEL/PixMapLongRef_oracle </key>"
    ]

    if os.path.isfile("noisemap.db"):
        SpecialPixelMapSvc.OverlayFolder = '/PIXEL/PixMapShortRef_sqlite'
        SpecialPixelMapSvc.OverlayLongFolder = '/PIXEL/PixMapLongRef_sqlite'
        SpecialPixelMapSvc.OverlayKey = 'PixMapShort_sqlite'
        SpecialPixelMapSvc.OverlayLongKey = 'PixMapLong_sqlite'
        SpecialPixelMapSvc.ModuleLevelOverlay = True
        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
    conddb.iovdbsvc.Folders += [
        "<dbConnection> oracle://ATLAS_COOLPROD;schema=ATLAS_COOLOFL_PIXEL;dbname=COMP200 </dbConnection> /PIXEL/NoiseMapShort <tag>"
        + ReferenceTag + "</tag>" +
        "<key> /PIXEL/NoiseMapShortRef_oracle </key>"
    ]
    conddb.iovdbsvc.Folders += [
        "<dbConnection> oracle://ATLAS_COOLPROD;schema=ATLAS_COOLOFL_PIXEL;dbname=COMP200 </dbConnection> /PIXEL/NoiseMapLong <tag>"
        + ReferenceLongTag + "</tag>" +
        "<key> /PIXEL/NoiseMapLongRef_oracle </key>"
    ]

    if os.path.isfile("noisemap.db"):
        SpecialPixelMapSvc.OverlayFolder = '/PIXEL/NoiseMapShortRef_sqlite'
        SpecialPixelMapSvc.OverlayLongFolder = '/PIXEL/NoiseMapLongRef_sqlite'
        SpecialPixelMapSvc.OverlayKey = 'NoiseMapShort_sqlite'
        SpecialPixelMapSvc.OverlayLongKey = 'NoiseMapLong_sqlite'
        SpecialPixelMapSvc.ModuleLevelOverlay = True
        conddb.iovdbsvc.Folders += [
            "<dbConnection> sqlite://;schema=noisemap.db;dbname=COMP200 </dbConnection> /PIXEL/NoiseMapShort <tag>"
            + ReferenceTag + "</tag>" +
            "<key> /PIXEL/NoiseMapShortRef_sqlite </key>"
        ]
        conddb.iovdbsvc.Folders += [
            "<dbConnection> sqlite://;schema=noisemap.db;dbname=COMP200 </dbConnection> /PIXEL/NoiseMapLong <tag>"
            + ReferenceLongTag + "</tag>" +
            "<key> /PIXEL/NoiseMapLongRef_sqlite </key>"
        ]

## configure the PixMapDBWriter algorithm:

from PixelCalibAlgs.PixelCalibAlgsConf import PixMapDBWriter