CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes
DTHVAbstractCheck Class Referenceabstract

#include <DTHVAbstractCheck.h>

Inheritance diagram for DTHVAbstractCheck:
cond::service::DTHVCheckByAbsoluteValues cond::service::DTHVCheckWithHysteresis

Classes

struct  flag
 

Public Types

typedef std::pair< long long
int, float > 
timedMeasurement
 check HV status More...
 

Public Member Functions

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
 
 DTHVAbstractCheck ()
 
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 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)
 
virtual ~DTHVAbstractCheck ()
 

Static Public Member Functions

static bool chkFlag (const DTHVAbstractCheck::flag &f)
 
static bool compare (const DTHVAbstractCheck::flag &fl, const DTHVAbstractCheck::flag &fr)
 
static DTHVAbstractCheckgetInstance ()
 check HV status More...
 

Static Protected Attributes

static DTHVAbstractCheckinstance = nullptr
 

Detailed Description

Description:

Date:
2010/04/02 10:30:58
Revision:
1.2
Author
Paolo Ronchese INFN Padova

Definition at line 31 of file DTHVAbstractCheck.h.

Member Typedef Documentation

typedef std::pair<long long int, float> DTHVAbstractCheck::timedMeasurement

check HV status

Definition at line 47 of file DTHVAbstractCheck.h.

Constructor & Destructor Documentation

DTHVAbstractCheck::DTHVAbstractCheck ( )

Constructor

Definition at line 31 of file DTHVAbstractCheck.cc.

31 {}
DTHVAbstractCheck::~DTHVAbstractCheck ( )
virtual

Destructor

Definition at line 36 of file DTHVAbstractCheck.cc.

36 {}

Member Function Documentation

virtual DTHVAbstractCheck::flag DTHVAbstractCheck::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 
)
pure virtual
bool DTHVAbstractCheck::chkFlag ( const DTHVAbstractCheck::flag f)
static
bool DTHVAbstractCheck::compare ( const DTHVAbstractCheck::flag fl,
const DTHVAbstractCheck::flag fr 
)
static

Definition at line 45 of file DTHVAbstractCheck.cc.

References DTHVAbstractCheck::flag::a, DTHVAbstractCheck::flag::c, and DTHVAbstractCheck::flag::s.

Referenced by DTHVStatusHandler::checkStatusChange().

45  {
46  return ((fl.a == fr.a) && (fl.c == fr.c) && (fl.s == fr.s));
47 }
DTHVAbstractCheck * DTHVAbstractCheck::getInstance ( )
static

check HV status

Operations

Definition at line 41 of file DTHVAbstractCheck.cc.

References instance.

Referenced by DTHVStatusHandler::DTHVStatusHandler().

41 { return instance; }
static DTHVAbstractCheck * instance
void DTHVAbstractCheck::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

Reimplemented in cond::service::DTHVCheckWithHysteresis.

Definition at line 60 of file DTHVAbstractCheck.cc.

Referenced by DTHVStatusHandler::getNewObjects().

66  {
67  return;
68 }
void DTHVAbstractCheck::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 
)
virtual

Definition at line 49 of file DTHVAbstractCheck.cc.

56  {
57  return;
58 }

Member Data Documentation

DTHVAbstractCheck * DTHVAbstractCheck::instance = nullptr
staticprotected