CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self)
 
def add (self, item)
 
def remove (self, item)
 

Private Attributes

 __itemsAndCount
 

Detailed Description

Definition at line 603 of file edmStreamStallGrapher.py.

Constructor & Destructor Documentation

◆ __init__()

def edmStreamStallGrapher.RefCountSet.__init__ (   self)

Definition at line 604 of file edmStreamStallGrapher.py.

604  def __init__(self):
605  super().__init__()
606  self.__itemsAndCount = dict()
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

◆ add()

def edmStreamStallGrapher.RefCountSet.add (   self,
  item 
)

Definition at line 607 of file edmStreamStallGrapher.py.

References edmStreamStallGrapher.RefCountSet.__itemsAndCount.

Referenced by counter.Counter.register(), SequenceTypes._TaskBase.remove(), and SequenceTypes._TaskBase.replace().

607  def add(self, item):
608  v = self.__itemsAndCount.setdefault(item,0)
609  self.__itemsAndCount[item]=v+1
610  return super().add(item)
void add(std::map< std::string, TH1 *> &h, TH1 *hist)

◆ remove()

def edmStreamStallGrapher.RefCountSet.remove (   self,
  item 
)

Definition at line 611 of file edmStreamStallGrapher.py.

References edmStreamStallGrapher.RefCountSet.__itemsAndCount.

611  def remove(self, item):
612  v = self.__itemsAndCount[item]
613  if v == 1:
614  del self.__itemsAndCount[item]
615  super().remove(item)
616  else:
617  self.__itemsAndCount[item]=v-1
618 
619 
def remove(d, key, TELL=False)
Definition: MatrixUtil.py:223

Member Data Documentation

◆ __itemsAndCount

edmStreamStallGrapher.RefCountSet.__itemsAndCount
private