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 1791 of file trackingPlots.py.

Constructor & Destructor Documentation

◆ __init__()

def trackingPlots.TrackingTimingTable.__init__ (   self)

Definition at line 1792 of file trackingPlots.py.

1792  def __init__(self):
1793  self._purpose = PlotPurpose.Timing
1794  self._page = "timing"
1795  self._section = "timing"
1796 

Member Function Documentation

◆ _getValues()

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

Definition at line 1806 of file trackingPlots.py.

1806  def _getValues(self, tdirectory, histo):
1807  h = tdirectory.Get(histo)
1808  totalReco = None
1809  if h:
1810  totalReco = "%.1f" % h.Integral()
1811 
1812  creator = AggregateBins("iteration", histo, _iterModuleMap(includeConvStep=False), ignoreMissingBins=True)
1813  h = creator.create(tdirectory)
1814  totalTracking = None
1815  if h:
1816  totalTracking = "%.1f" % h.Integral()
1817 
1818  creator = AggregateBins("iteration", histo, _iterModuleMap(onlyConvStep=True), ignoreMissingBins=True)
1819  h = creator.create(tdirectory)
1820  totalConvStep = None
1821  if h:
1822  totalConvStep = "%.1f" % h.Integral()
1823 
1824  return [
1825  totalReco,
1826  totalTracking,
1827  totalConvStep,
1828  ]
1829 

References trackingPlots._iterModuleMap().

Referenced by trackingPlots.TrackingTimingTable.create().

◆ create()

def trackingPlots.TrackingTimingTable.create (   self,
  tdirectory 
)

Definition at line 1830 of file trackingPlots.py.

1830  def create(self, tdirectory):
1831  cpuValues = self._getValues(tdirectory, _time_per_event_cpu)
1832  realValues = self._getValues(tdirectory, _time_per_event_real)
1833 
1834  return cpuValues + realValues
1835 

References trackingPlots.TrackingTimingTable._getValues().

◆ getPage()

def trackingPlots.TrackingTimingTable.getPage (   self)

Definition at line 1800 of file trackingPlots.py.

1800  def getPage(self):
1801  return self._page
1802 

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

◆ getPurpose()

def trackingPlots.TrackingTimingTable.getPurpose (   self)

Definition at line 1797 of file trackingPlots.py.

1797  def getPurpose(self):
1798  return self._purpose
1799 

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

◆ getSection()

def trackingPlots.TrackingTimingTable.getSection (   self,
  dqmSubFolder 
)

Definition at line 1803 of file trackingPlots.py.

1803  def getSection(self, dqmSubFolder):
1804  return self._section
1805 

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

◆ headers()

def trackingPlots.TrackingTimingTable.headers (   self)

Definition at line 1836 of file trackingPlots.py.

1836  def headers(self):
1837  return [
1838  "Average reco CPU time / event (ms)",
1839  "Average tracking (w/o convStep) CPU time / event (ms)",
1840  "Average convStep CPU time / event (ms)",
1841  "Average reco real time / event (ms)",
1842  "Average tracking (w/o convStep) real time / event (ms)",
1843  "Average convStep real time / event (ms)",
1844  ]
1845 

Member Data Documentation

◆ _page

trackingPlots.TrackingTimingTable._page
private

◆ _purpose

trackingPlots.TrackingTimingTable._purpose
private

◆ _section

trackingPlots.TrackingTimingTable._section
private

Definition at line 1795 of file trackingPlots.py.

Referenced by trackingPlots.TrackingTimingTable.getSection().

beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition: beamerCreator.py:44
trackingPlots._iterModuleMap
def _iterModuleMap(includeConvStep=True, onlyConvStep=False)
Definition: trackingPlots.py:1612
getRunAppsInfo.headers
headers
Definition: getRunAppsInfo.py:65