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