CMS 3D CMS Logo

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
DTHVAbstractCheck::chkFlag
static bool chkFlag(const DTHVAbstractCheck::flag &f)
Definition: DTHVAbstractCheck.cc:43
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
DTHVAbstractCheck::setStatus
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)
Definition: DTHVAbstractCheck.cc:60
DTHVAbstractCheck::compare
static bool compare(const DTHVAbstractCheck::flag &fl, const DTHVAbstractCheck::flag &fr)
Definition: DTHVAbstractCheck.cc:45
DTHVAbstractCheck
Definition: DTHVAbstractCheck.h:31
DTHVAbstractCheck::flag
Definition: DTHVAbstractCheck.h:48
DTHVAbstractCheck::checkCurrentStatus
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
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
DTHVAbstractCheck::instance
static DTHVAbstractCheck * instance
Definition: DTHVAbstractCheck.h:80
DTHVAbstractCheck::~DTHVAbstractCheck
virtual ~DTHVAbstractCheck()
Definition: DTHVAbstractCheck.cc:36
DTHVAbstractCheck::DTHVAbstractCheck
DTHVAbstractCheck()
Definition: DTHVAbstractCheck.cc:31
DTHVAbstractCheck::flag::c
int c
Definition: DTHVAbstractCheck.h:50
DTHVAbstractCheck::timedMeasurement
std::pair< long long int, float > timedMeasurement
check HV status
Definition: DTHVAbstractCheck.h:47
DTHVAbstractCheck::getInstance
static DTHVAbstractCheck * getInstance()
check HV status
Definition: DTHVAbstractCheck.cc:41
DTHVAbstractCheck::flag::a
int a
Definition: DTHVAbstractCheck.h:49
DTHVAbstractCheck::setValue
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)
Definition: DTHVAbstractCheck.cc:49
DTHVAbstractCheck::flag::s
int s
Definition: DTHVAbstractCheck.h:51