CMS 3D CMS Logo

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

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 _findLastIn (self, index, fullContainer, comparer)
 
def _findOpenSlot (self, index, fullContainer)
 

Private Attributes

 _globals
 
 _modGlobals
 
 _modStreams
 
 _nextTrans
 
 _queued
 
 _streams
 

Detailed Description

Definition at line 862 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.Containers.__init__ (   self)

Definition at line 863 of file edmTracerCompactLogViewer.py.

863  def __init__(self):
864  self._modGlobals = [[]]
865  self._modStreams = [[]]
866  self._globals = [[]]
867  self._streams = [[]]
868  self._queued = []
869  self._nextTrans = []
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.Containers._extendIfNeeded (   self,
  container,
  index 
)
private

◆ _findLastIn()

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

Definition at line 903 of file edmTracerCompactLogViewer.py.

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

903  def _findLastIn(self, index, fullContainer, comparer):
904  container = fullContainer[index]
905  #find slot containing the pre
906  for slot in container:
907  if comparer(slot[-1]):
908  return (slot[-1],slot)
909  return (None,None)

◆ _findOpenSlot()

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

Definition at line 883 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._extendIfNeeded().

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

883  def _findOpenSlot(self, index, fullContainer):
884  self._extendIfNeeded(fullContainer, index)
885  container = fullContainer[index]
886  #find open slot
887  foundOpenSlot = False
888  for slot in container:
889  if len(slot) == 0:
890  foundOpenSlot = True
891  break
892  if slot[-1]["finish"] != 0:
893  foundOpenSlot = True
894  break
895  if not foundOpenSlot:
896  container.append([])
897  slot = container[-1]
898  return slot

◆ allGlobals()

def edmTracerCompactLogViewer.Containers.allGlobals (   self)

Definition at line 873 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._globals.

873  def allGlobals(self):
874  return self._globals

◆ allStreams()

def edmTracerCompactLogViewer.Containers.allStreams (   self)

Definition at line 878 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._streams.

878  def allStreams(self):
879  return self._streams

◆ findLastInModGlobals()

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

Definition at line 910 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._findLastIn(), and edmTracerCompactLogViewer.Containers._modGlobals.

910  def findLastInModGlobals(self, index, modID, comparer):
911  return self._findLastIn(index, self._modGlobals, comparer)

◆ findLastInModStreams()

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

Definition at line 912 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._findLastIn(), and edmTracerCompactLogViewer.Containers._modStreams.

912  def findLastInModStreams(self, index, modID, comparer):
913  return self._findLastIn(index, self._modStreams, comparer)
914 
915 

◆ findOpenSlotInModGlobals()

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

Definition at line 899 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._findOpenSlot(), and edmTracerCompactLogViewer.Containers._modGlobals.

899  def findOpenSlotInModGlobals(self, index, modID):
900  return self._findOpenSlot(index, self._modGlobals)

◆ findOpenSlotInModStreams()

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

Definition at line 901 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.Containers._findOpenSlot(), and edmTracerCompactLogViewer.Containers._modStreams.

901  def findOpenSlotInModStreams(self, index, modID):
902  return self._findOpenSlot(index, self._modStreams)

◆ indexedGlobal()

def edmTracerCompactLogViewer.Containers.indexedGlobal (   self,
  index 
)

Definition at line 875 of file edmTracerCompactLogViewer.py.

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

875  def indexedGlobal(self, index):
876  self._extendIfNeeded(self._globals, index)
877  return self._globals[index]

◆ indexedStream()

def edmTracerCompactLogViewer.Containers.indexedStream (   self,
  index 
)

Definition at line 880 of file edmTracerCompactLogViewer.py.

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

880  def indexedStream(self, index):
881  self._extendIfNeeded(self._streams, index)
882  return self._streams[index]

Member Data Documentation

◆ _globals

edmTracerCompactLogViewer.Containers._globals
private

◆ _modGlobals

edmTracerCompactLogViewer.Containers._modGlobals
private

◆ _modStreams

edmTracerCompactLogViewer.Containers._modStreams
private

◆ _nextTrans

edmTracerCompactLogViewer.Containers._nextTrans
private

Definition at line 869 of file edmTracerCompactLogViewer.py.

◆ _queued

edmTracerCompactLogViewer.Containers._queued
private

Definition at line 868 of file edmTracerCompactLogViewer.py.

◆ _streams

edmTracerCompactLogViewer.Containers._streams
private