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

Constructor & Destructor Documentation

◆ __init__()

def trackingPlots.TrackingTimingTable.__init__ (   self)

Definition at line 1789 of file trackingPlots.py.

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

Member Function Documentation

◆ _getValues()

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

Definition at line 1803 of file trackingPlots.py.

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

References trackingPlots._iterModuleMap().

Referenced by trackingPlots.TrackingTimingTable.create().

◆ create()

def trackingPlots.TrackingTimingTable.create (   self,
  tdirectory 
)

Definition at line 1827 of file trackingPlots.py.

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

References trackingPlots.TrackingTimingTable._getValues().

◆ getPage()

def trackingPlots.TrackingTimingTable.getPage (   self)

Definition at line 1797 of file trackingPlots.py.

1797  def getPage(self):
1798  return self._page
1799 

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

◆ getPurpose()

def trackingPlots.TrackingTimingTable.getPurpose (   self)

Definition at line 1794 of file trackingPlots.py.

1794  def getPurpose(self):
1795  return self._purpose
1796 

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

◆ getSection()

def trackingPlots.TrackingTimingTable.getSection (   self,
  dqmSubFolder 
)

Definition at line 1800 of file trackingPlots.py.

1800  def getSection(self, dqmSubFolder):
1801  return self._section
1802 

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

◆ headers()

def trackingPlots.TrackingTimingTable.headers (   self)

Definition at line 1833 of file trackingPlots.py.

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

Member Data Documentation

◆ _page

trackingPlots.TrackingTimingTable._page
private

◆ _purpose

trackingPlots.TrackingTimingTable._purpose
private

◆ _section

trackingPlots.TrackingTimingTable._section
private

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