CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions
edmTracerCompactLogViewer.ESModuleTransitionParser Class Reference
Inheritance diagram for edmTracerCompactLogViewer.ESModuleTransitionParser:
edmTracerCompactLogViewer.PostESModuleAcquireParser edmTracerCompactLogViewer.PostESModulePrefetchingParser edmTracerCompactLogViewer.PostESModuleTransitionParser edmTracerCompactLogViewer.PreESModuleAcquireParser edmTracerCompactLogViewer.PreESModulePrefetchingParser edmTracerCompactLogViewer.PreESModuleTransitionParser

Public Member Functions

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

Public Attributes

 callID
 
 index
 
 moduleID
 
 moduleName
 
 recordID
 
 recordName
 
 requestingCallID
 
 requestingModuleID
 
 requestingModuleName
 
 time
 
 transition
 

Private Member Functions

def _postJson (self, counter, data)
 
def _preJson (self, activity, counter, data)
 

Detailed Description

Definition at line 619 of file edmTracerCompactLogViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def edmTracerCompactLogViewer.ESModuleTransitionParser.__init__ (   self,
  payload,
  moduleNames,
  esModuleNames,
  recordNames 
)

Definition at line 620 of file edmTracerCompactLogViewer.py.

620  def __init__(self, payload, moduleNames, esModuleNames, recordNames):
621  self.transition = int(payload[0])
622  self.index = int(payload[1])
623  self.moduleID = int(payload[2])
624  self.moduleName = esModuleNames[self.moduleID]
625  self.recordID = int(payload[3])
626  self.recordName = recordNames[self.recordID]
627  self.callID = int(payload[4])
628  self.requestingModuleID = int(payload[5])
629  self.requestingCallID = int(payload[6])
630  self.requestingModuleName = None
631  if self.requestingModuleID < 0 :
632  self.requestingModuleName = esModuleNames[-1*self.requestingModuleID]
633  else:
634  self.requestingModuleName = moduleNames[self.requestingModuleID]
635  self.time = int(payload[7])
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.ESModuleTransitionParser._postJson (   self,
  counter,
  data 
)
private

Definition at line 655 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.EDModuleTransitionParser.callID, edmTracerCompactLogViewer.ESModuleTransitionParser.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.ESModuleTransitionParser.index, EcalTestPulseAnalyzer.moduleID, EcalLaserAnalyzer.moduleID, EcalLaserAnalyzer2.moduleID, edmTracerCompactLogViewer.EDModuleTransitionParser.moduleID, edmTracerCompactLogViewer.ESModuleTransitionParser.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.ESModuleTransitionParser.time, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, edmTracerCompactLogViewer.EDModuleTransitionParser.transition, edmTracerCompactLogViewer.ESModuleTransitionParser.transition, and edmTracerCompactLogViewer.transitionIsGlobal().

Referenced by edmTracerCompactLogViewer.PostESModuleTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PostESModulePrefetchingParser.jsonInfo(), and edmTracerCompactLogViewer.PostESModuleAcquireParser.jsonInfo().

655  def _postJson(self, counter, data):
656  compare = lambda x: x['id'] == self.index and x['mod'] == -1*self.moduleID and x['call'] == self.callID
657  index = self.index
658  if transitionIsGlobal(self.transition):
659  item,s = data.findLastInModGlobals(index, -1*self.moduleID, compare)
660  else:
661  item,s = data.findLastInModStreams(index, -1*self.moduleID, compare)
662  if item is None:
663  print(f"failed to find {-1*self.moduleID} for {self.transition} in {self.index}")
664  return
665  item["finish"]=self.time*kMicroToSec
666 
667 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ _preJson()

def edmTracerCompactLogViewer.ESModuleTransitionParser._preJson (   self,
  activity,
  counter,
  data 
)
private

Definition at line 647 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.EDModuleTransitionParser.callID, edmTracerCompactLogViewer.ESModuleTransitionParser.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.ESModuleTransitionParser.index, edmTracerCompactLogViewer.jsonModuleTransition(), EcalTestPulseAnalyzer.moduleID, EcalLaserAnalyzer.moduleID, EcalLaserAnalyzer2.moduleID, edmTracerCompactLogViewer.EDModuleTransitionParser.moduleID, edmTracerCompactLogViewer.ESModuleTransitionParser.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.ESModuleTransitionParser.time, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, edmTracerCompactLogViewer.EDModuleTransitionParser.transition, edmTracerCompactLogViewer.ESModuleTransitionParser.transition, and edmTracerCompactLogViewer.transitionIsGlobal().

Referenced by edmTracerCompactLogViewer.PreESModuleTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PreESModulePrefetchingParser.jsonInfo(), and edmTracerCompactLogViewer.PreESModuleAcquireParser.jsonInfo().

647  def _preJson(self, activity, counter, data):
648  index = self.index
649  if transitionIsGlobal(self.transition):
650  slot = data.findOpenSlotInModGlobals(index, -1*self.moduleID)
651  else:
652  slot = data.findOpenSlotInModStreams(index, -1*self.moduleID)
653  slot.append(jsonModuleTransition(type=self.transition, id=self.index, modID=-1*self.moduleID, callID=self.callID, activity=activity, start=self.time))
654  return slot[-1]
def jsonModuleTransition(type, id, modID, callID, activity, start, finish=0)

◆ baseIndentLevel()

def edmTracerCompactLogViewer.ESModuleTransitionParser.baseIndentLevel (   self)

◆ text()

def edmTracerCompactLogViewer.ESModuleTransitionParser.text (   self,
  context 
)

Definition at line 645 of file edmTracerCompactLogViewer.py.

645  def text(self, context):
646  return f'{self.textPrefix(context)} {self.textSpecial()}: {self.textPostfix()}'

◆ textPostfix()

def edmTracerCompactLogViewer.ESModuleTransitionParser.textPostfix (   self)

Definition at line 643 of file edmTracerCompactLogViewer.py.

643  def textPostfix(self):
644  return f'esmodule {self.moduleName} in record {self.recordName} during {transitionName(self.transition)} : id={self.index}'

◆ textPrefix()

def edmTracerCompactLogViewer.ESModuleTransitionParser.textPrefix (   self,
  context 
)

Definition at line 638 of file edmTracerCompactLogViewer.py.

References edmTracerCompactLogViewer.EDModuleTransitionParser.baseIndentLevel(), edmTracerCompactLogViewer.ESModuleTransitionParser.baseIndentLevel(), edmTracerCompactLogViewer.EDModuleTransitionParser.callID, edmTracerCompactLogViewer.ESModuleTransitionParser.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, edmTracerCompactLogViewer.ESModuleTransitionParser.index, EcalTestPulseAnalyzer.moduleID, EcalLaserAnalyzer.moduleID, EcalLaserAnalyzer2.moduleID, edmTracerCompactLogViewer.EDModuleTransitionParser.moduleID, edmTracerCompactLogViewer.ESModuleTransitionParser.moduleID, edmTracerCompactLogViewer.EDModuleTransitionParser.requestingCallID, edmTracerCompactLogViewer.ESModuleTransitionParser.requestingCallID, edmTracerCompactLogViewer.EDModuleTransitionParser.requestingModuleID, edmTracerCompactLogViewer.ESModuleTransitionParser.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.ESModuleTransitionParser.time, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, edmTracerCompactLogViewer.EDModuleTransitionParser.transition, and edmTracerCompactLogViewer.ESModuleTransitionParser.transition.

638  def textPrefix(self, context):
639  indent = 0
640  indent = context[(self.transition, self.index, self.requestingModuleID, self.requestingCallID)]
641  context[(self.transition, self.index, -1*self.moduleID, self.callID)] = indent+1
642  return textPrefix_(self.time, indent+1+self.baseIndentLevel())
def textPrefix_(time, indentLevel)

Member Data Documentation

◆ callID

edmTracerCompactLogViewer.ESModuleTransitionParser.callID

◆ index

edmTracerCompactLogViewer.ESModuleTransitionParser.index

Definition at line 622 of file edmTracerCompactLogViewer.py.

Referenced by edmTracerCompactLogViewer.ESModuleTransitionParser._postJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonVis(), edmTracerCompactLogViewer.ESModuleTransitionParser._preJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostEDModuleAcquireParser.jsonVisInfo(), edmTracerCompactLogViewer.ESModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.textPrefix(), and edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.textPrefix().

◆ moduleID

edmTracerCompactLogViewer.ESModuleTransitionParser.moduleID

◆ moduleName

edmTracerCompactLogViewer.ESModuleTransitionParser.moduleName

◆ recordID

edmTracerCompactLogViewer.ESModuleTransitionParser.recordID

◆ recordName

edmTracerCompactLogViewer.ESModuleTransitionParser.recordName

◆ requestingCallID

edmTracerCompactLogViewer.ESModuleTransitionParser.requestingCallID

◆ requestingModuleID

edmTracerCompactLogViewer.ESModuleTransitionParser.requestingModuleID

◆ requestingModuleName

edmTracerCompactLogViewer.ESModuleTransitionParser.requestingModuleName

Definition at line 630 of file edmTracerCompactLogViewer.py.

◆ time

edmTracerCompactLogViewer.ESModuleTransitionParser.time

Definition at line 635 of file edmTracerCompactLogViewer.py.

Referenced by edmTracerCompactLogViewer.ESModuleTransitionParser._postJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonVis(), edmTracerCompactLogViewer.ESModuleTransitionParser._preJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostEDModuleAcquireParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.SourceTransitionParser.textPrefix(), edmTracerCompactLogViewer.ESModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.textPrefix(), and edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.textPrefix().

◆ transition

edmTracerCompactLogViewer.ESModuleTransitionParser.transition

Definition at line 621 of file edmTracerCompactLogViewer.py.

Referenced by edmModuleAllocMonitorAnalyze.ModuleData.__repr__(), edmTracerCompactLogViewer.ESModuleTransitionParser._postJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonVis(), edmTracerCompactLogViewer.ESModuleTransitionParser._preJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonVis(), edmTracerCompactLogViewer.ESModuleTransitionParser.baseIndentLevel(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.baseIndentLevel(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.baseIndentLevel(), edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.indentLevel(), edmModuleAllocMonitorAnalyze.SourceTransitionParser.indentLevel(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostEDModuleAcquireParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.syncText(), edmTracerCompactLogViewer.ESModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.textPrefix(), and edmModuleAllocMonitorAnalyze.ModuleData.toSimpleDict().