diff --git a/scripts/checkTrackSelection.py b/scripts/checkTrackSelection.py index 0a6c955..b02af1e 100644 --- a/scripts/checkTrackSelection.py +++ b/scripts/checkTrackSelection.py @@ -3,7 +3,7 @@ # @Author: Elena Graverini # @Date: 2015-10-27 18:26:49 # @Last Modified by: Elena Graverini -# @Last Modified time: 2017-05-03 14:48:55 +# @Last Modified time: 2017-05-03 14:53:14 import ROOT as r import os @@ -73,14 +73,16 @@ c.Update() c.SaveAs('%s/%s_fill%s.pdf' % (out_location, det, fill)) + h_sig.Delete() + h_noise.Delete() # f.Close() def printADC(f, t_sig, det, fill, stat, step): # f = r.TFile(location[det] + '%s.root' % fill, 'read') # t_sig = f.Get('STADCTrackMonitor/HitInfo/%s' % layer[det]) - t_sig.Draw("val%s>>hsig(110,-35, 75)" % val[det], "odinStep==%s" % step, "goff", stat, 0) - h_sig = r.gDirectory.Get('hsig') + t_sig.Draw("val%s>>hsig%s(110,-35, 75)" % (val[det], step), "odinStep==%s" % step, "goff", stat, 0) + h_sig = r.gDirectory.Get('hsig%s' % step) r.gROOT.ProcessLine('.X %s/../include/lhcbstyle.C' % os.getcwd()) c = r.TCanvas() @@ -97,15 +99,16 @@ label.SetTextSize(0.06) label.SetTextAlign(22) # label.SetTextColor(r.kWhite) - label.AddText('Fill %s' % fill) + label.AddText('Fill %s\n' % fill) from checkPulseData import get_vmap - v_bias = get_vmap(det)[int(step) / 11] + v_bias = get_vmap(det)[int(step) / 6] label.AddText('V_{bias} = %s V' % v_bias) label.Draw('same') c.Modified() c.Update() c.SaveAs('%s/%s_odinStep%s_fill%s.pdf' % (out_location, det, step, fill)) + h_sig.Delete() # f.Close()