26 sample = SimpleSample(opts.subdirprefix, opts.html_sample, [(f, f.replace(
".root",
""))
for f
in opts.files])
30 drawArgs[
"ratio"] =
False 32 drawArgs[
"separate"] =
True 34 drawArgs[
"saveFormat"] =
".png" 36 plotting.verbose =
True 38 val = SimpleValidation([sample], opts.outputDir)
39 htmlReport = val.createHtmlReport(validationName=opts.html_validation_name)
41 limitProcessing =
LimitTrackAlgo(opts.limit_tracking_algo, includePtCut=opts.ptcut)
43 "limitSubFoldersOnlyTo": {
45 "allTPEffic": limitProcessing,
46 "fromPV": limitProcessing,
47 "fromPVAllTP": limitProcessing,
48 "tpPtLess09": limitProcessing,
49 "seeding": limitProcessing,
50 "building": limitProcessing,
51 "bhadron": limitProcessing,
55 ignore =
lambda a,q:
False 56 kwargs_tracking[
"limitSubFoldersOnlyTo"] = {
60 "fromPVAllTP": ignore,
61 "tpPtLess09": limitRelVal,
63 "bhadron": limitRelVal,
66 trk = [trackingPlots.plotter]
67 other = [trackingPlots.timePlotter, vertexPlots.plotter, trackingPlots.plotterHLT]
69 trk.append(trackingPlots.plotterExt)
70 other.extend([vertexPlots.plotterExt, trackingPlots.plotterHLTExt])
71 val.doPlots(trk, plotterDrawArgs=drawArgs, **kwargs_tracking)
72 val.doPlots(other, plotterDrawArgs=drawArgs)
75 print "Plots created into directory '%s'." % opts.outputDir
78 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