27 sample = SimpleSample(opts.subdirprefix, opts.html_sample, [(f, f.replace(
".root",
""))
for f
in opts.files])
31 drawArgs[
"ratio"] =
False
33 drawArgs[
"separate"] =
True
35 drawArgs[
"saveFormat"] =
".png"
37 plotting.verbose =
True
39 val = SimpleValidation([sample], opts.outputDir)
40 htmlReport = val.createHtmlReport(validationName=opts.html_validation_name)
42 limitProcessing = LimitTrackAlgo(opts.limit_tracking_algo, includePtCut=opts.ptcut)
44 "limitSubFoldersOnlyTo": {
46 "allTPEffic": limitProcessing,
47 "fromPV": limitProcessing,
48 "fromPVAllTP": limitProcessing,
49 "tpPtLess09": limitProcessing,
50 "tpEtaGreater2p7": limitProcessing,
51 "seeding": limitProcessing,
52 "building": limitProcessing,
53 "bhadron": limitProcessing,
57 ignore =
lambda a,q:
False
58 kwargs_tracking[
"limitSubFoldersOnlyTo"] = {
62 "fromPVAllTP": ignore,
63 "tpPtLess09": limitRelVal,
64 "tpEtaGreater2p7": limitRelVal,
66 "bhadron": limitRelVal,
69 trk = [trackingPlots.plotter]
70 other = [trackingPlots.timePlotter, vertexPlots.plotter, trackingPlots.plotterHLT]
72 trk.append(trackingPlots.plotterExt)
73 other.extend([vertexPlots.plotterExt, trackingPlots.plotterHLTExt])
74 val.doPlots(trk, plotterDrawArgs=drawArgs, **kwargs_tracking)
75 val.doPlots(other, plotterDrawArgs=drawArgs)
78 print(
"Plots created into directory '%s'." % opts.outputDir)
81 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)