CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
html.IndexSection Class Reference

Public Member Functions

def __init__
 
def addPlots
 
def addTable
 
def write
 

Private Attributes

 _iterationPages
 
 _miniaodPage
 
 _otherPages
 
 _purposePageMap
 
 _sample
 
 _sampleName
 
 _summaryPage
 
 _timingPage
 
 _vertexPage
 

Detailed Description

Definition at line 560 of file html.py.

Constructor & Destructor Documentation

def html.IndexSection.__init__ (   self,
  sample,
  fastVsFull,
  title 
)

Definition at line 561 of file html.py.

562  def __init__(self, sample, fastVsFull, title):
563  self._sample = sample
565  self._sampleName = ""
566  if sample.fastsim():
567  self._sampleName += "FastSim "
568  if fastVsFull:
569  self._sampleName += "vs FullSim "
570 
571  pileup = ""
572  if hasattr(sample, "hasPileup"):
573  pileup = "with no pileup"
574  if sample.hasPileup():
575  pileup = "with %s pileup" % sample.pileupType()
576  self._sampleName += "%s sample %s" % (_sampleName.get(sample.name(), sample.name()), pileup)
577 
578  params = [title, self._sampleName, sample, fastVsFull]
579  self._summaryPage = PageSet(*params)
581  self._vertexPage = PageSet(*params)
582  self._miniaodPage = PageSet(*params)
583  self._timingPage = PageSet(*params)
584  self._otherPages = PageSet(*params)
586  self._purposePageMap = {
592  }

Member Function Documentation

def html.IndexSection.addPlots (   self,
  plotterFolder,
  dqmSubFolder,
  plotFiles 
)

Definition at line 593 of file html.py.

References html.IndexSection._otherPages.

594  def addPlots(self, plotterFolder, dqmSubFolder, plotFiles):
595  page = self._purposePageMap.get(plotterFolder.getPurpose(), self._otherPages)
596  page.addPlotSet(plotterFolder, dqmSubFolder, plotFiles)
def html.IndexSection.addTable (   self,
  table 
)

Definition at line 597 of file html.py.

References html.IndexSection._otherPages.

598  def addTable(self, table):
599  if table is None:
600  return
601 
602  page = self._purposePageMap.get(table.getPurpose(), self._otherPages)
603  page.addTable(table)
604  params = []
def html.IndexSection.write (   self,
  baseDir 
)

Definition at line 605 of file html.py.

References html.IndexSection._iterationPages, html.IndexSection._miniaodPage, html.IndexSection._otherPages, html.PageSet._sampleName, html.IndexSection._sampleName, html.IndexSection._summaryPage, html.IndexSection._timingPage, and html.IndexSection._vertexPage.

606  def write(self, baseDir):
607  ret = [
608  " "+self._sampleName,
609  " <br/>",
610  " <ul>",
611  ]
612 
613  for pages in [self._summaryPage, self._iterationPages, self._vertexPage, self._miniaodPage, self._timingPage, self._otherPages]:
614  labelFiles = pages.write(baseDir)
615  for label, fname in labelFiles:
616  ret.append(' <li><a href="%s">%s</a></li>' % (fname, label))
617 
618  ret.extend([
619  ' </ul>',
620  ' <br/>',
621  ])
622 
623  return ret

Member Data Documentation

html.IndexSection._iterationPages
private

Definition at line 579 of file html.py.

Referenced by html.IndexSection.write().

html.IndexSection._miniaodPage
private

Definition at line 581 of file html.py.

Referenced by html.IndexSection.write().

html.IndexSection._otherPages
private

Definition at line 583 of file html.py.

Referenced by html.IndexSection.addPlots(), html.IndexSection.addTable(), and html.IndexSection.write().

html.IndexSection._purposePageMap
private

Definition at line 585 of file html.py.

html.IndexSection._sample
private

Definition at line 562 of file html.py.

Referenced by validation.Sample.datasetpattern(), validation.Sample.filename(), validation.Sample.label(), validation.Sample.name(), and validation.Sample.sample().

html.IndexSection._sampleName
private

Definition at line 564 of file html.py.

Referenced by html.IndexSection.write().

html.IndexSection._summaryPage
private

Definition at line 578 of file html.py.

Referenced by html.IndexSection.write().

html.IndexSection._timingPage
private

Definition at line 582 of file html.py.

Referenced by html.IndexSection.write().

html.IndexSection._vertexPage
private

Definition at line 580 of file html.py.

Referenced by html.IndexSection.write().