![]() |
ATLAS Offline Software
|
Functions | |
| usage () | |
| showAdcProblems (mgr, ros, mod) | |
| formatIOV (iov) | |
| writeMergedIOV (ros, mod, since, until) | |
Variables | |
| str | letters = "ht:f:o:i" |
| list | keywords = ["help","tag=","folder=","outtag=","instance="] |
| opts | |
| extraparams | |
| str | instance = 'OFLP200' |
| str | folderPath = "/TILE/OFL02/STATUS/ADC" |
| str | tag = "OFLCOND-MC16-SDR-28" |
| str | outtag = "test" |
| a = a.strip() | |
| log = getLogger("BchCleanup") | |
| str | ischema = 'sqlite://;schema=bch-input-sqlite.db;dbname='+instance |
| str | oschema = 'sqlite://;schema=bch-output-sqlite.db;dbname='+instance |
| idb = TileCalibTools.openDbConn(ischema,'READONLY') | |
| folderTag = TileCalibTools.getFolderTag(idb if 'CONDBR2' in ischema else ischema, folderPath, tag) | |
| blobReader = TileCalibTools.TileBlobReader(idb,folderPath, folderTag) | |
| str | outtagFull = 'TileOfl02StatusAdc-'+outtag |
| str | msg = 'AtlCoolCopy \"%s\" \"%s\" -folder /TILE/OFL02/STATUS/ADC -tag %s -outtag %s -ch1 0 -ch2 19 -create' % (ischema,oschema,folderTag,outtagFull) |
| === Dump the current isBad definition isBadDef = mgr.getAdcProblems(0,1,0,0) log.info( "isBad Definition: " ) for prbCode in sorted(isBadDef.keys()): prbDesc = isBadDef[prbCode] msg = "- %2i (%s)" % (prbCode,prbDesc) log.info( msg ) log.info( "\n" ) | |
| int | rosinput = int(sys.argv[1]) if len(sys.argv)>1 else 0 |
| int | rosmin = 1 |
| int | rosmax = 5 |
| modName = TileCalibUtils.getDrawerString(ros,mod) | |
| dbobjs = blobReader.getDBobjsWithinRange(ros, mod) | |
| mergedSince = None | |
| int | iovCounter = 0 |
| objPrev = None | |
| blobPrev = None | |
| calibDrawerPrev = None | |
| int | runPrev = -1 |
| int | lumPrev = -1 |
| obj = dbobjs.currentRef() | |
| objsince = obj.since() | |
| objuntil = obj.until() | |
| mergedUntil = objuntil | |
| int | run = objsince >> 32 |
| int | lum = objsince & 0xFFFFFFFF |
| blob = obj.payload()[0] | |
| calibDrawer = None | |
| str | tempRunLum = "Starting new IOV at: [%d,%d]" % (mergedSince>>32, mergedSince&0xffffffff) |
| bchDecoder = TileBchDecoder(calibDrawer.getBitPatternVersion()) | |
| mgr = TileBchTools.TileBchMgr() | |
| bool | identical = True |
| int | sizelo = calibDrawerPrev.getObjSizeByte()//4 |
| int | sizehi = calibDrawer.getObjSizeByte()//4 |
| typelo = calibDrawerPrev.getObjType() | |
| typehi = calibDrawer.getObjType() | |
| adcBits = calibDrawer.getData(chn, adc, ind) | |
| chnBits = calibDrawer.getData(chn, 2, ind) | |
| status = TileBchStatus( bchDecoder.decode(chnBits,adcBits) ) | |
| statusPrev = TileBchStatus( bchDecoder.decode(chnBits,adcBits) ) | |
| adclo = calibDrawerPrev.getData(chn, adc, ind) | |
| adchi = calibDrawer.getData(chn, adc, ind) | |
| chnlo = calibDrawerPrev.getData(chn, 2, ind) | |
| chnhi = calibDrawer.getData(chn, 2, ind) | |
| diff = adclo - adchi + chnlo - chnhi | |
| BchCleanup.formatIOV | ( | iov | ) |
Definition at line 50 of file BchCleanup.py.
| BchCleanup.showAdcProblems | ( | mgr, | |
| ros, | |||
| mod ) |
Definition at line 29 of file BchCleanup.py.
| BchCleanup.usage | ( | ) |
Definition at line 17 of file BchCleanup.py.
| BchCleanup.writeMergedIOV | ( | ros, | |
| mod, | |||
| since, | |||
| until ) |
Writes out blob into folder fdout, at channel related to ros,mod and with validity range given by since,until
Definition at line 54 of file BchCleanup.py.
| BchCleanup.a = a.strip() |
Definition at line 113 of file BchCleanup.py.
| BchCleanup.adcBits = calibDrawer.getData(chn, adc, ind) |
Definition at line 338 of file BchCleanup.py.
| BchCleanup.adchi = calibDrawer.getData(chn, adc, ind) |
Definition at line 347 of file BchCleanup.py.
| BchCleanup.adclo = calibDrawerPrev.getData(chn, adc, ind) |
Definition at line 346 of file BchCleanup.py.
| BchCleanup.bchDecoder = TileBchDecoder(calibDrawer.getBitPatternVersion()) |
Definition at line 291 of file BchCleanup.py.
| BchCleanup.blob = obj.payload()[0] |
Definition at line 241 of file BchCleanup.py.
| BchCleanup.blobPrev = None |
Definition at line 216 of file BchCleanup.py.
| BchCleanup.blobReader = TileCalibTools.TileBlobReader(idb,folderPath, folderTag) |
Definition at line 159 of file BchCleanup.py.
| BchCleanup.calibDrawer = None |
Definition at line 243 of file BchCleanup.py.
| BchCleanup.calibDrawerPrev = None |
Definition at line 217 of file BchCleanup.py.
| BchCleanup.chnBits = calibDrawer.getData(chn, 2, ind) |
Definition at line 339 of file BchCleanup.py.
| BchCleanup.chnhi = calibDrawer.getData(chn, 2, ind) |
Definition at line 349 of file BchCleanup.py.
| BchCleanup.chnlo = calibDrawerPrev.getData(chn, 2, ind) |
Definition at line 348 of file BchCleanup.py.
| BchCleanup.dbobjs = blobReader.getDBobjsWithinRange(ros, mod) |
Definition at line 204 of file BchCleanup.py.
| BchCleanup.extraparams |
Definition at line 99 of file BchCleanup.py.
| str BchCleanup.folderPath = "/TILE/OFL02/STATUS/ADC" |
Definition at line 107 of file BchCleanup.py.
| BchCleanup.folderTag = TileCalibTools.getFolderTag(idb if 'CONDBR2' in ischema else ischema, folderPath, tag) |
Definition at line 156 of file BchCleanup.py.
| BchCleanup.idb = TileCalibTools.openDbConn(ischema,'READONLY') |
Definition at line 152 of file BchCleanup.py.
| bool BchCleanup.identical = True |
Definition at line 304 of file BchCleanup.py.
| BchCleanup.instance = 'OFLP200' |
Definition at line 106 of file BchCleanup.py.
| int BchCleanup.iovCounter = 0 |
Definition at line 214 of file BchCleanup.py.
| str BchCleanup.ischema = 'sqlite://;schema=bch-input-sqlite.db;dbname='+instance |
Definition at line 140 of file BchCleanup.py.
Definition at line 97 of file BchCleanup.py.
| str BchCleanup.letters = "ht:f:o:i" |
Definition at line 96 of file BchCleanup.py.
| BchCleanup.log = getLogger("BchCleanup") |
Definition at line 136 of file BchCleanup.py.
| int BchCleanup.lum = objsince & 0xFFFFFFFF |
Definition at line 240 of file BchCleanup.py.
| BchCleanup.lumPrev = -1 |
Definition at line 219 of file BchCleanup.py.
| BchCleanup.mergedSince = None |
Definition at line 212 of file BchCleanup.py.
| BchCleanup.mergedUntil = objuntil |
Definition at line 237 of file BchCleanup.py.
| BchCleanup.mgr = TileBchTools.TileBchMgr() |
Definition at line 294 of file BchCleanup.py.
| BchCleanup.modName = TileCalibUtils.getDrawerString(ros,mod) |
Definition at line 201 of file BchCleanup.py.
| str BchCleanup.msg = 'AtlCoolCopy \"%s\" \"%s\" -folder /TILE/OFL02/STATUS/ADC -tag %s -outtag %s -ch1 0 -ch2 19 -create' % (ischema,oschema,folderTag,outtagFull) |
=== Dump the current isBad definition isBadDef = mgr.getAdcProblems(0,1,0,0) log.info( "isBad Definition: " ) for prbCode in sorted(isBadDef.keys()): prbDesc = isBadDef[prbCode] msg = "- %2i (%s)" % (prbCode,prbDesc) log.info( msg ) log.info( "\n" )
Definition at line 177 of file BchCleanup.py.
| BchCleanup.obj = dbobjs.currentRef() |
Definition at line 230 of file BchCleanup.py.
| BchCleanup.objPrev = None |
Definition at line 215 of file BchCleanup.py.
| BchCleanup.objsince = obj.since() |
Definition at line 231 of file BchCleanup.py.
| BchCleanup.objuntil = obj.until() |
Definition at line 232 of file BchCleanup.py.
| BchCleanup.opts |
Definition at line 99 of file BchCleanup.py.
| str BchCleanup.oschema = 'sqlite://;schema=bch-output-sqlite.db;dbname='+instance |
Definition at line 141 of file BchCleanup.py.
| BchCleanup.outtag = "test" |
Definition at line 109 of file BchCleanup.py.
| str BchCleanup.outtagFull = 'TileOfl02StatusAdc-'+outtag |
Definition at line 163 of file BchCleanup.py.
| int BchCleanup.rosinput = int(sys.argv[1]) if len(sys.argv)>1 else 0 |
Definition at line 189 of file BchCleanup.py.
| int BchCleanup.rosmax = 5 |
Definition at line 193 of file BchCleanup.py.
| int BchCleanup.rosmin = 1 |
Definition at line 192 of file BchCleanup.py.
| int BchCleanup.run = objsince >> 32 |
Definition at line 239 of file BchCleanup.py.
| BchCleanup.runPrev = -1 |
Definition at line 218 of file BchCleanup.py.
| int BchCleanup.sizehi = calibDrawer.getObjSizeByte()//4 |
Definition at line 311 of file BchCleanup.py.
| int BchCleanup.sizelo = calibDrawerPrev.getObjSizeByte()//4 |
Definition at line 310 of file BchCleanup.py.
| BchCleanup.status = TileBchStatus( bchDecoder.decode(chnBits,adcBits) ) |
Definition at line 340 of file BchCleanup.py.
| BchCleanup.statusPrev = TileBchStatus( bchDecoder.decode(chnBits,adcBits) ) |
Definition at line 344 of file BchCleanup.py.
| BchCleanup.tag = "OFLCOND-MC16-SDR-28" |
Definition at line 108 of file BchCleanup.py.
| str BchCleanup.tempRunLum = "Starting new IOV at: [%d,%d]" % (mergedSince>>32, mergedSince&0xffffffff) |
Definition at line 280 of file BchCleanup.py.
| BchCleanup.typehi = calibDrawer.getObjType() |
Definition at line 316 of file BchCleanup.py.
| BchCleanup.typelo = calibDrawerPrev.getObjType() |
Definition at line 315 of file BchCleanup.py.