CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Counters.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_Counters_H
2 #define Alignment_CommonAlignment_Counters_H
3 
19 #include <map>
20 
23 
24 class TrackerTopology;
25 namespace align
26 {
27  typedef unsigned int (*Counter)(align::ID, const TrackerTopology*);
28 }
29 
30 class Counters
31 {
32  public:
33 
35  Counters() {}
36 
37  virtual ~Counters() {}
38 
40  virtual align::Counter get( align::StructureType ) const;
41 
42 protected:
43  std::map<align::StructureType, align::Counter> theCounters;
44 
45 };
46 
47 #endif
uint32_t ID
Definition: Definitions.h:26
virtual ~Counters()
Definition: Counters.h:37
std::map< align::StructureType, align::Counter > theCounters
Definition: Counters.h:43
unsigned int(* Counter)(align::ID, const TrackerTopology *)
Definition: Counters.h:27
Counters()
Build the counters map.
Definition: Counters.h:35