Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-02 03:39:00

0001 #ifndef CondTools_Ecal_EcalErrorMask_H
0002 #define CondTools_Ecal_EcalErrorMask_H
0003 
0004 #include <cstdlib>
0005 #include <map>
0006 #include "OnlineDB/EcalCondDB/interface/RunCrystalErrorsDat.h"
0007 #include "OnlineDB/EcalCondDB/interface/RunTTErrorsDat.h"
0008 #include "OnlineDB/EcalCondDB/interface/RunPNErrorsDat.h"
0009 #include "OnlineDB/EcalCondDB/interface/RunMemChErrorsDat.h"
0010 #include "OnlineDB/EcalCondDB/interface/RunMemTTErrorsDat.h"
0011 
0012 class EcalCondDBInterface;
0013 class EcalLogicID;
0014 class RunIOV;
0015 
0016 class EcalErrorMask {
0017 public:
0018   void readDB(EcalCondDBInterface* eConn, RunIOV* runIOV) noexcept(false);
0019 
0020   void fetchDataSet(std::map<EcalLogicID, RunCrystalErrorsDat>* fillMap);
0021   void fetchDataSet(std::map<EcalLogicID, RunTTErrorsDat>* fillMap);
0022   void fetchDataSet(std::map<EcalLogicID, RunPNErrorsDat>* fillMap);
0023   void fetchDataSet(std::map<EcalLogicID, RunMemChErrorsDat>* fillMap);
0024   void fetchDataSet(std::map<EcalLogicID, RunMemTTErrorsDat>* fillMap);
0025 
0026 private:
0027   int runNb_;
0028 
0029   std::map<EcalLogicID, RunCrystalErrorsDat> mapCrystalErrors_;
0030   std::map<EcalLogicID, RunTTErrorsDat> mapTTErrors_;
0031   std::map<EcalLogicID, RunPNErrorsDat> mapPNErrors_;
0032   std::map<EcalLogicID, RunMemChErrorsDat> mapMemChErrors_;
0033   std::map<EcalLogicID, RunMemTTErrorsDat> mapMemTTErrors_;
0034 };
0035 
0036 #endif  // CondTools_Ecal_EcalErrorMask_H