CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, payload)
 
def __repr__ (self)
 
def inject (self, transition)
 
def toSimpleDict (self)
 

Public Attributes

 added
 
 max1Alloc
 
 maxTemp
 
 minTemp
 
 nAllocs
 
 nDeallocs
 

Detailed Description

Definition at line 194 of file edmModuleAllocMonitorAnalyze.py.

Constructor & Destructor Documentation

◆ __init__()

def edmModuleAllocMonitorAnalyze.AllocInfo.__init__ (   self,
  payload 
)

Definition at line 195 of file edmModuleAllocMonitorAnalyze.py.

195  def __init__(self,payload):
196  self.nAllocs = int(payload[0])
197  self.nDeallocs = int(payload[1])
198  self.added = int(payload[2])
199  self.minTemp = int(payload[3])
200  self.maxTemp = int(payload[4])
201  self.max1Alloc = int(payload[5])
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.AllocInfo.__repr__ (   self)

Definition at line 209 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.AllocInfo.added, edmModuleAllocMonitorAnalyze.AllocInfo.max1Alloc, edmModuleAllocMonitorAnalyze.AllocInfo.maxTemp, edmModuleAllocMonitorAnalyze.AllocInfo.minTemp, edmModuleAllocMonitorAnalyze.AllocInfo.nAllocs, and edmModuleAllocMonitorAnalyze.AllocInfo.nDeallocs.

Referenced by datamodel.Object.__str__().

209  def __repr__(self):
210  return "{{'nAlloc': {}, 'nDealloc': {}, 'added': {}, 'minTemp': {}, 'maxTemp': {}, 'max1Alloc': {} }}".format(self.nAllocs, self.nDeallocs, self.added, self.minTemp, self.maxTemp, self.max1Alloc)

◆ inject()

def edmModuleAllocMonitorAnalyze.AllocInfo.inject (   self,
  transition 
)

Definition at line 202 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.AllocInfo.added, edmModuleAllocMonitorAnalyze.AllocInfo.max1Alloc, edmModuleAllocMonitorAnalyze.AllocInfo.maxTemp, edmModuleAllocMonitorAnalyze.AllocInfo.minTemp, edmModuleAllocMonitorAnalyze.AllocInfo.nAllocs, and edmModuleAllocMonitorAnalyze.AllocInfo.nDeallocs.

202  def inject(self, transition):
203  transition["nAllocs"]=self.nAllocs
204  transition["nDeallocs"]=self.nDeallocs
205  transition["added"]=self.added
206  transition["minTemp"]=self.minTemp
207  transition["maxTemp"]=self.maxTemp
208  transition["max1Alloc"]=self.max1Alloc

◆ toSimpleDict()

def edmModuleAllocMonitorAnalyze.AllocInfo.toSimpleDict (   self)

Definition at line 211 of file edmModuleAllocMonitorAnalyze.py.

References edmModuleAllocMonitorAnalyze.AllocInfo.added, edmModuleAllocMonitorAnalyze.AllocInfo.max1Alloc, edmModuleAllocMonitorAnalyze.AllocInfo.maxTemp, edmModuleAllocMonitorAnalyze.AllocInfo.minTemp, edmModuleAllocMonitorAnalyze.AllocInfo.nAllocs, and edmModuleAllocMonitorAnalyze.AllocInfo.nDeallocs.

211  def toSimpleDict(self):
212  return {'nAlloc' : self.nAllocs, 'nDealloc' :self.nDeallocs, 'added' : self.added, 'minTemp' : self.minTemp, 'maxTemp' : self.maxTemp, 'max1Alloc' : self.max1Alloc }
213 

Member Data Documentation

◆ added

edmModuleAllocMonitorAnalyze.AllocInfo.added

◆ max1Alloc

edmModuleAllocMonitorAnalyze.AllocInfo.max1Alloc

◆ maxTemp

edmModuleAllocMonitorAnalyze.AllocInfo.maxTemp

◆ minTemp

edmModuleAllocMonitorAnalyze.AllocInfo.minTemp

◆ nAllocs

edmModuleAllocMonitorAnalyze.AllocInfo.nAllocs

◆ nDeallocs

edmModuleAllocMonitorAnalyze.AllocInfo.nDeallocs