diff --git a/scripts/checkTrackSelection.py b/scripts/checkTrackSelection.py index 2957306..6980fce 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-22 15:19:06 +# @Last Modified time: 2017-05-22 15:33:52 import sys import os from math import sqrt @@ -26,7 +26,7 @@ cut = {'TT': 12, 'IT': 20} stat = 20000000 -r.gROOT.SetBatch(True) +# r.gROOT.SetBatch(True) r.gROOT.ProcessLine('.X %s/../include/lhcbstyle.C' % os.getcwd()) # r.gStyle.SetPadRightMargin(0.16) # r.gStyle.SetPadLeftMargin(r.gStyle.GetPadLeftMargin() * 0.7) @@ -238,3 +238,5 @@ f = r.TFile(location[det] + '%s.root' % fill, 'read') t_sig = f.Get('STADCTrackMonitor/HitInfo/%s' % layer[det]) f, t_sig, h_list = printSelection(f, t_sig, det, fill, stat, good_steps=True, return_all=True) + punzi = h_list[-1] + punzi.Fit('bigaus')