diff --git a/scripts/checkTrackSelection.py b/scripts/checkTrackSelection.py index 653fdd3..4d5390b 100644 --- a/scripts/checkTrackSelection.py +++ b/scripts/checkTrackSelection.py @@ -3,14 +3,14 @@ # @Author: Elena Graverini # @Date: 2015-10-27 18:26:49 # @Last Modified by: Elena Graverini -# @Last Modified time: 2017-05-22 17:01:53 +# @Last Modified time: 2017-05-24 09:34:22 import sys import os from math import sqrt import ROOT as r -location = {'TT': "/disk/data1/hep/elena/data/ST/Aging_Tuples/TT/TTaU/", - 'IT': "/disk/data1/hep/elena/data/ST/Aging_Tuples/IT/T3X2/"} +location = {'TT': os.path.expandvars("$DISK/data/ST/Aging_Tuples/TT/TTaU/"), + 'IT': os.path.expandvars("$DISK/data/ST/Aging_Tuples/IT/T3X2/")} out_location = os.getcwd() + '/trackSel' os.system('mkdir -p %s' % out_location) @@ -26,14 +26,18 @@ cut = {'TT': 12, 'IT': 20} stat = 20000000 -# 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) + +''' This causes segmentation violation in ROOT 6.06 +# r.gROOT.SetBatch(True) +r.gROOT.ProcessLine('.X %s/../include/lhcbstyle.C' % os.getcwd()) r.gStyle.SetPadLeftMargin(0.20) r.gStyle.SetPadRightMargin(0.25) r.gStyle.SetPadBottomMargin(0.15) r.gStyle.SetPadTopMargin(0.05) +''' + # r.gStyle.SetPalette(r.kBird) # r.gStyle.SetPalette(r.kCopper) r.gStyle.SetPalette(r.kViridis)