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 166 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.FrameworkTransitionParser.__init__ (   self,
  payload 
)

Definition at line 167 of file edmTracerCompactLogViewer.py.

167  def __init__(self, payload):
168  self.transition = int(payload[0])
169  self.index = int(payload[1])
170  self.sync = (int(payload[2]), int(payload[3]), int(payload[4]))
171  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 176 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.FrameworkTransitionParser.transition.

176  def syncText(self):
177  if self.transition == Phase.globalBeginRun or Phase.globalEndRun == self.transition:
178  return f'run={self.sync[0]}'
179  if self.transition == Phase.globalWriteRun:
180  return f'run={self.sync[0]}'
181  if self.transition == Phase.streamBeginRun or Phase.streamEndRun == self.transition:
182  return f'run={self.sync[0]}'
183  if self.transition == Phase.globalBeginLumi or Phase.globalEndLumi == self.transition:
184  return f'run={self.sync[0]} lumi={self.sync[1]}'
185  if self.transition == Phase.globalWriteLumi:
186  return f'run={self.sync[0]} lumi={self.sync[1]}'
187  if self.transition == Phase.streamBeginLumi or Phase.streamEndLumi == self.transition:
188  return f'run={self.sync[0]} lumi={self.sync[1]}'
189  if self.transition == Phase.Event:
190  return f'run={self.sync[0]} lumi={self.sync[1]} event={self.sync[2]}'
191  if self.transition == Phase.esSyncEnqueue or self.transition == Phase.esSync:
192  return f'run={self.sync[0]} lumi={self.sync[1]}'
193  if self.transition == Phase.beginJob:
194  return ''
195  if self.transition == Phase.beginProcessBlock or self.transition == Phase.endProcessBlock or self.transition == Phase.writeProcessBlock or self.transition == Phase.accessInputProcessBlock:
196  return ''
197  if self.transition == Phase.startTracing:
198  return ''
199  if self.transition == Phase.construction or self.transition == Phase.destruction:
200  return ''

◆ text()

def edmTracerCompactLogViewer.FrameworkTransitionParser.text (   self,
  context 
)

Definition at line 203 of file edmTracerCompactLogViewer.py.

203  def text(self, context):
204  return f'{self.textPrefix()} {self.textSpecial()}: {self.textPostfix()}'
205 

◆ textPostfix()

def edmTracerCompactLogViewer.FrameworkTransitionParser.textPostfix (   self)

Definition at line 201 of file edmTracerCompactLogViewer.py.

201  def textPostfix(self):
202  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

Definition at line 170 of file edmTracerCompactLogViewer.py.

◆ time

edmTracerCompactLogViewer.FrameworkTransitionParser.time

◆ transition

edmTracerCompactLogViewer.FrameworkTransitionParser.transition