CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTHVAbstractCheck.h
Go to the documentation of this file.
1 #ifndef DTHVAbstractCheck_H
2 #define DTHVAbstractCheck_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 #include <map>
26 
27 // ---------------------
28 // -- Class Interface --
29 // ---------------------
30 
32 public:
36 
39  virtual ~DTHVAbstractCheck();
40 
45 
47  typedef std::pair<long long int, float> timedMeasurement;
48  struct flag {
49  int a;
50  int c;
51  int s;
52  };
53  static bool chkFlag(const DTHVAbstractCheck::flag& f);
54  static bool compare(const DTHVAbstractCheck::flag& fl, const DTHVAbstractCheck::flag& fr);
56  int type,
57  float valueA,
58  float valueC,
59  float valueS,
60  const std::map<int, timedMeasurement>& snapshotValues,
61  const std::map<int, int>& aliasMap,
62  const std::map<int, int>& layerMap) = 0;
63  virtual void setValue(int rawId,
64  int type,
65  float valueA,
66  float valueC,
67  float valueS,
68  const std::map<int, timedMeasurement>& snapshotValues,
69  const std::map<int, int>& aliasMap,
70  const std::map<int, int>& layerMap);
71  virtual void setStatus(int rawId,
72  int flagA,
73  int flagC,
74  int flagS,
75  const std::map<int, timedMeasurement>& snapshotValues,
76  const std::map<int, int>& aliasMap,
77  const std::map<int, int>& layerMap);
78 
79 protected:
81 
82 private:
83 };
84 
85 #endif // DTHVAbstractCheck_H
static bool chkFlag(const DTHVAbstractCheck::flag &f)
virtual void setStatus(int rawId, int flagA, int flagC, int flagS, const std::map< int, timedMeasurement > &snapshotValues, const std::map< int, int > &aliasMap, const std::map< int, int > &layerMap)
virtual DTHVAbstractCheck::flag checkCurrentStatus(int rawId, int type, float valueA, float valueC, float valueS, const std::map< int, timedMeasurement > &snapshotValues, const std::map< int, int > &aliasMap, const std::map< int, int > &layerMap)=0
static bool compare(const DTHVAbstractCheck::flag &fl, const DTHVAbstractCheck::flag &fr)
virtual ~DTHVAbstractCheck()
static DTHVAbstractCheck * getInstance()
check HV status
static DTHVAbstractCheck * instance
std::pair< long long int, float > timedMeasurement
check HV status
virtual void setValue(int rawId, int type, float valueA, float valueC, float valueS, const std::map< int, timedMeasurement > &snapshotValues, const std::map< int, int > &aliasMap, const std::map< int, int > &layerMap)