#include <Counters.h>
Public Member Functions | |
Counters () | |
Counters (int) | |
Counters () | |
Build the counters map. More... | |
void | evalCounters () |
virtual align::Counter | get (align::StructureType) const |
Get a counter based on its structure type. More... | |
void | incrementSector (int) |
void | printSummary () |
virtual | ~Counters () |
virtual | ~Counters () |
Public Attributes | |
int | m_farSide |
int | m_nearSide |
std::map< int, int > | m_sector |
int | m_wheel |
int | m_wheelid |
Protected Attributes | |
std::map< align::StructureType, align::Counter > | theCounters |
Class to store a list of counters.
A counter is a pointer to a function that returns the number of an alignable based on its id. The number of an alignable is given by its position within its parent. User gets a counter using its structure type via Counters::get(type). Each sub-system has its own concrete counter class implementation.
Definition at line 29 of file Counters.h.
|
inline |
|
inlinevirtual |
Definition at line 36 of file Counters.h.
Counters::Counters | ( | int | wheel | ) |
Definition at line 19 of file RPCData.cc.
References gen::k, m_farSide, m_nearSide, m_sector, m_wheel, and m_wheelid.
|
virtual |
void Counters::evalCounters | ( | ) |
|
virtual |
Get a counter based on its structure type.
Definition at line 8 of file Counters.cc.
References edm::hlt::Exception, n, and AlignableObjectId::typeToName().
Referenced by Options.Options::__getitem__(), and AlignableBuilder::index().
void Counters::incrementSector | ( | int | sector | ) |
void Counters::printSummary | ( | ) |
Definition at line 77 of file RPCData.cc.
References gather_cfg::cout, m_farSide, m_nearSide, m_sector, m_wheel, and m_wheelid.
int Counters::m_farSide |
Definition at line 40 of file RPCData.h.
Referenced by Counters(), evalCounters(), and printSummary().
int Counters::m_nearSide |
Definition at line 39 of file RPCData.h.
Referenced by Counters(), evalCounters(), and printSummary().
std::map<int,int> Counters::m_sector |
Definition at line 42 of file RPCData.h.
Referenced by Counters(), evalCounters(), incrementSector(), and printSummary().
int Counters::m_wheel |
Definition at line 41 of file RPCData.h.
Referenced by Counters(), evalCounters(), and printSummary().
int Counters::m_wheelid |
Definition at line 38 of file RPCData.h.
Referenced by Counters(), and printSummary().
|
protected |
Definition at line 42 of file Counters.h.