CMS 3D CMS Logo

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

◆ timedMeasurement

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::DTHVAbstractCheck ( )

Constructor

Definition at line 31 of file DTHVAbstractCheck.cc.

31 {}

◆ ~DTHVAbstractCheck()

DTHVAbstractCheck::~DTHVAbstractCheck ( )
virtual

Destructor

Definition at line 36 of file DTHVAbstractCheck.cc.

36 {}

Member Function Documentation

◆ checkCurrentStatus()

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

◆ chkFlag()

bool DTHVAbstractCheck::chkFlag ( const DTHVAbstractCheck::flag f)
static

Definition at line 43 of file DTHVAbstractCheck.cc.

References f.

43 { return (f.a || f.c || f.s); }
double f[11][100]

◆ compare()

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 }

◆ getInstance()

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

◆ setStatus()

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 }

◆ setValue()

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.

Referenced by Types._ProxyParameter::__init__().

56  {
57  return;
58 }

Member Data Documentation

◆ instance

DTHVAbstractCheck * DTHVAbstractCheck::instance = nullptr
staticprotected