CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
edmTracerCompactLogViewer.ModuleCentricContainers Class Reference
Inheritance diagram for edmTracerCompactLogViewer.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
 
 _queued
 
 _streams
 

Detailed Description

Definition at line 916 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.ModuleCentricContainers.__init__ (   self)

Definition at line 917 of file edmTracerCompactLogViewer.py.

917  def __init__(self):
918  self._modules= []
919  self._globals = [[]]
920  self._streams = [[]]
921  self._queued = []
922  self._nextTrans = []
923  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 edmTracerCompactLogViewer.ModuleCentricContainers._extendIfNeeded (   self,
  container,
  index 
)
private

Definition at line 926 of file edmTracerCompactLogViewer.py.

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

926  def _extendIfNeeded(self, container, index):
927  while len(container) < index+1:
928  container.append([])

◆ _extendModulesIfNeeded()

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

Definition at line 929 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._extendIfNeeded(), edmTracerCompactLogViewer.ModuleCentricContainers._extendIfNeeded(), edmTracerCompactLogViewer.ModuleCentricContainers._moduleID2Index(), and edmTracerCompactLogViewer.ModuleCentricContainers._moduleIDOffset.

Referenced by edmTracerCompactLogViewer.ModuleCentricContainers._findOpenSlot().

929  def _extendModulesIfNeeded(self, container, index):
930  while index + self._moduleIDOffset < 0:
931  container.insert(0,[])
932  self._moduleIDOffset +=1
933  self._extendIfNeeded(container, self._moduleID2Index(index))

◆ _findLastIn()

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

Definition at line 964 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.ModuleCentricContainers._moduleID2Index().

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

964  def _findLastIn(self, index, fullContainer, comparer):
965  if not fullContainer:
966  return (None, None)
967  if len(fullContainer) > self._moduleID2Index(index):
968  container = fullContainer[self._moduleID2Index(index)]
969  else:
970  return (None, None)
971  #find slot containing the pre
972  for slot in container:
973  if slot is not None and comparer(slot[-1]):
974  return (slot[-1],slot)
975  return (None, None)

◆ _findOpenSlot()

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

Definition at line 944 of file edmTracerCompactLogViewer.py.

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

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

944  def _findOpenSlot(self, index, fullContainer):
945  self._extendModulesIfNeeded(fullContainer, index)
946  container = fullContainer[self._moduleID2Index(index)]
947  #find open slot
948  foundOpenSlot = False
949  for slot in container:
950  if len(slot) == 0:
951  foundOpenSlot = True
952  break
953  if slot[-1]["finish"] != 0:
954  foundOpenSlot = True
955  break
956  if not foundOpenSlot:
957  container.append([])
958  slot = container[-1]
959  return slot

◆ _moduleID2Index()

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

◆ allGlobals()

def edmTracerCompactLogViewer.ModuleCentricContainers.allGlobals (   self)

Definition at line 934 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._globals, and edmTracerCompactLogViewer.ModuleCentricContainers._globals.

934  def allGlobals(self):
935  return self._globals

◆ allStreams()

def edmTracerCompactLogViewer.ModuleCentricContainers.allStreams (   self)

Definition at line 939 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._streams, and edmTracerCompactLogViewer.ModuleCentricContainers._streams.

939  def allStreams(self):
940  return self._streams

◆ findLastInModGlobals()

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

Definition at line 976 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._findLastIn(), edmTracerCompactLogViewer.ModuleCentricContainers._findLastIn(), MassReplace.MassSearchParamVisitor._modules, and edmTracerCompactLogViewer.ModuleCentricContainers._modules.

976  def findLastInModGlobals(self, index, modID, comparer):
977  return self._findLastIn(modID, self._modules, comparer)

◆ findLastInModStreams()

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

Definition at line 978 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._findLastIn(), edmTracerCompactLogViewer.ModuleCentricContainers._findLastIn(), MassReplace.MassSearchParamVisitor._modules, and edmTracerCompactLogViewer.ModuleCentricContainers._modules.

978  def findLastInModStreams(self, index, modID, comparer):
979  return self._findLastIn(modID, self._modules, comparer)
980 
981 
982 

◆ findOpenSlotInModGlobals()

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

◆ findOpenSlotInModStreams()

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

◆ indexedGlobal()

def edmTracerCompactLogViewer.ModuleCentricContainers.indexedGlobal (   self,
  index 
)

Definition at line 936 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._extendIfNeeded(), edmTracerCompactLogViewer.ModuleCentricContainers._extendIfNeeded(), edmTracerCompactLogViewer.Containers._globals, and edmTracerCompactLogViewer.ModuleCentricContainers._globals.

936  def indexedGlobal(self, index):
937  self._extendIfNeeded(self._globals, index)
938  return self._globals[index]

◆ indexedStream()

def edmTracerCompactLogViewer.ModuleCentricContainers.indexedStream (   self,
  index 
)

Definition at line 941 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._extendIfNeeded(), edmTracerCompactLogViewer.ModuleCentricContainers._extendIfNeeded(), edmTracerCompactLogViewer.Containers._streams, and edmTracerCompactLogViewer.ModuleCentricContainers._streams.

941  def indexedStream(self, index):
942  self._extendIfNeeded(self._streams, index)
943  return self._streams[index]

Member Data Documentation

◆ _globals

edmTracerCompactLogViewer.ModuleCentricContainers._globals
private

◆ _moduleIDOffset

edmTracerCompactLogViewer.ModuleCentricContainers._moduleIDOffset
private

◆ _modules

edmTracerCompactLogViewer.ModuleCentricContainers._modules
private

◆ _nextTrans

edmTracerCompactLogViewer.ModuleCentricContainers._nextTrans
private

Definition at line 922 of file edmTracerCompactLogViewer.py.

◆ _queued

edmTracerCompactLogViewer.ModuleCentricContainers._queued
private

Definition at line 921 of file edmTracerCompactLogViewer.py.

◆ _streams

edmTracerCompactLogViewer.ModuleCentricContainers._streams
private