CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, payload, moduleCentric)
 
def jsonInfo (self, counter, data)
 
def textSpecial (self)
 
- Public Member Functions inherited from edmTracerCompactLogViewer.SourceTransitionParser
def __init__ (self, payload)
 
def indentLevel (self)
 
def text (self, context)
 
def textPostfix (self)
 
def textPrefix (self)
 

Public Attributes

 transition
 
- Public Attributes inherited from edmTracerCompactLogViewer.SourceTransitionParser
 index
 
 time
 
 transition
 

Private Attributes

 _moduleCentric
 

Detailed Description

Definition at line 373 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.PreSourceTransitionParser.__init__ (   self,
  payload,
  moduleCentric 
)

Definition at line 374 of file edmTracerCompactLogViewer.py.

374  def __init__(self, payload, moduleCentric):
375  self._moduleCentric = moduleCentric
376  super().__init__(payload)
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

◆ jsonInfo()

def edmTracerCompactLogViewer.PreSourceTransitionParser.jsonInfo (   self,
  counter,
  data 
)

Definition at line 379 of file edmTracerCompactLogViewer.py.

379  def jsonInfo(self, counter, data):
380  if self.transition == Phase.getNextTransition:
381  data._nextTrans.append(jsonTransition(type=self.transition, id=self.index, sync=[0,0,0], start=self.time, finish=0, isSrc=True))
382  if self._moduleCentric:
383  #this all goes to a module ID sorted container so not knowing actual index is OK
384  data.findOpenSlotInModGlobals(0,0).append(data._nextTrans[-1])
385  return
386  elif self.transition == Phase.construction:
387  index = counter.start()
388  container = data.indexedGlobal(index)
389  elif self.transition == Phase.Event:
390  index = self.index
391  container = data.indexedStream(index)
392  else:
393  index = self.index
394  container = data.indexedGlobal(index)
395  nextTrans = data._nextTrans
396  if nextTrans:
397  data._nextTrans = []
398  for t in nextTrans:
399  t['id']=index
400  #find proper time order in the container
401  transStartTime = t['start']
402  inserted = False
403  for i in range(-1, -1*len(container), -1):
404  if transStartTime > container[i]['start']:
405  if i == -1:
406  container.append(t)
407  inserted = True
408  break
409  else:
410  container.insert(i+1,t)
411  inserted = True
412  break
413  if not inserted:
414  container.insert(0,t)
415  container.append(jsonTransition(type=self.transition, id=index, sync=[0,0,0], start=self.time, finish=0, isSrc=True))
416  if self._moduleCentric:
417  if self.transition == Phase.Event:
418  data.findOpenSlotInModStreams(index,0).append(container[-1])
419  else:
420  data.findOpenSlotInModGlobals(index,0).append(container[-1])
421 
def jsonTransition(type, id, sync, start, finish, isSrc=False)

◆ textSpecial()

def edmTracerCompactLogViewer.PreSourceTransitionParser.textSpecial (   self)

Definition at line 377 of file edmTracerCompactLogViewer.py.

377  def textSpecial(self):
378  return "starting"

Member Data Documentation

◆ _moduleCentric

edmTracerCompactLogViewer.PreSourceTransitionParser._moduleCentric
private

◆ transition

edmTracerCompactLogViewer.PreSourceTransitionParser.transition

Definition at line 380 of file edmTracerCompactLogViewer.py.

Referenced by edmModuleAllocMonitorAnalyze.ModuleData.__repr__(), edmTracerCompactLogViewer.EDModuleTransitionParser._postJson(), edmTracerCompactLogViewer.ESModuleTransitionParser._postJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonVis(), edmTracerCompactLogViewer.EDModuleTransitionParser._preJson(), edmTracerCompactLogViewer.ESModuleTransitionParser._preJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonVis(), edmTracerCompactLogViewer.EDModuleTransitionParser.baseIndentLevel(), edmTracerCompactLogViewer.ESModuleTransitionParser.baseIndentLevel(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.baseIndentLevel(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.baseIndentLevel(), edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.indentLevel(), edmModuleAllocMonitorAnalyze.SourceTransitionParser.indentLevel(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreSourceTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModulePrefetchingParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModuleAcquireParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostEDModuleAcquireParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.syncText(), edmTracerCompactLogViewer.EDModuleTransitionParser.textPrefix(), edmTracerCompactLogViewer.ESModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.textPrefix(), and edmModuleAllocMonitorAnalyze.ModuleData.toSimpleDict().