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 "seeding": limitProcessing,
49 "building": limitProcessing,
53 ignore =
lambda a,q:
False 54 kwargs_tracking[
"limitSubFoldersOnlyTo"] = {
58 "fromPVAllTP": ignore,
63 trk = [trackingPlots.plotter]
64 other = [trackingPlots.timePlotter, vertexPlots.plotter]
66 trk.append(trackingPlots.plotterExt)
67 other.append(vertexPlots.plotterExt)
68 val.doPlots(trk, plotterDrawArgs=drawArgs, **kwargs_tracking)
69 val.doPlots(other, plotterDrawArgs=drawArgs)
72 print "Plots created into directory '%s'." % opts.outputDir
75 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