CMS 3D CMS Logo

MonOccupancyDat.h
Go to the documentation of this file.
1 #ifndef MONOCCUPANCYDAT_H
2 #define MONOCCUPANCYDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonOccupancyDat : public IDataItem {
13  public:
14  friend class EcalCondDBInterface;
16  ~MonOccupancyDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_OCCUPANCY_DAT"; }
20 
23 
26 
27  void setAvgEnergy(float energy) { m_avgEnergy = energy; }
28  float getAvgEnergy() const { return m_avgEnergy; }
29 
30  private:
31  void prepareWrite()
32  noexcept(false) override;
33 
34  void writeDB(const EcalLogicID* ecid, const MonOccupancyDat* item, MonRunIOV* iov)
35  noexcept(false);
36 
37  void writeArrayDB(const std::map< EcalLogicID, MonOccupancyDat >* data, MonRunIOV* iov)
38  noexcept(false);
39 
40 
41  void fetchData(std::map< EcalLogicID, MonOccupancyDat >* fillVec, MonRunIOV* iov)
42  noexcept(false);
43 
44  // User data
47  float m_avgEnergy;
48 };
49 
50 #endif
std::string getTable() override
void setAvgEnergy(float energy)
void writeArrayDB(const std::map< EcalLogicID, MonOccupancyDat > *data, MonRunIOV *iov) noexcept(false)
void setEventsOverLowThreshold(int events)
int getEventsOverHighThreshold() const
float getAvgEnergy() const
int getEventsOverLowThreshold() const
void fetchData(std::map< EcalLogicID, MonOccupancyDat > *fillVec, MonRunIOV *iov) noexcept(false)
#define noexcept
~MonOccupancyDat() override
void writeDB(const EcalLogicID *ecid, const MonOccupancyDat *item, MonRunIOV *iov) noexcept(false)
void setEventsOverHighThreshold(int events)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void prepareWrite() noexcept(false) override