Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:57

0001 #ifndef RUNCRYSTALERRORSDAT_H
0002 #define RUNCRYSTALERRORSDAT_H
0003 
0004 #include <vector>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/RunIOV.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010 #include <cstdint>
0011 
0012 class RunCrystalErrorsDat : public IDataItem {
0013 public:
0014   friend class EcalCondDBInterface;
0015   RunCrystalErrorsDat();
0016   ~RunCrystalErrorsDat() override;
0017 
0018   // User data methods
0019   inline std::string getTable() override { return "RUN_CRYSTAL_ERRORS_DAT"; }
0020 
0021   inline void setErrorBits(uint64_t bits) { m_errorBits = bits; }
0022   inline uint64_t getErrorBits() const { return m_errorBits; }
0023 
0024 private:
0025   void prepareWrite() noexcept(false) override;
0026 
0027   void writeDB(const EcalLogicID* ecid, const RunCrystalErrorsDat* item, RunIOV* iov) noexcept(false);
0028 
0029   void fetchData(std::map<EcalLogicID, RunCrystalErrorsDat>* fillMap, RunIOV* iov) noexcept(false);
0030 
0031   // User data
0032   uint64_t m_errorBits;
0033 };
0034 
0035 #endif