CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/Alignment/CommonAlignment/interface/Counters.h

Go to the documentation of this file.
00001 #ifndef Alignment_CommonAlignment_Counters_H
00002 #define Alignment_CommonAlignment_Counters_H
00003 
00019 #include <map>
00020 
00021 #include "Alignment/CommonAlignment/interface/StructureType.h"
00022 #include "CondFormats/Alignment/interface/Definitions.h"
00023 
00024 namespace align
00025 {
00026   typedef unsigned int (*Counter)(align::ID);
00027 }
00028 
00029 class Counters
00030 {
00031   public:
00032 
00034   Counters() {}
00035 
00036   virtual ~Counters() {}
00037 
00039   virtual align::Counter get( align::StructureType ) const;
00040 
00041 protected:
00042   std::map<align::StructureType, align::Counter> theCounters;
00043 
00044 };
00045 
00046 #endif