22 since, until=(TileCalibTools.MAXRUN,TileCalibTools.MAXLBK)):
23
24
25
26 folder="/TILE/OFL02/STATUS/ADC"
27
28 mgr = TileBchTools.TileBchMgr()
29 mgr.setLogLvl(logging.DEBUG)
30
31
32 log.info("Initializing with no bad channels at tag=%s and time=%s", tag,(0,0))
33 mgr.initialize(db, folder, tag, since)
34
35
36 log.info("Updating from file %s", bchFile)
37 mgr.updateFromFile(bchFile)
38
39
40
41
42
43
44 log.info("bad channels after update")
45 mgr.listBadAdcs()
46
47
48
49
50 mgr.commitToDb(db, folder, tag, TileBchDecoder.BitPat_ofl01, os.getlogin(), bchFile, since, until)
51
52
53
54
55
56