Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:55:57

0001 # Implementation to draw results of an APE measurement
0002 # to check convergence
0003 from validationPlotter import *
0004 from granularity import *
0005 import ROOT
0006 import os
0007 try:
0008     base = os.environ['CMSSW_BASE']+"/src/Alignment/APEEstimation"
0009 except KeyError:
0010     base = ""
0011 
0012 plot = ValidationPlotter()
0013 plot.setOutputPath(base+"/hists/workingArea/validation") 
0014 # label(also used as name when adding systematic errors), inputFile, color (optional, automatic by default), 
0015 # marker (optional, 20 by default, 0 is line)
0016 # Multiple inputs possible, in which case the plots will be normalized
0017 # Remember that the folder has to be either iter0 or iter15 or baseline
0018 plot.addInputFile("mp3401", "{base}/hists/workingArea/iter15/allData.root".format(base=base),color=ROOT.kBlack)
0019 plot.addInputFile("Design", "{base}/hists/Design/baseline/allData.root".format(base=base),color=ROOT.kRed,marker=0)
0020 plot.setGranularity(standardGranularity)
0021 plot.draw()