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 84 of file counter.py.

Constructor & Destructor Documentation

def counter.Counters.__init__ (   self)

Definition at line 89 of file counter.py.

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

Member Function Documentation

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

Definition at line 103 of file counter.py.

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

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

Definition at line 93 of file counter.py.

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

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

Definition at line 100 of file counter.py.

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

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

Member Data Documentation

counter.Counters.counters
counter.Counters.ranks

Definition at line 91 of file counter.py.

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