CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
trackingPlots.TrackingTimingTable Class Reference

Public Member Functions

def __init__ (self)
 
def create (self, tdirectory)
 
def getPage (self)
 
def getPurpose (self)
 
def getSection (self, dqmSubFolder)
 
def headers (self)
 

Private Member Functions

def _getValues (self, tdirectory, histo)
 

Private Attributes

 _page
 
 _purpose
 
 _section
 

Detailed Description

Definition at line 1815 of file trackingPlots.py.

Constructor & Destructor Documentation

◆ __init__()

def trackingPlots.TrackingTimingTable.__init__ (   self)

Definition at line 1816 of file trackingPlots.py.

1816  def __init__(self):
1817  self._purpose = PlotPurpose.Timing
1818  self._page = "timing"
1819  self._section = "timing"
1820 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ _getValues()

def trackingPlots.TrackingTimingTable._getValues (   self,
  tdirectory,
  histo 
)
private

Definition at line 1830 of file trackingPlots.py.

References trackingPlots._iterModuleMap().

Referenced by trackingPlots.TrackingTimingTable.create().

1830  def _getValues(self, tdirectory, histo):
1831  h = tdirectory.Get(histo._timeHisto)
1832  totalReco = None
1833  if h:
1834  totalReco = "%.1f" % h.Integral()
1835 
1836  creator = AggregateBins("iteration", histo, _iterModuleMap(includeConvStep=False), ignoreMissingBins=True)
1837  h = creator.create(tdirectory)
1838  totalTracking = None
1839  if h:
1840  totalTracking = "%.1f" % h.Integral()
1841 
1842  creator = AggregateBins("iteration", histo, _iterModuleMap(onlyConvStep=True), ignoreMissingBins=True)
1843  h = creator.create(tdirectory)
1844  totalConvStep = None
1845  if h:
1846  totalConvStep = "%.1f" % h.Integral()
1847 
1848  return [
1849  totalReco,
1850  totalTracking,
1851  totalConvStep,
1852  ]
1853 
def _iterModuleMap(includeConvStep=True, onlyConvStep=False)

◆ create()

def trackingPlots.TrackingTimingTable.create (   self,
  tdirectory 
)

Definition at line 1854 of file trackingPlots.py.

References trackingPlots.TrackingTimingTable._getValues().

1854  def create(self, tdirectory):
1855  cpuValues = self._getValues(tdirectory, _time_per_event_cpu)
1856  realValues = self._getValues(tdirectory, _time_per_event_real)
1857 
1858  return cpuValues + realValues
1859 
def create(alignables, pedeDump, additionalData, outputFile, config)

◆ getPage()

def trackingPlots.TrackingTimingTable.getPage (   self)

Definition at line 1824 of file trackingPlots.py.

References html.Table._page, trackingPlots.TrackingSummaryTable._page, trackingPlots.TrackingTimingTable._page, and plotting.PlotFolder._page.

1824  def getPage(self):
1825  return self._page
1826 

◆ getPurpose()

def trackingPlots.TrackingTimingTable.getPurpose (   self)

Definition at line 1821 of file trackingPlots.py.

References html.Table._purpose, trackingPlots.TrackingSummaryTable._purpose, trackingPlots.TrackingTimingTable._purpose, and plotting.PlotFolder._purpose.

1821  def getPurpose(self):
1822  return self._purpose
1823 

◆ getSection()

def trackingPlots.TrackingTimingTable.getSection (   self,
  dqmSubFolder 
)

Definition at line 1827 of file trackingPlots.py.

References html.Table._section, trackingPlots.TrackingSummaryTable._section, trackingPlots.TrackingTimingTable._section, and plotting.PlotFolder._section.

1827  def getSection(self, dqmSubFolder):
1828  return self._section
1829 

◆ headers()

def trackingPlots.TrackingTimingTable.headers (   self)

Definition at line 1860 of file trackingPlots.py.

1860  def headers(self):
1861  return [
1862  "Average reco CPU time / event (ms)",
1863  "Average tracking (w/o convStep) CPU time / event (ms)",
1864  "Average convStep CPU time / event (ms)",
1865  "Average reco real time / event (ms)",
1866  "Average tracking (w/o convStep) real time / event (ms)",
1867  "Average convStep real time / event (ms)",
1868  ]
1869 

Member Data Documentation

◆ _page

trackingPlots.TrackingTimingTable._page
private

◆ _purpose

trackingPlots.TrackingTimingTable._purpose
private

◆ _section

trackingPlots.TrackingTimingTable._section
private

Definition at line 1819 of file trackingPlots.py.

Referenced by trackingPlots.TrackingTimingTable.getSection().