8 from TileCalibBlobPython
import TileCalibTools
9 from TileCalibBlobObjs.Classes
import TileCalibUtils
13 folder =
"/TILE/OFL02/NOISE/SAMPLE"
14 pointInTime = (999999999,0)
18 db = TileCalibTools.openDbConn(
'COOLOFL_TILE/CONDBR2')
21 folderTag = TileCalibTools.getFolderTag(db, folder, globalTag)
27 blobReader = TileCalibTools.TileBlobReader(db,folder,folderTag)
30 comment = blobReader.getComment(pointInTime)
31 print(
"Comment: \"%s\"" % comment)
39 drawer = blobReader.getDrawer(ros,mod,pointInTime)
45 ped = drawer.getData(chn,adc, 0)
46 hfn = drawer.getData(chn,adc, 1)
50 if drawer.getObjSizeUint32() > 2:
51 lfn = drawer.getData(chn,adc, 2)
53 print(
"%s, channel=%2i, gain=%i -> ped=%5.4f\thfn=%5.4f\tlfn=%5.4f"