8from TileCalibBlobPython
import TileCalibTools
9from TileCalibBlobObjs.Classes
import TileCalibUtils
12pointInTime = (999999999,0)
15from TileCalibBlobPython.TileCalibLogger
import getLogger
16log = getLogger(
"ps_readDb")
19db = TileCalibTools.openDbConn(
'COOLOFL_TILE/CONDBR2')
22folder =
"/TILE/OFL02/PULSESHAPE/PHY"
31blobReader = TileCalibTools.TileBlobReader(db,folder,folderTag)
34comment = blobReader.getComment(pointInTime)
35log.info(
"Comment: \"%s\"", comment)
38cd = blobReader.getDrawer(0,0,pointInTime)
49 dyLG = cd.getDY(0,0,x)
51 dyHG = cd.getDY(0,1,x)
54 print(
"x=%5.1f \tyLG=%5.4f\tdyLG=%5.4f \tyHG=%5.4f\tdyHG=%5.4f" % (x,yLG,dyLG,yHG,dyHG) )
70 psLG.SetPoint(i,xarr[i],yarrLG[i])
71 dsLG.SetPoint(i,xarr[i],darrLG[i])
72 psHG.SetPoint(i,xarr[i],yarrHG[i])
73 dsHG.SetPoint(i,xarr[i],darrHG[i])
74psLG.SetMarkerColor(ROOT.kBlue)
75dsLG.SetMarkerColor(ROOT.kBlue)
76psHG.SetMarkerColor(ROOT.kBlue)
77dsHG.SetMarkerColor(ROOT.kBlue)
86psLG.SetTitle(
"Low gain")
87dsLG.SetTitle(
"Low gain derivative")
88psHG.SetTitle(
"High gain")
89dsHG.SetTitle(
"High gain derivative")
91can = ROOT.TCanvas(
"can",
"Pulse Shapes")
102from builtins
import input
103c = input(
'please enter a character: ')
void print(char *figname, TCanvas *c1)
static std::string getFullTag(const std::string &folder, const std::string &tag)
Returns the full tag string, composed of camelized folder name and tag part.