import sys,copy sys.path.append('/home/mberger/fopiroot/fopiroot_dev/macro/tpc/FOPI/mberger') import ROOT,glob,math,argparse from functions import Divideh,set_palette,setRange,setGraph,getColors,thisIsTheEnd,getGraphYMaxMin parser=argparse.ArgumentParser(description="compare digiresiduals with theoretical values") parser.add_argument('infiles',help='inupt files. root files from calib_gemSpread.py',type=str,nargs='+') parser.add_argument('--titles',help='the titles to use',default='',type=str,nargs='+') args=parser.parse_args() ROOT.gROOT.ProcessLine(".x rootlogon.C") ROOT.gROOT.ProcessLine('gROOT->SetStyle("Plain")') set_palette() canvas=ROOT.TCanvas('canvas','Comparison',1000,1000) canvas.Divide(2,2) vargraphs=[] diffgraphs=[] fracgraphs=[] ifile=-1 thetas=[] for f in args.infiles: ifile+=1 if len(args.titles)