CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 85 of file counter.py.

Constructor & Destructor Documentation

def counter.Counters.__init__ (   self)

Definition at line 90 of file counter.py.

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

Member Function Documentation

def counter.Counters.__getitem__ (   self,
  name 
)

Definition at line 108 of file counter.py.

References lhef::H5Handler.counter(), RPCRecHitProbability.counter, HLTLogMonitorFilter::CategoryEntry.counter, RPCMonitorDigi.counter, cms::cuda::AtomicPairCounter.counter, DTNoiseComputation.counter, DTDataIntegrityTest.counter, FFTJetImageRecorder.counter, edm::DocFormatHelper.counter(), counter.Counters.counter(), FFTJetPileupAnalyzer.counter, FFTJetTreeDump.counter, and HLXMonitor.counter.

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

Definition at line 104 of file counter.py.

References cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, and join().

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

Definition at line 94 of file counter.py.

References cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, and counter.Counters.ranks.

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

Definition at line 98 of file counter.py.

References cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, and counter.Counters.ranks.

Referenced by counter.Counters.__getitem__().

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

Definition at line 101 of file counter.py.

References cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, and cscdqm::ChamberCounterKeyType.counters.

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

Member Data Documentation

counter.Counters.counters

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

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