8 from TileCalibBlobPython
import TileCalibTools
9 from TileCalibBlobPython
import TileBchTools
10 from TileCalibBlobObjs.Classes
import TileBchDecoder
13 from TileCalibBlobPython.TileCalibLogger
import getLogger
16 log.setLevel(logging.DEBUG)
22 since, until=(TileCalibTools.MAXRUN,TileCalibTools.MAXLBK)):
26 folder=
"/TILE/OFL02/STATUS/ADC"
28 mgr = TileBchTools.TileBchMgr()
29 mgr.setLogLvl(logging.DEBUG)
32 log.info(
"Initializing with no bad channels at tag=%s and time=%s", tag,(0,0))
33 mgr.initialize(db, folder, tag, since)
36 log.info(
"Updating from file %s", bchFile)
37 mgr.updateFromFile(bchFile)
44 log.info(
"bad channels after update")
50 mgr.commitToDb(db, folder, tag, TileBchDecoder.BitPat_ofl01, os.getlogin(), bchFile, since, until)
57 db = TileCalibTools.openDb(
'SQLITE',
'CONDBR2',
'UPDATE')
59 tag =
"TileOfl02StatusAdc-RUN2-UPD4-08"
92 "chanlists_to_db.txt",