CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, start, stop, transition, sync, activity, allocInfo, recordName=None, callID=None)
 
def __repr__ (self)
 
def syncToSimpleDict (self)
 
def toSimpleDict (self)
 

Public Attributes

 activity
 
 allocInfo
 
 record
 
 sync
 
 timeRange
 
 transition
 

Detailed Description

Definition at line 274 of file edmModuleAllocMonitorAnalyze.py.

Constructor & Destructor Documentation

◆ __init__()

def edmModuleAllocMonitorAnalyze.ModuleData.__init__ (   self,
  start,
  stop,
  transition,
  sync,
  activity,
  allocInfo,
  recordName = None,
  callID = None 
)

Definition at line 275 of file edmModuleAllocMonitorAnalyze.py.

275  def __init__(self, start, stop, transition, sync, activity, allocInfo, recordName=None, callID=None):
276  self.timeRange = (start, stop)
277  self.transition = transition
278  self.sync = sync
279  self.activity = activity
280  self.allocInfo = allocInfo
281  self.record = (recordName, callID)
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

◆ __repr__()

def edmModuleAllocMonitorAnalyze.ModuleData.__repr__ (   self)

Definition at line 282 of file edmModuleAllocMonitorAnalyze.py.

References TotemRPDQMSource::PotPlots.activity, edmModuleAllocMonitorAnalyze.ModuleData.activity, edmModuleAllocMonitorAnalyze.ModuleData.allocInfo, CondFormats_JetMETObjects::dictionary.record, BufferedBoostIODBWriter.record, FFTJetCorrectorDBWriter.record, FFTJetCorrectorDBReader.record, edmModuleAllocMonitorAnalyze.ModuleData.record, ztail.Decoder.sync, edmTracerCompactLogViewer.FrameworkTransitionParser.sync, edmModuleAllocMonitorAnalyze.ModuleData.sync, edmModuleAllocMonitorAnalyze.ModuleData.timeRange, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmModuleAllocMonitorAnalyze.ModuleData.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, edmTracerCompactLogViewer.EDModuleTransitionParser.transition, and edmTracerCompactLogViewer.ESModuleTransitionParser.transition.

Referenced by datamodel.Object.__str__().

282  def __repr__(self):
283  if self.record[0]:
284  return "{{ 'timeRange': {}, 'transition': {}, 'sync' :{}, 'activity':{}, 'record': {{'name' : {}, 'callID' :{} }}, 'alloc':{} }}".format(self.timeRange, self.transition, self.sync, self.activity, self.record[0], self.record[1], self.allocInfo)
285 
286  return "{{ 'timeRange': {}, 'transition': {}, 'sync' :{}, 'activity':{}, 'alloc':{} }}".format(self.timeRange, self.transition, self.sync, self.activity, self.allocInfo)

◆ syncToSimpleDict()

def edmModuleAllocMonitorAnalyze.ModuleData.syncToSimpleDict (   self)

Definition at line 287 of file edmModuleAllocMonitorAnalyze.py.

References ztail.Decoder.sync, edmTracerCompactLogViewer.FrameworkTransitionParser.sync, and edmModuleAllocMonitorAnalyze.ModuleData.sync.

Referenced by edmModuleAllocMonitorAnalyze.ModuleData.toSimpleDict().

287  def syncToSimpleDict(self):
288  if len(self.sync) == 0:
289  return self.sync
290  if len(self.sync) == 1:
291  return {'run' : self.sync[0]}
292  if len(self.sync) == 2:
293  return {'run' : self.sync[0], 'lumi' : self.sync[1] }
294  return {'run' : self.sync[0], 'lumi' : self.sync[1], 'event' : self.sync[2] }

◆ toSimpleDict()

def edmModuleAllocMonitorAnalyze.ModuleData.toSimpleDict (   self)

Definition at line 295 of file edmModuleAllocMonitorAnalyze.py.

References TotemRPDQMSource::PotPlots.activity, edmModuleAllocMonitorAnalyze.ModuleData.activity, edmModuleAllocMonitorAnalyze.activityName(), edmModuleAllocMonitorAnalyze.ModuleData.allocInfo, CondFormats_JetMETObjects::dictionary.record, BufferedBoostIODBWriter.record, FFTJetCorrectorDBWriter.record, FFTJetCorrectorDBReader.record, edmModuleAllocMonitorAnalyze.ModuleData.record, edmModuleAllocMonitorAnalyze.ModuleData.syncToSimpleDict(), edmModuleAllocMonitorAnalyze.ModuleData.timeRange, edmTracerCompactLogViewer.FrameworkTransitionParser.transition, edmTracerCompactLogViewer.PreFrameworkTransitionParser.transition, edmModuleAllocMonitorAnalyze.ModuleData.transition, edmTracerCompactLogViewer.PostFrameworkTransitionParser.transition, edmTracerCompactLogViewer.SourceTransitionParser.transition, edmTracerCompactLogViewer.PreSourceTransitionParser.transition, edmTracerCompactLogViewer.PostSourceTransitionParser.transition, edmTracerCompactLogViewer.EDModuleTransitionParser.transition, edmTracerCompactLogViewer.ESModuleTransitionParser.transition, and edmModuleAllocMonitorAnalyze.transitionName().

295  def toSimpleDict(self) :
296  if self.record[0]:
297  return {'timeRange': self.timeRange, 'transition': transitionName(self.transition), 'sync' : self.syncToSimpleDict(), 'activity' : activityName(self.activity), 'record' :{'name': self.record[0], 'callID' : self.record[1] }, 'alloc' : self.allocInfo.toSimpleDict() }
298  return {'timeRange': self.timeRange, 'transition': transitionName(self.transition), 'sync' : self.syncToSimpleDict(), 'activity': activityName(self.activity), 'alloc' : self.allocInfo.toSimpleDict() }
299 

Member Data Documentation

◆ activity

edmModuleAllocMonitorAnalyze.ModuleData.activity

◆ allocInfo

edmModuleAllocMonitorAnalyze.ModuleData.allocInfo

◆ record

edmModuleAllocMonitorAnalyze.ModuleData.record

◆ sync

edmModuleAllocMonitorAnalyze.ModuleData.sync

◆ timeRange

edmModuleAllocMonitorAnalyze.ModuleData.timeRange

◆ transition

edmModuleAllocMonitorAnalyze.ModuleData.transition

Definition at line 277 of file edmModuleAllocMonitorAnalyze.py.

Referenced by edmModuleAllocMonitorAnalyze.ModuleData.__repr__(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonVis(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonVis(), 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(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.textPrefix(), and edmModuleAllocMonitorAnalyze.ModuleData.toSimpleDict().