CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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;
17 
18  // User data methods
19  inline std::string getTable() { return "MON_OCCUPANCY_DAT"; }
20 
23 
26 
28  float getAvgEnergy() const { return m_avgEnergy; }
29 
30  private:
31  void prepareWrite()
32  throw(std::runtime_error);
33 
35  throw(std::runtime_error);
36 
38  throw(std::runtime_error);
39 
40 
41  void fetchData(std::map< EcalLogicID, MonOccupancyDat >* fillVec, MonRunIOV* iov)
42  throw(std::runtime_error);
43 
44  // User data
47  float m_avgEnergy;
48 };
49 
50 #endif
std::string getTable()
void setAvgEnergy(float energy)
void setEventsOverLowThreshold(int events)
int getEventsOverHighThreshold() const
void writeDB(const EcalLogicID *ecid, const MonOccupancyDat *item, MonRunIOV *iov)
float getAvgEnergy() const
tuple iov
Definition: o2o.py:307
int getEventsOverLowThreshold() const
void fetchData(std::map< EcalLogicID, MonOccupancyDat > *fillVec, MonRunIOV *iov)
void writeArrayDB(const std::map< EcalLogicID, MonOccupancyDat > *data, MonRunIOV *iov)
string const
Definition: compareJSON.py:14
void setEventsOverHighThreshold(int events)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
tuple events
Definition: patZpeak.py:19