Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef MONMEMTTCONSISTENCYDAT_H
0002 #define MONMEMTTCONSISTENCYDAT_H
0003 
0004 #include <map>
0005 #include <stdexcept>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/MonRunTag.h"
0009 #include "OnlineDB/EcalCondDB/interface/MonRunIOV.h"
0010 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0011 
0012 class MonMemTTConsistencyDat : public IDataItem {
0013 public:
0014   friend class EcalCondDBInterface;
0015   MonMemTTConsistencyDat();
0016   ~MonMemTTConsistencyDat() override;
0017 
0018   // User data methods
0019   inline std::string getTable() override { return "MON_MEM_TT_CONSISTENCY_DAT"; }
0020 
0021   inline void setProcessedEvents(int proc) { m_processedEvents = proc; }
0022   inline int getProcessedEvents() const { return m_processedEvents; }
0023 
0024   inline void setProblematicEvents(int prob) { m_problematicEvents = prob; }
0025   inline int getProblematicEvents() const { return m_problematicEvents; }
0026 
0027   inline void setProblemsID(int id) { m_problemsID = id; }
0028   inline int getProblemsID() const { return m_problemsID; }
0029 
0030   inline void setProblemsSize(int size) { m_problemsSize = size; }
0031   inline int getProblemsSize() const { return m_problemsSize; }
0032 
0033   inline void setProblemsLV1(int LV1) { m_problemsLV1 = LV1; }
0034   inline int getProblemsLV1() const { return m_problemsLV1; }
0035 
0036   inline void setProblemsBunchX(int bunchX) { m_problemsBunchX = bunchX; }
0037   inline int getProblemsBunchX() const { return m_problemsBunchX; }
0038 
0039   inline void setTaskStatus(bool status) { m_taskStatus = status; }
0040   inline bool getTaskStatus() const { return m_taskStatus; }
0041 
0042 private:
0043   void prepareWrite() noexcept(false) override;
0044 
0045   void writeDB(const EcalLogicID* ecid, const MonMemTTConsistencyDat* item, MonRunIOV* iov) noexcept(false);
0046 
0047   void writeArrayDB(const std::map<EcalLogicID, MonMemTTConsistencyDat>* data, MonRunIOV* iov) noexcept(false);
0048 
0049   void fetchData(std::map<EcalLogicID, MonMemTTConsistencyDat>* fillVec, MonRunIOV* iov) noexcept(false);
0050 
0051   // User data
0052   int m_processedEvents;
0053   int m_problematicEvents;
0054   int m_problemsID;
0055   int m_problemsSize;
0056   int m_problemsLV1;
0057   int m_problemsBunchX;
0058   bool m_taskStatus;
0059 };
0060 
0061 #endif