Definition at line 1228 of file validation.py.
def validation.SimpleValidation._doPlots |
( |
|
self, |
|
|
|
plotterFolder, |
|
|
|
dqmSubFolder |
|
) |
| |
|
private |
Definition at line 1276 of file validation.py.
References validation._findDuplicates(), DigiInvestigatorHistogramMaker._labels, SeedMultiplicityAnalyzer._labels, hitfit::Constraint_Intermed_Labels._labels, validation.SimpleValidation._labels, plotting.PlotFolder._labels, validation.SimpleValidation._newdir, validation.SimpleValidation._openFiles, validation.Validation._plotterDrawArgs, validation.SimpleValidation._plotterDrawArgs, validation.SimpleValidation._subdirprefix, join(), genParticles_cff.map, and edm.print().
Referenced by validation.SimpleValidation._doPlotsForPlotter().
1278 newsubdir = self.
_subdirprefix+plotterFolder.getSelectionName(dqmSubFolder)
1279 newdir = os.path.join(self.
_newdir, newsubdir)
1280 if not os.path.exists(newdir):
1284 for tableCreator
in plotterFolder.getTableCreators():
1285 self._htmlReport.addTable(tableCreator.create(self.
_openFiles, self.
_labels, dqmSubFolder))
1288 if len(fileList) == 0:
1293 print(
"Plotter produced multiple files with names",
", ".
join(dups))
1294 print(
"Typically this is a naming problem in the plotter configuration")
1297 if self._plotterDrawArgs.get(
"separate",
False):
1298 if not os.path.exists(
"%s/res"%newdir):
1299 os.makedirs(
"%s/res"%newdir)
1300 downloadables = [
"index.php",
"res/jquery-ui.js",
"res/jquery.js",
"res/style.css",
"res/style.js",
"res/theme.css"]
1301 for d
in downloadables:
1302 if not os.path.exists(
"%s/%s" % (newdir,d)):
1303 urllib.urlretrieve(
"https://raw.githubusercontent.com/musella/php-plots/master/%s"%d,
"%s/%s"%(newdir,d))
1305 print(
"Created plots in %s" % newdir)
1306 return map(
lambda n: n.replace(newdir, newsubdir), fileList)
1307
S & print(S &os, JobReport::InputFile const &f)
def _doPlots(self, plotterFolder, dqmSubFolder)
static std::string join(char **cmd)
def validation.SimpleValidation._doPlotsForPlotter |
( |
|
self, |
|
|
|
plotter, |
|
|
|
sample, |
|
|
|
limitSubFoldersOnlyTo = None |
|
) |
| |
|
private |
Definition at line 1267 of file validation.py.
References validation.Validation._doPlots(), validation.SimpleValidation._doPlots(), validation.SimpleValidation._openFiles, and validation._processPlotsForSample().
1268 plotterInstance = plotter.readDirs(*self.
_openFiles)
1269 for plotterFolder, dqmSubFolder
in plotterInstance.iterFolders(limitSubFoldersOnlyTo=limitSubFoldersOnlyTo):
1272 plotFiles = self.
_doPlots(plotterFolder, dqmSubFolder)
1273 if len(plotFiles) > 0:
1274 self._htmlReport.addPlots(plotterFolder, dqmSubFolder, plotFiles)
def _doPlots(self, plotterFolder, dqmSubFolder)
def _processPlotsForSample(plotterFolder, sample)
def _doPlotsForPlotter(self, plotter, sample, limitSubFoldersOnlyTo=None)
def validation.SimpleValidation.createHtmlReport |
( |
|
self, |
|
|
|
validationName = "" |
|
) |
| |
def validation.SimpleValidation.doPlots |
( |
|
self, |
|
|
|
plotters, |
|
|
|
plotterDrawArgs = {} , |
|
|
|
kwargs |
|
) |
| |
Definition at line 1243 of file validation.py.
1243 def doPlots(self, plotters, plotterDrawArgs={}, **kwargs):
1249 self._htmlReport.beginSample(sample)
1252 for f
in sample.files():
1253 if os.path.exists(f):
1254 self._openFiles.append(ROOT.TFile.Open(f))
1256 print(
"File %s not found (from sample %s), ignoring it" % (f, sample.name()))
1257 self._openFiles.append(
None)
1259 for plotter
in plotters:
S & print(S &os, JobReport::InputFile const &f)
def doPlots(self, plotters, plotterDrawArgs={}, kwargs)
def _doPlotsForPlotter(self, plotter, sample, limitSubFoldersOnlyTo=None)
validation.SimpleValidation._htmlReport |
|
private |
validation.SimpleValidation._labels |
|
private |
validation.SimpleValidation._newdir |
|
private |
validation.SimpleValidation._openFiles |
|
private |
validation.SimpleValidation._plotterDrawArgs |
|
private |
validation.SimpleValidation._samples |
|
private |
validation.SimpleValidation._subdirprefix |
|
private |