Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:46

0001 /*
0002  *  See header file for a description of this class.
0003  *
0004  *  $Date: 2010/01/18 18:59:54 $
0005  *  $Revision: 1.1 $
0006  *  \author Paolo Ronchese INFN Padova
0007  *
0008  */
0009 
0010 //-----------------------
0011 // This Class' Header --
0012 //-----------------------
0013 #include "CondTools/DT/interface/DTHVAbstractCheck.h"
0014 
0015 //-------------------------------
0016 // Collaborating Class Headers --
0017 //-------------------------------
0018 
0019 //---------------
0020 // C++ Headers --
0021 //---------------
0022 
0023 //-------------------
0024 // Initializations --
0025 //-------------------
0026 DTHVAbstractCheck* DTHVAbstractCheck::instance = nullptr;
0027 
0028 //----------------
0029 // Constructors --
0030 //----------------
0031 DTHVAbstractCheck::DTHVAbstractCheck() {}
0032 
0033 //--------------
0034 // Destructor --
0035 //--------------
0036 DTHVAbstractCheck::~DTHVAbstractCheck() {}
0037 
0038 //--------------
0039 // Operations --
0040 //--------------
0041 DTHVAbstractCheck* DTHVAbstractCheck::getInstance() { return instance; }
0042 
0043 bool DTHVAbstractCheck::chkFlag(const DTHVAbstractCheck::flag& f) { return (f.a || f.c || f.s); }
0044 
0045 bool DTHVAbstractCheck::compare(const DTHVAbstractCheck::flag& fl, const DTHVAbstractCheck::flag& fr) {
0046   return ((fl.a == fr.a) && (fl.c == fr.c) && (fl.s == fr.s));
0047 }
0048 
0049 void DTHVAbstractCheck::setValue(int rawId,
0050                                  int type,
0051                                  float valueA,
0052                                  float valueC,
0053                                  float valueS,
0054                                  const std::map<int, timedMeasurement>& snapshotValues,
0055                                  const std::map<int, int>& aliasMap,
0056                                  const std::map<int, int>& layerMap) {
0057   return;
0058 }
0059 
0060 void DTHVAbstractCheck::setStatus(int rawId,
0061                                   int flagA,
0062                                   int flagC,
0063                                   int flagS,
0064                                   const std::map<int, timedMeasurement>& snapshotValues,
0065                                   const std::map<int, int>& aliasMap,
0066                                   const std::map<int, int>& layerMap) {
0067   return;
0068 }