Esempio n. 1
0
    hhh = TH2D("hhh","hhh",modmax-modmin+1,modmin-0.5,modmax+0.5,chanmax-chanmin+1,chanmin-0.5,chanmax+0.5)

if vsbin: tree.Draw(data,cut_cond,"goff",15)
else: tree.Draw(data,cut_cond,"goff")

if (not opt2d and tree.GetSelectedRows() <= 1) or tree.GetSelectedRows() <= 0:
    print "Not enough points to plot"
    sys.exit(2)

if vsbin:
    if tree.GetSelectedRows() >= 15:
        print "Maximum number of bins is 15"


if line or noline:
    gr = TGraph(tree.GetSelectedRows(),tree.GetV2(),tree.GetV1())
    gr.SetTitle(modulename +" " + " Channel "+ str(chan_n) +" " + gainvalue + titsuff)
    gr.SetMarkerStyle(20)
    gr.SetMarkerSize(1.3)
    gr.SetMarkerColor(2)
    gr.SetLineColor(2)
    gr.GetXaxis().SetNoExponent(kTRUE)
    if one_run: gr.GetXaxis().SetTitle("Lumi")
    else: gr.GetXaxis().SetTitle("Runs")
    if noline: gr.Draw("ap")
    else: gr.Draw("apl")

elif opt2d:
    nentries = tree.GetEntries()
    hhh.SetName(modulename)
    hhh.SetTitle(partname +" " + gainvalue + titsuff)
Esempio n. 2
0
'''RObjs['headerText'] = drawTitle(title)

#Create pad to hold all plots.
body = TPad("MainPad", "My main pad", 0, 0, 1, 0.9)
body.Draw()
halfSize = (int) (len(numReadsList)/2)
body.Divide(halfSize,halfSize)

i=1
for reads in numReadsList:
	body.cd(i)
	RObjs["graph%i" %i] = drawNext(reads)
	i+=1
'''
constraints = "ConcurrentReads==%i" % 6

numPoints = allData.Draw("VelocityMBps:BufferSize", constraints, "goff")

v2 = allData.GetV2()
v1 = allData.GetV1()

print("not broken")
graph = TGraph(numPoints, v2, v1)
print("did we break yet?")

graph.SetTitle("%i Concurrent Reads" % reads)
graph.SetXTitle("Read Velocity (MB/s)")
graph.Draw("ap")

BG.SaveAs("%s.png" % data_file.split('.output')[0])