8from TileCalibBlobPython
import TileCalibTools
9from TileCalibBlobObjs.Classes
import TileCalibUtils
13folder =
"/TILE/OFL02/NOISE/SAMPLE"
14pointInTime = (999999999,0)
18db = TileCalibTools.openDbConn(
'COOLOFL_TILE/CONDBR2')
21folderTag = TileCalibTools.getFolderTag(db, folder, globalTag)
27blobReader = TileCalibTools.TileBlobReader(db,folder,folderTag)
30comment = blobReader.getComment(pointInTime)
31print(
"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"
void print(char *figname, TCanvas *c1)
static unsigned int max_gain()
Python compatibility function.
static std::string getDrawerString(unsigned int ros, unsigned int drawer)
Return the drawer name, e.g.
static unsigned int max_chan()
Python compatibility function.
static unsigned int max_ros()
Python compatibility function.
static unsigned int getMaxDrawer(unsigned int ros)
Returns the maximal channel number for a given drawer.