CMS 3D CMS Logo

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

Public Member Functions

def __getitem__ (self, name)
 
def __init__ (self)
 
def __str__ (self)
 
def addCounter (self, name)
 
def counter (self, name)
 
def write (self, dirname)
 

Public Attributes

 counters
 
 ranks
 

Detailed Description

TODO: could be a diclist? 

Definition at line 85 of file counter.py.

Constructor & Destructor Documentation

def counter.Counters.__init__ (   self)

Definition at line 90 of file counter.py.

90  def __init__( self ):
91  self.counters = []
92  self.ranks = {}
93 
def __init__(self)
Definition: counter.py:90

Member Function Documentation

def counter.Counters.__getitem__ (   self,
  name 
)
def counter.Counters.__str__ (   self)

Definition at line 104 of file counter.py.

References NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, join(), and genParticles_cff.map.

104  def __str__(self):
105  prints = map( str, self.counters )
106  return '\n'.join(prints)
107 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def __str__(self)
Definition: counter.py:104
def counter.Counters.addCounter (   self,
  name 
)

Definition at line 94 of file counter.py.

References NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, and counter.Counters.ranks.

94  def addCounter(self, name):
95  self.ranks[ name ] = len( self.counters )
96  self.counters.append( Counter(name) )
97 
def addCounter(self, name)
Definition: counter.py:94
def counter.Counters.counter (   self,
  name 
)
def counter.Counters.write (   self,
  dirname 
)

Definition at line 101 of file counter.py.

References NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, and genParticles_cff.map.

101  def write(self, dirname):
102  map( lambda x: x.write(dirname), self.counters)
103 
def write(self, dirname)
Definition: counter.py:101

Member Data Documentation

counter.Counters.counters
counter.Counters.ranks

Definition at line 92 of file counter.py.

Referenced by counter.Counters.addCounter(), and counter.Counters.counter().