test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 = 0
 

Detailed Description

Description:

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

Definition at line 33 of file DTHVAbstractCheck.h.

Member Typedef Documentation

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

check HV status

Definition at line 51 of file DTHVAbstractCheck.h.

Constructor & Destructor Documentation

DTHVAbstractCheck::DTHVAbstractCheck ( )

Constructor

Definition at line 33 of file DTHVAbstractCheck.cc.

33  {
34 }
DTHVAbstractCheck::~DTHVAbstractCheck ( )
virtual

Destructor

Definition at line 39 of file DTHVAbstractCheck.cc.

39  {
40 }

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 55 of file DTHVAbstractCheck.cc.

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

Referenced by DTHVStatusHandler::checkStatusChange().

56  {
57  return ( ( fl.a == fr.a ) &&
58  ( fl.c == fr.c ) &&
59  ( fl.s == fr.s ) );
60 }
DTHVAbstractCheck * DTHVAbstractCheck::getInstance ( )
static

check HV status

Operations

Definition at line 45 of file DTHVAbstractCheck.cc.

References instance.

Referenced by DTHVStatusHandler::DTHVStatusHandler().

45  {
46  return instance;
47 }
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 73 of file DTHVAbstractCheck.cc.

Referenced by DTHVStatusHandler::getNewObjects().

78  {
79  return;
80 }
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

Member Data Documentation

DTHVAbstractCheck * DTHVAbstractCheck::instance = 0
staticprotected