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 608 of file edmStreamStallGrapher.py.

Constructor & Destructor Documentation

◆ __init__()

def edmStreamStallGrapher.RefCountSet.__init__ (   self)

Definition at line 609 of file edmStreamStallGrapher.py.

609  def __init__(self):
610  super().__init__()
611  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 612 of file edmStreamStallGrapher.py.

References edmStreamStallGrapher.RefCountSet.__itemsAndCount.

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

612  def add(self, item):
613  v = self.__itemsAndCount.setdefault(item,0)
614  self.__itemsAndCount[item]=v+1
615  return super().add(item)
void add(std::map< std::string, TH1 *> &h, TH1 *hist)

◆ remove()

def edmStreamStallGrapher.RefCountSet.remove (   self,
  item 
)

Definition at line 616 of file edmStreamStallGrapher.py.

References edmStreamStallGrapher.RefCountSet.__itemsAndCount.

616  def remove(self, item):
617  v = self.__itemsAndCount[item]
618  if v == 1:
619  del self.__itemsAndCount[item]
620  super().remove(item)
621  else:
622  self.__itemsAndCount[item]=v-1
623 
624 
def remove(d, key, TELL=False)
Definition: MatrixUtil.py:223

Member Data Documentation

◆ __itemsAndCount

edmStreamStallGrapher.RefCountSet.__itemsAndCount
private