diff --git a/scripts/checkTrackSelection.py b/scripts/checkTrackSelection.py index 4baa45b..32a25f8 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 15:01:49 +# @Last Modified time: 2017-05-03 15:03:54 import ROOT as r import os @@ -71,7 +71,10 @@ def printADC(f, t_sig, det, fill, stat, step): - print t_sig.Draw("val%s>>hsig%s(210,-35, 175)" % (val[det], step), "odinStep==%s" % step, "goff") # , stat, 0) + if step > 30: + print t_sig.Draw("val%s>>hsig%s(210,-35, 175)" % (val[det], step), "odinStep==%s" % step, "goff") # , stat, 0) + else: + print t_sig.Draw("val%s>>hsig%s(210,-35, 175)" % (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()