CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
counter.Counters Class Reference
Inheritance diagram for counter.Counters:

Public Member Functions

def __getitem__
 
def __init__
 
def __str__
 
def addCounter
 
def counter
 
def write
 

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 
90  def __init__( self ):
91  self.counters = []
92  self.ranks = {}

Member Function Documentation

def counter.Counters.__getitem__ (   self,
  name 
)

Definition at line 107 of file counter.py.

References RPCRecHitProbability.counter, ZMuMuUserData.counter, ZMuMuUserDataOneTrack.counter, ZMuMuSaMassHistogram.counter, HLTLogMonitorFilter::CategoryEntry.counter, ZToLLEdmNtupleDumper.counter, RPCMonitorDigi.counter, DTNoiseComputation.counter, DTDataIntegrityTest.counter, FFTJetImageRecorder.counter, edm::DocFormatHelper.counter(), counter.Counters.counter(), FFTJetPileupAnalyzer.counter, FFTJetTreeDump.counter, RPCEfficiency.counter, FastTimerService::ModuleInfo.counter, and HLXMonitor.counter.

108  def __getitem__(self, name):
109  return self.counter(name)
110 
def counter.Counters.__str__ (   self)

Definition at line 103 of file counter.py.

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

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

Definition at line 93 of file counter.py.

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

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

Definition at line 97 of file counter.py.

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

Referenced by counter.Counters.__getitem__().

97 
98  def counter(self, name):
99  return self.counters[ self.ranks[name] ]
def counter.Counters.write (   self,
  dirname 
)

Definition at line 100 of file counter.py.

References NMaxPerLumi.counters, analyzer.Analyzer.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, and python.multivaluedict.map().

101  def write(self, dirname):
102  map( lambda x: x.write(dirname), self.counters)

Member Data Documentation

counter.Counters.counters

Definition at line 90 of file counter.py.

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

counter.Counters.ranks

Definition at line 91 of file counter.py.

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