CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTHVCheckWithHysteresis.h
Go to the documentation of this file.
1 #ifndef DTHVCheckWithHysteresis_H
2 #define DTHVCheckWithHysteresis_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
22 namespace edm {
23  // class Event;
24  // class EventSetup;
25  class ParameterSet;
26  class ActivityRegistry;
27 } // namespace edm
28 
29 //---------------
30 // C++ Headers --
31 //---------------
32 #include <map>
33 
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
38 namespace cond {
39  namespace service {
41  public:
46 
49  ~DTHVCheckWithHysteresis() override;
50 
53  // virtual int checkCurrentStatus(
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) override;
63  void setStatus(int rawId,
64  int flagA,
65  int flagC,
66  int flagS,
67  const std::map<int, timedMeasurement>& snapshotValues,
68  const std::map<int, int>& aliasMap,
69  const std::map<int, int>& layerMap) override;
70 
71  private:
72  float* minHVl;
73  float* minHVh;
74  float* maxHV;
75  float maxCurrent;
76  std::map<int, int>* oldStatusA;
77  std::map<int, int>* oldStatusC;
78  std::map<int, int>* oldStatusS;
79  };
80 
81  } // namespace service
82 } // namespace cond
83 
84 #endif // DTHVCheckWithHysteresis_H
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) override
check HV status
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) override