CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
28  float getAvgEnergy() const { return m_avgEnergy; }
29 
30 private:
31  void prepareWrite() noexcept(false) override;
32 
33  void writeDB(const EcalLogicID* ecid, const MonOccupancyDat* item, MonRunIOV* iov) noexcept(false);
34 
35  void writeArrayDB(const std::map<EcalLogicID, MonOccupancyDat>* data, MonRunIOV* iov) noexcept(false);
36 
37  void fetchData(std::map<EcalLogicID, MonOccupancyDat>* fillVec, MonRunIOV* iov) noexcept(false);
38 
39  // User data
42  float m_avgEnergy;
43 };
44 
45 #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)
~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:79
tuple events
Definition: patZpeak.py:20
void prepareWrite() noexcept(false) override