CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions
edmTracerCompactLogViewer.EDModuleTransitionParser Class Reference
Inheritance diagram for edmTracerCompactLogViewer.EDModuleTransitionParser:
edmTracerCompactLogViewer.PostEDModuleAcquireParser edmTracerCompactLogViewer.PostEDModuleEventDelayedGetParser edmTracerCompactLogViewer.PostEDModulePrefetchingParser edmTracerCompactLogViewer.PostEDModuleTransitionParser edmTracerCompactLogViewer.PostEventReadFromSourceParser edmTracerCompactLogViewer.PreEDModuleAcquireParser edmTracerCompactLogViewer.PreEDModuleEventDelayedGetParser edmTracerCompactLogViewer.PreEDModulePrefetchingParser edmTracerCompactLogViewer.PreEDModuleTransitionParser edmTracerCompactLogViewer.PreEventReadFromSourceParser

Public Member Functions

def __init__ (self, payload, moduleNames)
 
def baseIndentLevel (self)
 
def text (self, context)
 
def textIfTransform (self)
 
def textPostfix (self)
 
def textPrefix (self, context)
 

Public Attributes

 callID
 
 index
 
 moduleID
 
 moduleName
 
 requestingCallID
 
 requestingModuleID
 
 requestingModuleName
 
 time
 
 transition
 

Private Member Functions

def _postJson (self, counter, data, injectAfter=None)
 
def _preJson (self, activity, counter, data, mayUseTemp=False)
 

Detailed Description

Definition at line 454 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.EDModuleTransitionParser.__init__ (   self,
  payload,
  moduleNames 
)

Definition at line 455 of file edmTracerCompactLogViewer.py.

455  def __init__(self, payload, moduleNames):
456  self.transition = int(payload[0])
457  self.index = int(payload[1])
458  self.moduleID = int(payload[2])
459  self.moduleName = moduleNames[self.moduleID]
460  self.callID = int(payload[3])
461  self.requestingModuleID = int(payload[4])
462  self.requestingCallID = int(payload[5])
463  self.requestingModuleName = None
464  if self.requestingModuleID != 0:
465  self.requestingModuleName = moduleNames[self.requestingModuleID]
466  self.time = int(payload[6])
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

◆ _postJson()

def edmTracerCompactLogViewer.EDModuleTransitionParser._postJson (   self,
  counter,
  data,
  injectAfter = None 
)
private

Definition at line 505 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.EDModuleTransitionParser.callID, relval_nano.WFN.index, TShapeAnalysis.index, TICLSeedingRegion.index, l1ScoutingRun3::ugmt::shiftsMuon.index, L1TUtmCutValue.index, l1ScoutingRun3::ugmt::masksMuon.index, Phase2Tracker::Phase2TrackerDigiProducer::Registry.index, TaggingVariablePlotter::VariableConfig::Plot.index, ProjectMatrix< T, N, D >.index, IsolatedPixelTrackCandidateProducer::seedAtEC.index, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.index, reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::IndexedVertexTrackSelector.index, EopTriggerType.index, NuclearInteractionFTFSimulator.index, sistrip::RawToDigiUnpacker::Registry.index, VIterator< Item >.index, fastsim::NuclearInteractionFTF.index, edmTracerCompactLogViewer.FrameworkTransitionParser.index, edmTracerCompactLogViewer.SourceTransitionParser.index, edmTracerCompactLogViewer.EDModuleTransitionParser.index, EcalTestPulseAnalyzer.moduleID, EcalLaserAnalyzer.moduleID, EcalLaserAnalyzer2.moduleID, edmTracerCompactLogViewer.EDModuleTransitionParser.moduleID, print(), reco::HcalMuonRecHit.time, RPCStripNoises::NoiseItem.time, RPCObImon::I_Item.time, RPCObGas::Item.time, ecal::RecHit< StoragePolicy >.time, RPCObFebmap::Feb_Item.time, RecoObj.time, RPCObVmon::V_Item.time, classes.PedeDumpData.time, RPCObStatus::S_Item.time, DTTMax::InfoLayer.time, RPCObTemp::T_Item.time, dqm-mbProfile.Profile.time, DQMNet::WaitObject.time, edmTracerCompactLogViewer.FrameworkTransitionParser.time, edmTracerCompactLogViewer.SourceTransitionParser.time, l1t::EMTFHit.time, edmTracerCompactLogViewer.EDModuleTransitionParser.time, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, edmTracerCompactLogViewer.EDModuleTransitionParser.transition, and edmTracerCompactLogViewer.transitionIsGlobal().

Referenced by edmTracerCompactLogViewer.PostEDModuleTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModulePrefetchingParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModuleAcquireParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModuleEventDelayedGetParser.jsonInfo(), edmTracerCompactLogViewer.PostEventReadFromSourceParser.jsonInfo(), edmTracerCompactLogViewer.PostESModuleTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PostESModulePrefetchingParser.jsonInfo(), and edmTracerCompactLogViewer.PostESModuleAcquireParser.jsonInfo().

505  def _postJson(self, counter, data, injectAfter = None):
506  compare = lambda x: x['id'] == self.index and x['mod'] == self.moduleID and x['call'] == self.callID and x['type'] == self.transition
507  index = self.index
508  if transitionIsGlobal(self.transition):
509  item,slot = data.findLastInModGlobals(index, self.moduleID, compare)
510  else:
511  item,slot = data.findLastInModStreams(index, self.moduleID, compare)
512  if item is None:
513  print(f"failed to find {self.moduleID} for {self.transition} in {self.index}")
514  else:
515  item["finish"]=self.time*kMicroToSec
516  if injectAfter:
517  slot.append(injectAfter)
518 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ _preJson()

def edmTracerCompactLogViewer.EDModuleTransitionParser._preJson (   self,
  activity,
  counter,
  data,
  mayUseTemp = False 
)
private

Definition at line 483 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.EDModuleTransitionParser.callID, relval_nano.WFN.index, TShapeAnalysis.index, TICLSeedingRegion.index, l1ScoutingRun3::ugmt::shiftsMuon.index, L1TUtmCutValue.index, l1ScoutingRun3::ugmt::masksMuon.index, Phase2Tracker::Phase2TrackerDigiProducer::Registry.index, TaggingVariablePlotter::VariableConfig::Plot.index, ProjectMatrix< T, N, D >.index, IsolatedPixelTrackCandidateProducer::seedAtEC.index, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.index, reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::IndexedVertexTrackSelector.index, EopTriggerType.index, NuclearInteractionFTFSimulator.index, sistrip::RawToDigiUnpacker::Registry.index, VIterator< Item >.index, fastsim::NuclearInteractionFTF.index, edmTracerCompactLogViewer.FrameworkTransitionParser.index, edmTracerCompactLogViewer.SourceTransitionParser.index, edmTracerCompactLogViewer.EDModuleTransitionParser.index, edmTracerCompactLogViewer.jsonModuleTransition(), EcalTestPulseAnalyzer.moduleID, EcalLaserAnalyzer.moduleID, EcalLaserAnalyzer2.moduleID, edmTracerCompactLogViewer.EDModuleTransitionParser.moduleID, reco::HcalMuonRecHit.time, RPCStripNoises::NoiseItem.time, RPCObImon::I_Item.time, RPCObGas::Item.time, ecal::RecHit< StoragePolicy >.time, RPCObFebmap::Feb_Item.time, RecoObj.time, RPCObVmon::V_Item.time, classes.PedeDumpData.time, RPCObStatus::S_Item.time, DTTMax::InfoLayer.time, RPCObTemp::T_Item.time, dqm-mbProfile.Profile.time, DQMNet::WaitObject.time, edmTracerCompactLogViewer.FrameworkTransitionParser.time, edmTracerCompactLogViewer.SourceTransitionParser.time, l1t::EMTFHit.time, edmTracerCompactLogViewer.EDModuleTransitionParser.time, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, edmTracerCompactLogViewer.EDModuleTransitionParser.transition, and edmTracerCompactLogViewer.transitionIsGlobal().

Referenced by edmTracerCompactLogViewer.PreEDModuleTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PreEDModulePrefetchingParser.jsonInfo(), edmTracerCompactLogViewer.PreEDModuleAcquireParser.jsonInfo(), edmTracerCompactLogViewer.PreEDModuleEventDelayedGetParser.jsonInfo(), edmTracerCompactLogViewer.PreEventReadFromSourceParser.jsonInfo(), edmTracerCompactLogViewer.PreESModuleTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PreESModulePrefetchingParser.jsonInfo(), and edmTracerCompactLogViewer.PreESModuleAcquireParser.jsonInfo().

483  def _preJson(self, activity, counter, data, mayUseTemp = False):
484  index = self.index
485  found = False
486  if mayUseTemp:
487  compare = lambda x: x['type'] == self.transition and x['id'] == self.index and x['mod'] == self.moduleID and x['call'] == self.callID and (x['act'] == Activity.temporary or x['act'] == Activity.externalWork)
488  if transitionIsGlobal(self.transition):
489  item,slot = data.findLastInModGlobals(index, self.moduleID, compare)
490  else:
491  item,slot = data.findLastInModStreams(index, self.moduleID, compare)
492  if slot:
493  if item['act'] == Activity.temporary:
494  slot.pop()
495  else:
496  item['finish']=self.time*kMicroToSec
497  found = True
498  if not found:
499  if transitionIsGlobal(self.transition):
500  slot = data.findOpenSlotInModGlobals(index, self.moduleID)
501  else:
502  slot = data.findOpenSlotInModStreams(index, self.moduleID)
503  slot.append(jsonModuleTransition(type=self.transition, id=self.index, modID=self.moduleID, callID=self.callID, activity=activity, start=self.time))
504  return slot[-1]
def jsonModuleTransition(type, id, modID, callID, activity, start, finish=0)

◆ baseIndentLevel()

def edmTracerCompactLogViewer.EDModuleTransitionParser.baseIndentLevel (   self)

◆ text()

def edmTracerCompactLogViewer.EDModuleTransitionParser.text (   self,
  context 
)

Definition at line 481 of file edmTracerCompactLogViewer.py.

481  def text(self, context):
482  return f'{self.textPrefix(context)} {self.textSpecial()}{self.textIfTransform()}: {self.textPostfix()}'

◆ textIfTransform()

def edmTracerCompactLogViewer.EDModuleTransitionParser.textIfTransform (   self)

Definition at line 477 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.EDModuleTransitionParser.callID.

477  def textIfTransform(self):
478  if self.callID:
479  return f' transform {self.callID-1}'
480  return ''

◆ textPostfix()

def edmTracerCompactLogViewer.EDModuleTransitionParser.textPostfix (   self)

Definition at line 475 of file edmTracerCompactLogViewer.py.

475  def textPostfix(self):
476  return f'{self.moduleName} during {transitionName(self.transition)} : id={self.index}'

◆ textPrefix()

def edmTracerCompactLogViewer.EDModuleTransitionParser.textPrefix (   self,
  context 
)

Definition at line 469 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.EDModuleTransitionParser.baseIndentLevel(), edmTracerCompactLogViewer.EDModuleTransitionParser.callID, relval_nano.WFN.index, TShapeAnalysis.index, TICLSeedingRegion.index, l1ScoutingRun3::ugmt::shiftsMuon.index, l1ScoutingRun3::ugmt::masksMuon.index, L1TUtmCutValue.index, Phase2Tracker::Phase2TrackerDigiProducer::Registry.index, TaggingVariablePlotter::VariableConfig::Plot.index, ProjectMatrix< T, N, D >.index, IsolatedPixelTrackCandidateProducer::seedAtEC.index, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.index, reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::IndexedVertexTrackSelector.index, EopTriggerType.index, NuclearInteractionFTFSimulator.index, sistrip::RawToDigiUnpacker::Registry.index, VIterator< Item >.index, fastsim::NuclearInteractionFTF.index, edmTracerCompactLogViewer.FrameworkTransitionParser.index, edmTracerCompactLogViewer.SourceTransitionParser.index, edmTracerCompactLogViewer.EDModuleTransitionParser.index, EcalTestPulseAnalyzer.moduleID, EcalLaserAnalyzer.moduleID, EcalLaserAnalyzer2.moduleID, edmTracerCompactLogViewer.EDModuleTransitionParser.moduleID, edmTracerCompactLogViewer.EDModuleTransitionParser.requestingCallID, edmTracerCompactLogViewer.EDModuleTransitionParser.requestingModuleID, edmTracerCompactLogViewer.textPrefix_(), reco::HcalMuonRecHit.time, RPCStripNoises::NoiseItem.time, RPCObImon::I_Item.time, RPCObGas::Item.time, ecal::RecHit< StoragePolicy >.time, RPCObFebmap::Feb_Item.time, RecoObj.time, RPCObVmon::V_Item.time, classes.PedeDumpData.time, RPCObStatus::S_Item.time, DTTMax::InfoLayer.time, RPCObTemp::T_Item.time, dqm-mbProfile.Profile.time, DQMNet::WaitObject.time, edmTracerCompactLogViewer.FrameworkTransitionParser.time, edmTracerCompactLogViewer.SourceTransitionParser.time, l1t::EMTFHit.time, edmTracerCompactLogViewer.EDModuleTransitionParser.time, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, and edmTracerCompactLogViewer.EDModuleTransitionParser.transition.

469  def textPrefix(self, context):
470  indent = 0
471  if self.requestingModuleID != 0:
472  indent = context[(self.transition, self.index, self.requestingModuleID, self.requestingCallID)]
473  context[(self.transition, self.index, self.moduleID, self.callID)] = indent+1
474  return textPrefix_(self.time, indent+1+self.baseIndentLevel())
def textPrefix_(time, indentLevel)

Member Data Documentation

◆ callID

edmTracerCompactLogViewer.EDModuleTransitionParser.callID

◆ index

edmTracerCompactLogViewer.EDModuleTransitionParser.index

◆ moduleID

edmTracerCompactLogViewer.EDModuleTransitionParser.moduleID

◆ moduleName

edmTracerCompactLogViewer.EDModuleTransitionParser.moduleName

Definition at line 459 of file edmTracerCompactLogViewer.py.

◆ requestingCallID

edmTracerCompactLogViewer.EDModuleTransitionParser.requestingCallID

◆ requestingModuleID

edmTracerCompactLogViewer.EDModuleTransitionParser.requestingModuleID

◆ requestingModuleName

edmTracerCompactLogViewer.EDModuleTransitionParser.requestingModuleName

Definition at line 463 of file edmTracerCompactLogViewer.py.

◆ time

edmTracerCompactLogViewer.EDModuleTransitionParser.time

◆ transition

edmTracerCompactLogViewer.EDModuleTransitionParser.transition