diff --git a/scripts/checkTrackSelection.py b/scripts/checkTrackSelection.py index 0db4155..f6a506a 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 11:00:49 +# @Last Modified time: 2017-05-03 11:04:15 import ROOT as r import os @@ -16,6 +16,7 @@ fills = [2797, 3108, 3478, 3960, 4518] dets = ['TT', 'IT'] val = {'TT': 5, 'IT': 7} +layer = {'TT': 'TTaU', 'IT': 'T3X2'} stat = 10000000 r.gROOT.SetBatch(True) @@ -30,7 +31,7 @@ def printSelection(det, fill, stat): f = r.TFile(location[det] + '%s.root' % fill, 'read') - t_sig = f.Get('STADCTrackMonitor/HitInfo/TTaU') + t_sig = f.Get('STADCTrackMonitor/HitInfo/%s' % layer[det]) # t_bg = f.Get('STADCTrackMonitor/NoiseInfo/TTaU') # t_sig.Draw("GhostP : TrChi2/TrNDoF>>hnew(100,0., 5,100, 0.,1.)", "", "colz", 10000, 0)