CMS 3D CMS Logo

Functions | Variables
makeHGCalValidationPlots Namespace Reference

Functions

def main (opts)
 

Variables

 action
 
 default
 
 description
 
 help
 
 metavar
 
 nargs
 
 opts
 
 parser
 
 str
 
 type
 

Function Documentation

def makeHGCalValidationPlots.main (   opts)

Definition at line 11 of file makeHGCalValidationPlots.py.

References edm.print().

11 def main(opts):
12  sample = SimpleSample(opts.subdirprefix, opts.html_sample, [(f, f.replace(".root", "")) for f in opts.files])
13 
14  drawArgs={}
15  if opts.no_ratio:
16  drawArgs["ratio"] = False
17  if opts.separate:
18  drawArgs["separate"] = True
19  if opts.png:
20  drawArgs["saveFormat"] = ".png"
21  if opts.verbose:
22  plotting.verbose = True
23 
24  val = SimpleValidation([sample], opts.outputDir)
25  htmlReport = val.createHtmlReport(validationName=opts.html_validation_name)
26 
27  hgclayclus = [hgcalPlots.hgcalLayerClustersPlotter]
28  val.doPlots(hgclayclus, plotterDrawArgs=drawArgs)
29  print()
30  if opts.no_html:
31  print("Plots created into directory '%s'." % opts.outputDir)
32  else:
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 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66

Variable Documentation

makeHGCalValidationPlots.action

Definition at line 44 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.default

Definition at line 40 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.description

Definition at line 37 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.help

Definition at line 39 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.metavar

Definition at line 38 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.nargs

Definition at line 38 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.opts

Definition at line 58 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.parser

Definition at line 37 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.str

Definition at line 38 of file makeHGCalValidationPlots.py.

makeHGCalValidationPlots.type

Definition at line 38 of file makeHGCalValidationPlots.py.