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,
54 "displaced": limitProcessing,
58 ignore =
lambda a,q:
False 59 kwargs_tracking[
"limitSubFoldersOnlyTo"] = {
63 "fromPVAllTP": ignore,
64 "tpPtLess09": limitRelVal,
65 "tpEtaGreater2p7": limitRelVal,
67 "bhadron": limitRelVal,
68 "displaced": limitRelVal,
71 trk = [trackingPlots.plotter]
72 other = [trackingPlots.timePlotter, vertexPlots.plotter, trackingPlots.plotterHLT]
74 trk.append(trackingPlots.plotterExt)
75 other.extend([vertexPlots.plotterExt, trackingPlots.plotterHLTExt])
76 val.doPlots(trk, plotterDrawArgs=drawArgs, **kwargs_tracking)
77 val.doPlots(other, plotterDrawArgs=drawArgs)
80 print(
"Plots created into directory '%s'." % opts.outputDir)
83 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)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)