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

Constructor & Destructor Documentation

◆ __init__()

def trackingPlots.TrackingTimingTable.__init__ (   self)

Definition at line 1787 of file trackingPlots.py.

1787  def __init__(self):
1788  self._purpose = PlotPurpose.Timing
1789  self._page = "timing"
1790  self._section = "timing"
1791 

Member Function Documentation

◆ _getValues()

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

Definition at line 1801 of file trackingPlots.py.

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

References trackingPlots._iterModuleMap().

Referenced by trackingPlots.TrackingTimingTable.create().

◆ create()

def trackingPlots.TrackingTimingTable.create (   self,
  tdirectory 
)

Definition at line 1825 of file trackingPlots.py.

1825  def create(self, tdirectory):
1826  cpuValues = self._getValues(tdirectory, _time_per_event_cpu)
1827  realValues = self._getValues(tdirectory, _time_per_event_real)
1828 
1829  return cpuValues + realValues
1830 

References trackingPlots.TrackingTimingTable._getValues().

◆ getPage()

def trackingPlots.TrackingTimingTable.getPage (   self)

Definition at line 1795 of file trackingPlots.py.

1795  def getPage(self):
1796  return self._page
1797 

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

◆ getPurpose()

def trackingPlots.TrackingTimingTable.getPurpose (   self)

Definition at line 1792 of file trackingPlots.py.

1792  def getPurpose(self):
1793  return self._purpose
1794 

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

◆ getSection()

def trackingPlots.TrackingTimingTable.getSection (   self,
  dqmSubFolder 
)

Definition at line 1798 of file trackingPlots.py.

1798  def getSection(self, dqmSubFolder):
1799  return self._section
1800 

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

◆ headers()

def trackingPlots.TrackingTimingTable.headers (   self)

Definition at line 1831 of file trackingPlots.py.

1831  def headers(self):
1832  return [
1833  "Average reco CPU time / event (ms)",
1834  "Average tracking (w/o convStep) CPU time / event (ms)",
1835  "Average convStep CPU time / event (ms)",
1836  "Average reco real time / event (ms)",
1837  "Average tracking (w/o convStep) real time / event (ms)",
1838  "Average convStep real time / event (ms)",
1839  ]
1840 

Member Data Documentation

◆ _page

trackingPlots.TrackingTimingTable._page
private

◆ _purpose

trackingPlots.TrackingTimingTable._purpose
private

◆ _section

trackingPlots.TrackingTimingTable._section
private

Definition at line 1790 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:1607
getRunAppsInfo.headers
headers
Definition: getRunAppsInfo.py:65