CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edmTracerCompactLogViewer.FrameworkTransitionParser Class Reference
Inheritance diagram for edmTracerCompactLogViewer.FrameworkTransitionParser:
edmTracerCompactLogViewer.PostFrameworkTransitionParser edmTracerCompactLogViewer.PreFrameworkTransitionParser edmTracerCompactLogViewer.QueuingFrameworkTransitionParser

Public Member Functions

def __init__ (self, payload)
 
def indentLevel (self)
 
def syncText (self)
 
def text (self, context)
 
def textPostfix (self)
 
def textPrefix (self)
 

Public Attributes

 index
 
 sync
 
 time
 
 transition
 

Detailed Description

Definition at line 184 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.FrameworkTransitionParser.__init__ (   self,
  payload 
)

Definition at line 185 of file edmTracerCompactLogViewer.py.

185  def __init__(self, payload):
186  self.transition = int(payload[0])
187  self.index = int(payload[1])
188  self.sync = (int(payload[2]), int(payload[3]), int(payload[4]))
189  self.time = int(payload[5])
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

◆ indentLevel()

def edmTracerCompactLogViewer.FrameworkTransitionParser.indentLevel (   self)

◆ syncText()

def edmTracerCompactLogViewer.FrameworkTransitionParser.syncText (   self)

Definition at line 194 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.FrameworkTransitionParser.transition.

194  def syncText(self):
195  if self.transition == Phase.globalBeginRun or Phase.globalEndRun == self.transition:
196  return f'run={self.sync[0]}'
197  if self.transition == Phase.globalWriteRun:
198  return f'run={self.sync[0]}'
199  if self.transition == Phase.streamBeginRun or Phase.streamEndRun == self.transition:
200  return f'run={self.sync[0]}'
201  if self.transition == Phase.globalBeginLumi or Phase.globalEndLumi == self.transition:
202  return f'run={self.sync[0]} lumi={self.sync[1]}'
203  if self.transition == Phase.globalWriteLumi:
204  return f'run={self.sync[0]} lumi={self.sync[1]}'
205  if self.transition == Phase.streamBeginLumi or Phase.streamEndLumi == self.transition:
206  return f'run={self.sync[0]} lumi={self.sync[1]}'
207  if self.transition == Phase.Event:
208  return f'run={self.sync[0]} lumi={self.sync[1]} event={self.sync[2]}'
209  if self.transition == Phase.esSyncEnqueue or self.transition == Phase.esSync:
210  return f'run={self.sync[0]} lumi={self.sync[1]}'
211  if self.transition == Phase.beginJob:
212  return ''
213  if self.transition == Phase.beginProcessBlock or self.transition == Phase.endProcessBlock or self.transition == Phase.writeProcessBlock or self.transition == Phase.accessInputProcessBlock:
214  return ''
215  if self.transition == Phase.startTracing:
216  return ''
217  if self.transition == Phase.construction or self.transition == Phase.destruction:
218  return ''

◆ text()

def edmTracerCompactLogViewer.FrameworkTransitionParser.text (   self,
  context 
)

Definition at line 221 of file edmTracerCompactLogViewer.py.

221  def text(self, context):
222  return f'{self.textPrefix()} {self.textSpecial()}: {self.textPostfix()}'
223 

◆ textPostfix()

def edmTracerCompactLogViewer.FrameworkTransitionParser.textPostfix (   self)

Definition at line 219 of file edmTracerCompactLogViewer.py.

219  def textPostfix(self):
220  return f'{transitionName(self.transition)} : id={self.index} {self.syncText()}'

◆ textPrefix()

def edmTracerCompactLogViewer.FrameworkTransitionParser.textPrefix (   self)

Member Data Documentation

◆ index

edmTracerCompactLogViewer.FrameworkTransitionParser.index

◆ sync

edmTracerCompactLogViewer.FrameworkTransitionParser.sync

◆ time

edmTracerCompactLogViewer.FrameworkTransitionParser.time

◆ transition

edmTracerCompactLogViewer.FrameworkTransitionParser.transition