CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
edmModuleAllocMonitorAnalyze.ModuleCentricContainers Class Reference
Inheritance diagram for edmModuleAllocMonitorAnalyze.ModuleCentricContainers:

Public Member Functions

def __init__ (self)
 
def allGlobals (self)
 
def allStreams (self)
 
def findLastInModGlobals (self, index, modID, comparer)
 
def findLastInModStreams (self, index, modID, comparer)
 
def findOpenSlotInModGlobals (self, index, modID)
 
def findOpenSlotInModStreams (self, index, modID)
 
def indexedGlobal (self, index)
 
def indexedStream (self, index)
 

Private Member Functions

def _extendIfNeeded (self, container, index)
 
def _extendModulesIfNeeded (self, container, index)
 
def _findLastIn (self, index, fullContainer, comparer)
 
def _findOpenSlot (self, index, fullContainer)
 
def _moduleID2Index (self, modID)
 

Private Attributes

 _globals
 
 _moduleIDOffset
 
 _modules
 
 _nextTrans
 
 _streams
 

Detailed Description

Definition at line 1122 of file edmModuleAllocMonitorAnalyze.py.

Constructor & Destructor Documentation

◆ __init__()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.__init__ (   self)

Definition at line 1123 of file edmModuleAllocMonitorAnalyze.py.

1123  def __init__(self):
1124  self._modules= []
1125  self._globals = [[]]
1126  self._streams = [[]]
1127  self._nextTrans = []
1128  self._moduleIDOffset = 0
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

◆ _extendIfNeeded()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers._extendIfNeeded (   self,
  container,
  index 
)
private

Definition at line 1131 of file edmModuleAllocMonitorAnalyze.py.

Referenced by edmModuleAllocMonitorAnalyze.ModuleCentricContainers._extendModulesIfNeeded(), edmModuleAllocMonitorAnalyze.ModuleCentricContainers.indexedGlobal(), and edmModuleAllocMonitorAnalyze.ModuleCentricContainers.indexedStream().

1131  def _extendIfNeeded(self, container, index):
1132  while len(container) < index+1:
1133  container.append([])

◆ _extendModulesIfNeeded()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers._extendModulesIfNeeded (   self,
  container,
  index 
)
private

◆ _findLastIn()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers._findLastIn (   self,
  index,
  fullContainer,
  comparer 
)
private

Definition at line 1169 of file edmModuleAllocMonitorAnalyze.py.

References edmTracerCompactLogViewer.ModuleCentricContainers._moduleID2Index(), edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers._moduleID2Index(), and edmModuleAllocMonitorAnalyze.ModuleCentricContainers._moduleID2Index().

Referenced by edmModuleAllocMonitorAnalyze.ModuleCentricContainers.findLastInModGlobals(), and edmModuleAllocMonitorAnalyze.ModuleCentricContainers.findLastInModStreams().

1169  def _findLastIn(self, index, fullContainer, comparer):
1170  if not fullContainer:
1171  return (None, None)
1172  if len(fullContainer) > self._moduleID2Index(index):
1173  container = fullContainer[self._moduleID2Index(index)]
1174  else:
1175  return (None, None)
1176  #find slot containing the pre
1177  for slot in container:
1178  if slot is not None and comparer(slot[-1]):
1179  return (slot[-1],slot)
1180  return (None, None)

◆ _findOpenSlot()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers._findOpenSlot (   self,
  index,
  fullContainer 
)
private

Definition at line 1149 of file edmModuleAllocMonitorAnalyze.py.

References edmTracerCompactLogViewer.ModuleCentricContainers._extendModulesIfNeeded(), edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers._extendModulesIfNeeded(), edmModuleAllocMonitorAnalyze.ModuleCentricContainers._extendModulesIfNeeded(), edmTracerCompactLogViewer.ModuleCentricContainers._moduleID2Index(), edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers._moduleID2Index(), and edmModuleAllocMonitorAnalyze.ModuleCentricContainers._moduleID2Index().

Referenced by edmModuleAllocMonitorAnalyze.ModuleCentricContainers.findOpenSlotInModGlobals(), and edmModuleAllocMonitorAnalyze.ModuleCentricContainers.findOpenSlotInModStreams().

1149  def _findOpenSlot(self, index, fullContainer):
1150  self._extendModulesIfNeeded(fullContainer, index)
1151  container = fullContainer[self._moduleID2Index(index)]
1152  #find open slot
1153  foundOpenSlot = False
1154  for slot in container:
1155  if len(slot) == 0:
1156  foundOpenSlot = True
1157  break
1158  if slot[-1]["finish"] != 0:
1159  foundOpenSlot = True
1160  break
1161  if not foundOpenSlot:
1162  container.append([])
1163  slot = container[-1]
1164  return slot

◆ _moduleID2Index()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers._moduleID2Index (   self,
  modID 
)
private

◆ allGlobals()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.allGlobals (   self)

◆ allStreams()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.allStreams (   self)

◆ findLastInModGlobals()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.findLastInModGlobals (   self,
  index,
  modID,
  comparer 
)

◆ findLastInModStreams()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.findLastInModStreams (   self,
  index,
  modID,
  comparer 
)

◆ findOpenSlotInModGlobals()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.findOpenSlotInModGlobals (   self,
  index,
  modID 
)

◆ findOpenSlotInModStreams()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.findOpenSlotInModStreams (   self,
  index,
  modID 
)

◆ indexedGlobal()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.indexedGlobal (   self,
  index 
)

◆ indexedStream()

def edmModuleAllocMonitorAnalyze.ModuleCentricContainers.indexedStream (   self,
  index 
)

Member Data Documentation

◆ _globals

edmModuleAllocMonitorAnalyze.ModuleCentricContainers._globals
private

◆ _moduleIDOffset

edmModuleAllocMonitorAnalyze.ModuleCentricContainers._moduleIDOffset
private

◆ _modules

edmModuleAllocMonitorAnalyze.ModuleCentricContainers._modules
private

◆ _nextTrans

edmModuleAllocMonitorAnalyze.ModuleCentricContainers._nextTrans
private

Definition at line 1127 of file edmModuleAllocMonitorAnalyze.py.

◆ _streams

edmModuleAllocMonitorAnalyze.ModuleCentricContainers._streams
private