CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes

DTHVAbstractCheck Class Reference

#include <DTHVAbstractCheck.h>

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

List of all members.

Classes

struct  flag

Public Types

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

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

Static Protected Attributes

static DTHVAbstractCheckinstance = 0

Detailed Description

Description:

Date:
2010/09/14 13:54:04
Revision:
1.3
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.

                                     {
}
DTHVAbstractCheck::~DTHVAbstractCheck ( ) [virtual]

Destructor

Definition at line 39 of file DTHVAbstractCheck.cc.

                                      {
}

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]

Definition at line 50 of file DTHVAbstractCheck.cc.

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

                                                                {
  return ( f.a || f.c || f.s );
}
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().

                                                                   {
  return ( ( fl.a == fr.a ) &&
           ( fl.c == fr.c ) &&
           ( fl.s == fr.s ) );
}
DTHVAbstractCheck * DTHVAbstractCheck::getInstance ( ) [static]

check HV status

Operations

Definition at line 45 of file DTHVAbstractCheck.cc.

References instance.

Referenced by DTHVStatusHandler::DTHVStatusHandler().

                                                  {
  return 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().

                                                          {
  return;
}
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 63 of file DTHVAbstractCheck.cc.

                                                          {
  return;
}

Member Data Documentation