CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self)
 
def __repr__ (self)
 
def data (self)
 
def findLast (self, label, transition, index, activity)
 
def insert (self, label, start, stop, transition, index, sync, activity, allocInfo, recordName=None, callID=None)
 
def setStartTime (self, time)
 
def sortModulesBy (self, attribute)
 
def toSimpleDict (self)
 

Private Attributes

 _data
 
 _last
 
 _startTime
 

Detailed Description

Definition at line 301 of file edmModuleAllocMonitorAnalyze.py.

Constructor & Destructor Documentation

◆ __init__()

def edmModuleAllocMonitorAnalyze.ModuleCentricModuleData.__init__ (   self)

Definition at line 302 of file edmModuleAllocMonitorAnalyze.py.

302  def __init__(self):
303  self._data = {}
304  self._last = {}
305  self._startTime = None
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.ModuleCentricModuleData.__repr__ (   self)

◆ data()

def edmModuleAllocMonitorAnalyze.ModuleCentricModuleData.data (   self)

◆ findLast()

def edmModuleAllocMonitorAnalyze.ModuleCentricModuleData.findLast (   self,
  label,
  transition,
  index,
  activity 
)

Definition at line 313 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._last.

313  def findLast(self, label, transition, index, activity):
314  return self._last[(label, transition, index, activity)]

◆ insert()

def edmModuleAllocMonitorAnalyze.ModuleCentricModuleData.insert (   self,
  label,
  start,
  stop,
  transition,
  index,
  sync,
  activity,
  allocInfo,
  recordName = None,
  callID = None 
)

Definition at line 308 of file edmModuleAllocMonitorAnalyze.py.

References data_sources.node._data, SeedingNode< DATA >._data, XML2Python.DataNode._data, data_sources.json_file._data, data_sources.sqlite_schema._data, data_sources.json_data_node._data, DTBtiTrig._data, data_sources.json_list._data, DTTracoTrig._data, conddb2hdf5.DBPayload._data, edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._data, data_sources.json_dict._data, data_sources.json_basic._data, BitArray< N >._data, DTTFBitArray< N >._data, edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._last, and mps_setup.append.

308  def insert(self, label, start, stop, transition, index, sync, activity, allocInfo, recordName=None, callID=None):
309  if label not in self._data:
310  self._data[label] = []
311  self._data[label].append(ModuleData(start, stop, transition, sync, activity, allocInfo, recordName, callID))
312  self._last[(label, transition, index, activity)] = self._data[label][-1]
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
Definition: HCMethods.h:50

◆ setStartTime()

def edmModuleAllocMonitorAnalyze.ModuleCentricModuleData.setStartTime (   self,
  time 
)

Definition at line 306 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._startTime.

306  def setStartTime(self, time):
307  self._startTime = time

◆ sortModulesBy()

def edmModuleAllocMonitorAnalyze.ModuleCentricModuleData.sortModulesBy (   self,
  attribute 
)

◆ toSimpleDict()

def edmModuleAllocMonitorAnalyze.ModuleCentricModuleData.toSimpleDict (   self)

Definition at line 319 of file edmModuleAllocMonitorAnalyze.py.

References data_sources.node._data, SeedingNode< DATA >._data, XML2Python.DataNode._data, data_sources.json_file._data, data_sources.sqlite_schema._data, data_sources.json_data_node._data, DTBtiTrig._data, data_sources.json_list._data, DTTracoTrig._data, conddb2hdf5.DBPayload._data, edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._data, data_sources.json_dict._data, data_sources.json_basic._data, BitArray< N >._data, DTTFBitArray< N >._data, edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._startTime, and mps_monitormerge.items.

Referenced by edmModuleAllocMonitorAnalyze.ModuleCentricModuleData.sortModulesBy().

319  def toSimpleDict(self):
320  dct = {'startedMonitoring': self._startTime, 'source' :[], 'clearEvent': [], 'modules' :{}}
321  modules = dct['modules']
322  for m,lst in self._data.items():
323  l = None
324  if m == 'source':
325  l = dct['source']
326  elif m == 'clearEvent':
327  l = dct['clearEvent']
328  else:
329  modules[m]=[]
330  l = modules[m]
331  for d in lst:
332  l.append( d.toSimpleDict() )
333  return dct

Member Data Documentation

◆ _data

edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._data
private

◆ _last

edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._last
private

◆ _startTime

edmModuleAllocMonitorAnalyze.ModuleCentricModuleData._startTime
private