CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/CondTools/DT/interface/DTHVAbstractCheck.h

Go to the documentation of this file.
00001 #ifndef DTHVAbstractCheck_H
00002 #define DTHVAbstractCheck_H
00003 
00014 //----------------------
00015 // Base Class Headers --
00016 //----------------------
00017 
00018 
00019 //------------------------------------
00020 // Collaborating Class Declarations --
00021 //------------------------------------
00022 
00023 
00024 //---------------
00025 // C++ Headers --
00026 //---------------
00027 #include <map>
00028 
00029 //              ---------------------
00030 //              -- Class Interface --
00031 //              ---------------------
00032 
00033 class DTHVAbstractCheck {
00034 
00035  public:
00036 
00039   DTHVAbstractCheck();
00040 
00043   virtual ~DTHVAbstractCheck();
00044 
00047 
00048   static DTHVAbstractCheck* getInstance();
00049 
00051   typedef std::pair<long long int,float> timedMeasurement;
00052   struct flag { int a; int c; int s; };
00053   static bool chkFlag( const DTHVAbstractCheck::flag& f );
00054   static bool compare( const DTHVAbstractCheck::flag& fl,
00055                        const DTHVAbstractCheck::flag& fr );
00056   virtual DTHVAbstractCheck::flag checkCurrentStatus( 
00057                int rawId, int type,
00058                float valueA, float valueC, float valueS,
00059                const std::map<int,timedMeasurement>& snapshotValues,
00060                const std::map<int,int>& aliasMap,
00061                const std::map<int,int>& layerMap ) = 0;
00062   virtual void setValue(
00063                int rawId, int type,
00064                float valueA, float valueC, float valueS,
00065                const std::map<int,timedMeasurement>& snapshotValues,
00066                const std::map<int,int>& aliasMap,
00067                const std::map<int,int>& layerMap );
00068   virtual void setStatus(
00069                int rawId,
00070                int flagA, int flagC, int flagS,
00071                const std::map<int,timedMeasurement>& snapshotValues,
00072                const std::map<int,int>& aliasMap,
00073                const std::map<int,int>& layerMap );
00074 
00075  protected:
00076 
00077   static DTHVAbstractCheck* instance;
00078 
00079  private:
00080 
00081 };
00082 
00083 
00084 #endif // DTHVAbstractCheck_H
00085 
00086 
00087 
00088 
00089 
00090