15 drawArgs[
"ratio"] =
False
17 drawArgs[
"separate"] =
True
19 drawArgs[
"saveFormat"] =
".png"
21 plotting.verbose =
True
23 filenames = [(f, f.replace(
".root",
""))
for f
in opts.files]
24 sample = SimpleSample(opts.subdirprefix[0], opts.html_sample, filenames)
26 val = SimpleValidation([sample], opts.outputDir[0])
27 htmlReport = val.createHtmlReport(validationName=opts.html_validation_name[0])
29 if opts.collection==
"hgcalLayerClusters":
30 hgclayclus = [hgcalPlots.hgcalLayerClustersPlotter]
31 val.doPlots(hgclayclus, plotterDrawArgs=drawArgs)
32 elif opts.collection
in [
"hgcalMultiClusters",
"multiClustersFromTrackstersMIP",
"multiClustersFromTrackstersTrk",
"multiClustersFromTrackstersEM",
"multiClustersFromTrackstersHAD"]:
33 hgcmulticlus = [hgcalPlots.hgcalMultiClustersPlotter]
34 val.doPlots(hgcmulticlus, plotterDrawArgs=drawArgs)
35 elif opts.collection==
"hitValidation":
36 hgchit = [hgcalPlots.hgcalHitPlotter]
37 val.doPlots(hgchit, plotterDrawArgs=drawArgs)
38 elif opts.collection==
"hitCalibration":
39 hgchitcalib = [hgcalPlots.hgcalHitCalibPlotter]
40 val.doPlots(hgchitcalib, plotterDrawArgs=drawArgs)
45 hgclayclus = [hgcalPlots.hgcalLayerClustersPlotter]
46 val.doPlots(hgclayclus, plotterDrawArgs=drawArgs)
48 sample = SimpleSample(opts.subdirprefix[1], opts.html_sample, filenames)
49 val = SimpleValidation([sample], opts.outputDir[1])
50 htmlReport_2 = val.createHtmlReport(validationName=opts.html_validation_name[1])
51 hgcmulticlus = [hgcalPlots.hgcalMultiClustersPlotter]
52 val.doPlots(hgcmulticlus, plotterDrawArgs=drawArgs)
54 sample = SimpleSample(opts.subdirprefix[2], opts.html_sample, filenames)
55 val = SimpleValidation([sample], opts.outputDir[2])
56 htmlReport_3 = val.createHtmlReport(validationName=opts.html_validation_name[2])
57 hgchit = [hgcalPlots.hgcalHitPlotter]
58 val.doPlots(hgchit, plotterDrawArgs=drawArgs)
60 sample = SimpleSample(opts.subdirprefix[3], opts.html_sample, filenames)
61 val = SimpleValidation([sample], opts.outputDir[3])
62 htmlReport_4 = val.createHtmlReport(validationName=opts.html_validation_name[3])
63 hgchitcalib = [hgcalPlots.hgcalHitCalibPlotter]
64 val.doPlots(hgchitcalib, plotterDrawArgs=drawArgs)
67 print(
"Plots created into directory '%s'." % opts.outputDir)
70 if(opts.collection==
"all"):
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" % (
','.
join(opts.outputDir)))