test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
makeTrackValidationPlots Namespace Reference

Functions

def main
 

Variables

string help = "DQM file to plot the validation plots from"
 
tuple opts = parser.parse_args()
 
tuple parser = argparse.ArgumentParser(description="Create standard set of tracking validation plots from one or more DQM files.")
 

Function Documentation

def makeTrackValidationPlots.main (   opts)

Definition at line 10 of file makeTrackValidationPlots.py.

10 
11 def main(opts):
12  files = opts.files
13  labels = [f.replace(".root", "") for f in files]
14 
15  drawArgs={}
16  if opts.ratio:
17  drawArgs["ratio"] = True
18  if opts.separate:
19  drawArgs["separate"] = True
20  if opts.png:
21  drawArgs["saveFormat"] = ".png"
22 
23  val = SimpleValidation(files, labels, opts.outputDir)
24  kwargs = {}
25  if opts.html:
26  htmlReport = val.createHtmlReport(validationName=opts.html_validation_name)
27  htmlReport.beginSample(SimpleSample(opts.html_prefix, opts.html_sample))
28  kwargs["htmlReport"] = htmlReport
29  val.doPlots(trackingPlots.plotter, subdirprefix=opts.subdirprefix, plotterDrawArgs=drawArgs, **kwargs)
30  val.doPlots(vertexPlots.plotter, subdirprefix=opts.subdirprefix, plotterDrawArgs=drawArgs, **kwargs)
31  print
32  if opts.html:
33  htmlReport.write()
34  print "Plots and HTML report created into directory '%s'. You can just move it to some www area and access the pages via web browser" % opts.outputDir
35  else:
36  print "Plots created into directory '%s'." % opts.outputDir

Variable Documentation

string makeTrackValidationPlots.help = "DQM file to plot the validation plots from"

Definition at line 40 of file makeTrackValidationPlots.py.

tuple makeTrackValidationPlots.opts = parser.parse_args()

Definition at line 62 of file makeTrackValidationPlots.py.

tuple makeTrackValidationPlots.parser = argparse.ArgumentParser(description="Create standard set of tracking validation plots from one or more DQM files.")

Definition at line 38 of file makeTrackValidationPlots.py.