Definition at line 1358 of file validation.py.
1358 def _doPlots(self, plotterFolder, dqmSubFolder):
1359 plotterFolder.create(self._openFiles, self._labels, dqmSubFolder)
1360 newsubdir = self._subdirprefix+plotterFolder.getSelectionName(dqmSubFolder)
1361 newdir = os.path.join(self._newdir, newsubdir)
1362 if not os.path.exists(newdir):
1364 fileList = plotterFolder.draw(directory=newdir, **self._plotterDrawArgs)
1367 if len(fileList) == 0:
1373 print(
"Plotter produced multiple files with names",
", ".
join(dups))
1374 print(
"Typically this is a naming problem in the plotter configuration")
1379 if f[:f.rfind(
"/")]
not in linkList :
1380 if str(f[:f.rfind(
"/")]) !=
str(newdir) :
1381 linkList.append(f[:f.rfind(
"/")])
1383 for tableCreator
in plotterFolder.getTableCreators():
1384 self._htmlReport.addTable(tableCreator.create(self._openFiles, self._labels, dqmSubFolder))
1386 for link
in linkList :
1387 if not os.path.exists(
"%s/res"%link):
1388 os.makedirs(
"%s/res"%link)
1389 downloadables = [
"index.php",
"res/jquery-ui.js",
"res/jquery.js",
"res/style.css",
"res/style.js",
"res/theme.css"]
1390 for d
in downloadables:
1391 if not os.path.exists(
"%s/%s" % (link,d)):
1392 urllib.request.urlretrieve(
"https://raw.githubusercontent.com/rovere/php-plots/master/%s"%d,
"%s/%s"%(link,d))
1394 print(
"Created separated plots in %s" % newdir)
1395 return list(
map(
lambda n: n.replace(newdir, newsubdir), linkList))
References validation._findDuplicates(), validation.SimpleValidation._htmlReport, validation.SeparateValidation._htmlReport, DigiInvestigatorHistogramMaker._labels, SeedMultiplicityAnalyzer._labels, hitfit::Constraint_Intermed_Labels._labels, validation.SimpleValidation._labels, validation.SeparateValidation._labels, plotting.PlotFolder._labels, validation.SimpleValidation._newdir, validation.SeparateValidation._newdir, validation.SimpleValidation._openFiles, validation.SeparateValidation._openFiles, validation.Validation._plotterDrawArgs, validation.SimpleValidation._plotterDrawArgs, validation.SeparateValidation._plotterDrawArgs, validation.SimpleValidation._subdirprefix, validation.SeparateValidation._subdirprefix, join(), genParticles_cff.map, print(), and str.
Referenced by validation.SeparateValidation._doPlotsForPlotter().