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

Constructor & Destructor Documentation

◆ __init__()

def trackingPlots.TrackingTimingTable.__init__ (   self)

Definition at line 1798 of file trackingPlots.py.

1798  def __init__(self):
1799  self._purpose = PlotPurpose.Timing
1800  self._page = "timing"
1801  self._section = "timing"
1802 
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 1812 of file trackingPlots.py.

References trackingPlots._iterModuleMap().

Referenced by trackingPlots.TrackingTimingTable.create().

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

◆ create()

def trackingPlots.TrackingTimingTable.create (   self,
  tdirectory 
)

Definition at line 1836 of file trackingPlots.py.

References trackingPlots.TrackingTimingTable._getValues().

1836  def create(self, tdirectory):
1837  cpuValues = self._getValues(tdirectory, _time_per_event_cpu)
1838  realValues = self._getValues(tdirectory, _time_per_event_real)
1839 
1840  return cpuValues + realValues
1841 
def create(alignables, pedeDump, additionalData, outputFile, config)

◆ getPage()

def trackingPlots.TrackingTimingTable.getPage (   self)

Definition at line 1806 of file trackingPlots.py.

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

1806  def getPage(self):
1807  return self._page
1808 

◆ getPurpose()

def trackingPlots.TrackingTimingTable.getPurpose (   self)

Definition at line 1803 of file trackingPlots.py.

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

1803  def getPurpose(self):
1804  return self._purpose
1805 

◆ getSection()

def trackingPlots.TrackingTimingTable.getSection (   self,
  dqmSubFolder 
)

Definition at line 1809 of file trackingPlots.py.

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

1809  def getSection(self, dqmSubFolder):
1810  return self._section
1811 

◆ headers()

def trackingPlots.TrackingTimingTable.headers (   self)

Definition at line 1842 of file trackingPlots.py.

1842  def headers(self):
1843  return [
1844  "Average reco CPU time / event (ms)",
1845  "Average tracking (w/o convStep) CPU time / event (ms)",
1846  "Average convStep CPU time / event (ms)",
1847  "Average reco real time / event (ms)",
1848  "Average tracking (w/o convStep) real time / event (ms)",
1849  "Average convStep real time / event (ms)",
1850  ]
1851 

Member Data Documentation

◆ _page

trackingPlots.TrackingTimingTable._page
private

◆ _purpose

trackingPlots.TrackingTimingTable._purpose
private

◆ _section

trackingPlots.TrackingTimingTable._section
private

Definition at line 1801 of file trackingPlots.py.

Referenced by trackingPlots.TrackingTimingTable.getSection().