CMS 3D CMS Logo

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

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 1057 of file edmModuleAllocMonitorAnalyze.py.

Constructor & Destructor Documentation

◆ __init__()

def edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers.__init__ (   self)

Definition at line 1058 of file edmModuleAllocMonitorAnalyze.py.

1058  def __init__(self):
1059  self._modules= []
1060  self._globals = [[]]
1061  self._streams = [[]]
1062  self._nextTrans = []
1063  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.ModuleCentricVisualizationContainers._extendIfNeeded (   self,
  container,
  index 
)
private

◆ _extendModulesIfNeeded()

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

◆ _findLastIn()

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

Definition at line 1104 of file edmModuleAllocMonitorAnalyze.py.

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

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

1104  def _findLastIn(self, index, fullContainer, comparer):
1105  if not fullContainer:
1106  return (None, None)
1107  if len(fullContainer) > self._moduleID2Index(index):
1108  container = fullContainer[self._moduleID2Index(index)]
1109  else:
1110  return (None, None)
1111  #find slot containing the pre
1112  for slot in container:
1113  if slot is not None and comparer(slot[-1]):
1114  return (slot[-1],slot)
1115  return (None, None)

◆ _findOpenSlot()

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

Definition at line 1084 of file edmModuleAllocMonitorAnalyze.py.

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

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

1084  def _findOpenSlot(self, index, fullContainer):
1085  self._extendModulesIfNeeded(fullContainer, index)
1086  container = fullContainer[self._moduleID2Index(index)]
1087  #find open slot
1088  foundOpenSlot = False
1089  for slot in container:
1090  if len(slot) == 0:
1091  foundOpenSlot = True
1092  break
1093  if slot[-1]["finish"] != 0:
1094  foundOpenSlot = True
1095  break
1096  if not foundOpenSlot:
1097  container.append([])
1098  slot = container[-1]
1099  return slot

◆ _moduleID2Index()

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

◆ allGlobals()

def edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers.allGlobals (   self)

◆ allStreams()

def edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers.allStreams (   self)

◆ findLastInModGlobals()

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

◆ findLastInModStreams()

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

◆ findOpenSlotInModGlobals()

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

◆ findOpenSlotInModStreams()

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

◆ indexedGlobal()

def edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers.indexedGlobal (   self,
  index 
)

◆ indexedStream()

def edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers.indexedStream (   self,
  index 
)

Member Data Documentation

◆ _globals

edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers._globals
private

◆ _moduleIDOffset

edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers._moduleIDOffset
private

◆ _modules

edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers._modules
private

◆ _nextTrans

edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers._nextTrans
private

Definition at line 1062 of file edmModuleAllocMonitorAnalyze.py.

◆ _streams

edmModuleAllocMonitorAnalyze.ModuleCentricVisualizationContainers._streams
private