#!/usr/bin/python import os,sys ## __________ importing root __________ print 'importing ROOT...', from ROOT import * from clean_canvas import * from nice_colours import * gStyle = makegstyle(gStyle) gStyle = nice_colours(gStyle) gStyle.SetOptFit(1) print '... done' fn = '/home/e614/analysis_2006_2007/treesum/data/set84anal5/ecmcfit_s84a5s1_g501a1_2s2.root' f = TFile(fn) gr = f.Get('SliceFit_MPcorr/edge') gr1 = gr.Clone() gr2 = gr.Clone() gr1.GetXaxis().SetRangeUser(-2.3,-1.1) gr2.GetXaxis().SetRangeUser(1.1,2.3) gr1.Fit('pol1','EM','',-2.3,-1.1) gr2.Fit('pol1','EM','',1.1,2.3) c1 = TCanvas() c1.Divide(2,1) c1.cd(1) gr1.Draw('AP') c1.cd(2) gr2.Draw('AP') au = raw_input('>')