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 "seeding": limitProcessing,
51 "building": limitProcessing,
52 "bhadron": limitProcessing,
56 ignore =
lambda a,q:
False 57 kwargs_tracking[
"limitSubFoldersOnlyTo"] = {
61 "fromPVAllTP": ignore,
62 "tpPtLess09": limitRelVal,
64 "bhadron": limitRelVal,
67 trk = [trackingPlots.plotter]
68 other = [trackingPlots.timePlotter, vertexPlots.plotter, trackingPlots.plotterHLT]
70 trk.append(trackingPlots.plotterExt)
71 other.extend([vertexPlots.plotterExt, trackingPlots.plotterHLTExt])
72 val.doPlots(trk, plotterDrawArgs=drawArgs, **kwargs_tracking)
73 val.doPlots(other, plotterDrawArgs=drawArgs)
76 print(
"Plots created into directory '%s'." % opts.outputDir)
79 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)
S & print(S &os, JobReport::InputFile const &f)