CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser Class Reference
Inheritance diagram for edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser:
edmModuleAllocMonitorAnalyze.FrameworkTransitionParser

Public Member Functions

def __init__ (self, payload)
 
def jsonInfo (self, syncs, temp, data)
 
def jsonVisInfo (self, data)
 
def textSpecial (self)
 
- Public Member Functions inherited from edmModuleAllocMonitorAnalyze.FrameworkTransitionParser
def __init__ (self, payload)
 
def indentLevel (self)
 
def syncText (self)
 
def text (self, context)
 
def textPostfix (self)
 
def textPrefix (self)
 

Public Attributes

 transition
 
- Public Attributes inherited from edmModuleAllocMonitorAnalyze.FrameworkTransitionParser
 index
 
 sync
 
 time
 
 transition
 

Detailed Description

Definition at line 432 of file edmModuleAllocMonitorAnalyze.py.

Constructor & Destructor Documentation

◆ __init__()

def edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.__init__ (   self,
  payload 
)

Definition at line 433 of file edmModuleAllocMonitorAnalyze.py.

433  def __init__(self, payload):
434  super().__init__(payload)
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

◆ jsonInfo()

def edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.jsonInfo (   self,
  syncs,
  temp,
  data 
)

Definition at line 437 of file edmModuleAllocMonitorAnalyze.py.

437  def jsonInfo(self, syncs, temp, data):
438  isSourceTrans = False
439  if self.transition == Phase.startTracing:
440  data.setStartTime(self.time)
441  elif self.transition == Phase.globalBeginRun:
442  syncs.setRun(self.index, self.sync[0])
443  isSourceTrans = True
444  elif self.transition == Phase.globalBeginLumi:
445  syncs.setLumi(self.index, self.sync[0], self.sync[1])
446  isSourceTrans = True
447  elif self.transition == Phase.Event:
448  syncs.setStream(self.index, self.sync[0], self.sync[1], self.sync[2])
449  isSourceTrans = True
450  elif self.transition == Phase.clearEvent:
451  temp.insertTime("clearEvent", self.transition, self.index, self.time)
452  elif not transitionIsGlobal(self.index):
453  syncs.setStream(self.index, self.sync[0], self.sync[1], self.sync[2])
454  if isSourceTrans:
455  src = data.findLast("source", self.transition, self.index, Activity.process)
456  if src.sync != self.index:
457  raise RuntimeError("Framework and Source transitions do not have matching index: source {} framework {} for transition type {} at framework time {} and source time {}".format(src.sync, self.index, self.transition, self.time, src.timeRange))
458  src.sync = syncs.get(self.transition, self.index)

◆ jsonVisInfo()

def edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.jsonVisInfo (   self,
  data 
)

Definition at line 459 of file edmModuleAllocMonitorAnalyze.py.

References mps_setup.append, edmModuleAllocMonitorAnalyze.findMatchingTransition(), relval_nano.WFN.index, TShapeAnalysis.index, AlpgenParTokens.index, TICLSeedingRegion.index, l1ScoutingRun3::ugmt::shiftsMuon.index, L1TUtmCutValue.index, l1ScoutingRun3::ugmt::masksMuon.index, edm::soa::impl::FoundIndex< I >.index, MCPdgIndexFilter.index, edm::soa::impl::GetIndex< I, T, TPL >.index, Phase2Tracker::Phase2TrackerDigiProducer::Registry.index, TaggingVariablePlotter::VariableConfig::Plot.index, ProjectMatrix< T, N, D >.index, l1ct::FoldedMultififoRegionizerEmulator::Fold.index, IsolatedPixelTrackCandidateProducer::seedAtEC.index, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.index, reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::IndexedVertexTrackSelector.index, EopTriggerType.index, NuclearInteractionFTFSimulator.index, AlpgenParameterName.index, sistrip::RawToDigiUnpacker::Registry.index, VIterator< Item >.index, fastsim::NuclearInteractionFTF.index, AlgoMuon.index, edmTracerCompactLogViewer.FrameworkTransitionParser.index, cmsdt::metaPrimitive.index, edmTracerCompactLogViewer.SourceTransitionParser.index, edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.index, edmTracerCompactLogViewer.EDModuleTransitionParser.index, edmTracerCompactLogViewer.ESModuleTransitionParser.index, edmModuleAllocMonitorAnalyze.jsonTransition(), ztail.Decoder.sync, edmTracerCompactLogViewer.FrameworkTransitionParser.sync, edmModuleAllocMonitorAnalyze.ModuleData.sync, edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.sync, reco::HcalMuonRecHit.time, RPCStripNoises::NoiseItem.time, RPCObImon::I_Item.time, RPCObGas::Item.time, ecal::RecHit< StoragePolicy >.time, RPCObFebmap::Feb_Item.time, RecoObj.time, L1Analysis::L1AnalysisEventDataFormat.time, RPCObVmon::V_Item.time, classes.PedeDumpData.time, RPCObStatus::S_Item.time, DTTMax::InfoLayer.time, RPCObTemp::T_Item.time, emtf::phase2::segment_t.time, L1TMuon::TriggerPrimitive::RPCData.time, dqm-mbProfile.Profile.time, DQMNet::WaitObject.time, edmTracerCompactLogViewer.FrameworkTransitionParser.time, edmTracerCompactLogViewer.SourceTransitionParser.time, l1t::EMTFHit.time, edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.time, edmTracerCompactLogViewer.EDModuleTransitionParser.time, edmTracerCompactLogViewer.ESModuleTransitionParser.time, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmModuleAllocMonitorAnalyze.ModuleData.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmModuleAllocMonitorAnalyze.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, edmTracerCompactLogViewer.EDModuleTransitionParser.transition, edmTracerCompactLogViewer.ESModuleTransitionParser.transition, and edmModuleAllocMonitorAnalyze.transitionIsGlobal().

459  def jsonVisInfo(self, data):
460  if transitionIsGlobal(self.transition):
461  index = 0
462  if self.transition == Phase.startTracing:
463  data.indexedGlobal(0).append(jsonTransition(type=self.transition, id=index, sync=list(self.sync),start=0, finish=self.time ))
464  return
465  elif self.transition==Phase.globalBeginRun:
466  index = self.index
467  container = data.indexedGlobal(index)
468  #find source, should be previous
469  last = container[-1]
470  if last["type"]==Phase.globalBeginRun and last["isSrc"]:
471  last["sync"]=list(self.sync)
472  elif self.transition==Phase.globalBeginLumi:
473  index = self.index
474  container = data.indexedGlobal(index)
475  #find source, should be previous
476  last = container[-1]
477  if last["type"]==Phase.globalBeginLumi and last["isSrc"]:
478  last["sync"]=list(self.sync)
479  elif self.transition in transitionsToFindMatch_:
480  index = findMatchingTransition(list(self.sync), data.allGlobals())
481  container = data.indexedGlobal(index)
482  else:
483  container = data.indexedStream(self.index)
484  if self.transition == Phase.Event:
485  #find source, should be previous
486  last = container[-1]
487  if last["type"]==Phase.Event and last["isSrc"]:
488  last["sync"]=list(self.sync)
489  index = self.index
490  container.append( jsonTransition(type=self.transition, id = index, sync=list(self.sync), start=self.time , finish=0))
491 
492 
493 
def jsonTransition(type, id, sync, start, finish, isSrc=False)

◆ textSpecial()

def edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.textSpecial (   self)

Definition at line 435 of file edmModuleAllocMonitorAnalyze.py.

435  def textSpecial(self):
436  return "starting"

Member Data Documentation

◆ transition

edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.transition