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

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.SourceTransitionParser.__init__ (   self,
  payload 
)

Definition at line 346 of file edmTracerCompactLogViewer.py.

346  def __init__(self, payload):
347  self.transition = int(payload[0])
348  if self.transition == Phase.getNextTransition:
349  self.time = int(payload[1])
350  self.index = -1
351  return
352  self.index = int(payload[1])
353  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 354 of file edmTracerCompactLogViewer.py.

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

Referenced by edmTracerCompactLogViewer.SourceTransitionParser.textPrefix().

354  def indentLevel(self):
355  if self.transition == Phase.globalBeginRun:
356  return 1
357  if self.transition == Phase.globalBeginLumi:
358  return 2
359  if self.transition == Phase.Event:
360  return 3
361  if self.transition == Phase.construction:
362  return 1
363  if self.transition == Phase.getNextTransition:
364  return 1
365  return None

◆ text()

def edmTracerCompactLogViewer.SourceTransitionParser.text (   self,
  context 
)

Definition at line 370 of file edmTracerCompactLogViewer.py.

370  def text(self, context):
371  return f'{self.textPrefix()} {self.textSpecial()}: {self.textPostfix()}'
372 

◆ textPostfix()

def edmTracerCompactLogViewer.SourceTransitionParser.textPostfix (   self)

Definition at line 368 of file edmTracerCompactLogViewer.py.

368  def textPostfix(self):
369  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