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

Constructor & Destructor Documentation

def trackingPlots.TrackingTimingTable.__init__ (   self)

Member Function Documentation

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

Definition at line 1731 of file trackingPlots.py.

References trackingPlots._iterModuleMap().

Referenced by trackingPlots.TrackingTimingTable.create().

1731  def _getValues(self, tdirectory, histo):
1732  h = tdirectory.Get(histo)
1733  totalReco = None
1734  if h:
1735  totalReco = "%.1f" % h.Integral()
1736 
1737  creator = AggregateBins("iteration", histo, _iterModuleMap(includeConvStep=False), ignoreMissingBins=True)
1738  h = creator.create(tdirectory)
1739  totalTracking = None
1740  if h:
1741  totalTracking = "%.1f" % h.Integral()
1742 
1743  creator = AggregateBins("iteration", histo, _iterModuleMap(onlyConvStep=True), ignoreMissingBins=True)
1744  h = creator.create(tdirectory)
1745  totalConvStep = None
1746  if h:
1747  totalConvStep = "%.1f" % h.Integral()
1748 
1749  return [
1750  totalReco,
1751  totalTracking,
1752  totalConvStep,
1753  ]
1754 
def _iterModuleMap(includeConvStep=True, onlyConvStep=False)
def _getValues(self, tdirectory, histo)
def trackingPlots.TrackingTimingTable.create (   self,
  tdirectory 
)

Definition at line 1755 of file trackingPlots.py.

References trackingPlots.TrackingTimingTable._getValues().

1755  def create(self, tdirectory):
1756  cpuValues = self._getValues(tdirectory, _time_per_event_cpu)
1757  realValues = self._getValues(tdirectory, _time_per_event_real)
1758 
1759  return cpuValues + realValues
1760 
def _getValues(self, tdirectory, histo)
def trackingPlots.TrackingTimingTable.getPage (   self)
def trackingPlots.TrackingTimingTable.getPurpose (   self)
def trackingPlots.TrackingTimingTable.getSection (   self,
  dqmSubFolder 
)
def trackingPlots.TrackingTimingTable.headers (   self)

Definition at line 1761 of file trackingPlots.py.

1761  def headers(self):
1762  return [
1763  "Average reco CPU time / event (ms)",
1764  "Average tracking (w/o convStep) CPU time / event (ms)",
1765  "Average convStep CPU time / event (ms)",
1766  "Average reco real time / event (ms)",
1767  "Average tracking (w/o convStep) real time / event (ms)",
1768  "Average convStep real time / event (ms)",
1769  ]
1770 

Member Data Documentation

trackingPlots.TrackingTimingTable._page
private
trackingPlots.TrackingTimingTable._purpose
private
trackingPlots.TrackingTimingTable._section
private

Definition at line 1720 of file trackingPlots.py.

Referenced by trackingPlots.TrackingTimingTable.getSection().