CMS 3D CMS Logo

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

Public Member Functions

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

Public Attributes

 index
 
 time
 
 transition
 

Detailed Description

Definition at line 225 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.SourceTransitionParser.__init__ (   self,
  payload 
)

Definition at line 226 of file edmTracerCompactLogViewer.py.

226  def __init__(self, payload):
227  self.transition = int(payload[0])
228  self.index = int(payload[1])
229  self.time = int(payload[2])
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.SourceTransitionParser.indentLevel (   self)

Definition at line 230 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.FrameworkTransitionParser.transition, and edmTracerCompactLogViewer.SourceTransitionParser.transition.

Referenced by edmTracerCompactLogViewer.SourceTransitionParser.textPrefix().

230  def indentLevel(self):
231  if self.transition == Phase.globalBeginRun:
232  return 1
233  if self.transition == Phase.globalBeginLumi:
234  return 2
235  if self.transition == Phase.Event:
236  return 3
237  if self.transition == Phase.construction:
238  return 1
239  return None

◆ text()

def edmTracerCompactLogViewer.SourceTransitionParser.text (   self,
  context 
)

Definition at line 244 of file edmTracerCompactLogViewer.py.

244  def text(self, context):
245  return f'{self.textPrefix()} {self.textSpecial()}: {self.textPostfix()}'
246 

◆ textPostfix()

def edmTracerCompactLogViewer.SourceTransitionParser.textPostfix (   self)

Definition at line 242 of file edmTracerCompactLogViewer.py.

242  def textPostfix(self):
243  return f'source during {transitionName(self.transition)} : id={self.index}'

◆ textPrefix()

def edmTracerCompactLogViewer.SourceTransitionParser.textPrefix (   self)

Member Data Documentation

◆ index

edmTracerCompactLogViewer.SourceTransitionParser.index

◆ time

edmTracerCompactLogViewer.SourceTransitionParser.time

◆ transition

edmTracerCompactLogViewer.SourceTransitionParser.transition