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

Constructor & Destructor Documentation

def counter.Counters.__init__ (   self)

Definition at line 93 of file counter.py.

93 
94  def __init__( self ):
95  self.counters = []
96  self.ranks = {}

Member Function Documentation

def counter.Counters.__getitem__ (   self,
  name 
)

Definition at line 111 of file counter.py.

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

112  def __getitem__(self, name):
113  return self.counter(name)
def counter.Counters.__str__ (   self)

Definition at line 107 of file counter.py.

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

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

Definition at line 97 of file counter.py.

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

97 
98  def addCounter(self, name):
99  self.ranks[ name ] = len( self.counters )
100  self.counters.append( Counter(name) )
def counter.Counters.counter (   self,
  name 
)

Definition at line 101 of file counter.py.

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

Referenced by counter.Counters.__getitem__().

102  def counter(self, name):
103  return self.counters[ self.ranks[name] ]
def counter.Counters.write (   self,
  dirname 
)

Definition at line 104 of file counter.py.

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

105  def write(self, dirname):
106  map( lambda x: x.write(dirname), self.counters)

Member Data Documentation

counter.Counters.counters

Definition at line 94 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 95 of file counter.py.

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