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 
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 
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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
funct::false
false
Definition: Factorize.h:29
MonOccupancyDat::m_eventsOverHighThreshold
int m_eventsOverHighThreshold
Definition: MonOccupancyDat.h:41
MonOccupancyDat::getTable
std::string getTable() override
Definition: MonOccupancyDat.h:19
MonOccupancyDat::fetchData
void fetchData(std::map< EcalLogicID, MonOccupancyDat > *fillVec, MonRunIOV *iov) noexcept(false)
Definition: MonOccupancyDat.cc:66
MonOccupancyDat::MonOccupancyDat
MonOccupancyDat()
Definition: MonOccupancyDat.cc:10
MonOccupancyDat::m_avgEnergy
float m_avgEnergy
Definition: MonOccupancyDat.h:42
patZpeak.events
events
Definition: patZpeak.py:20
watchdog.const
const
Definition: watchdog.py:83
MonOccupancyDat::getEventsOverLowThreshold
int getEventsOverLowThreshold() const
Definition: MonOccupancyDat.h:22
IDataItem
Definition: IDataItem.h:16
MonOccupancyDat::getAvgEnergy
float getAvgEnergy() const
Definition: MonOccupancyDat.h:28
MonOccupancyDat::getEventsOverHighThreshold
int getEventsOverHighThreshold() const
Definition: MonOccupancyDat.h:25
EcalLogicID
Definition: EcalLogicID.h:7
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MonRunIOV.h
MonOccupancyDat::setAvgEnergy
void setAvgEnergy(float energy)
Definition: MonOccupancyDat.h:27
MonOccupancyDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonOccupancyDat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonOccupancyDat.cc:109
MonRunIOV
Definition: MonRunIOV.h:14
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
MonOccupancyDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MonOccupancyDat.cc:23
MonOccupancyDat::m_eventsOverLowThreshold
int m_eventsOverLowThreshold
Definition: MonOccupancyDat.h:40
MonRunTag.h
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
MonOccupancyDat::~MonOccupancyDat
~MonOccupancyDat() override
Definition: MonOccupancyDat.cc:21
MonOccupancyDat::setEventsOverLowThreshold
void setEventsOverLowThreshold(int events)
Definition: MonOccupancyDat.h:21
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MonOccupancyDat::writeDB
void writeDB(const EcalLogicID *ecid, const MonOccupancyDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonOccupancyDat.cc:38
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MonOccupancyDat
Definition: MonOccupancyDat.h:12
MonOccupancyDat::setEventsOverHighThreshold
void setEventsOverHighThreshold(int events)
Definition: MonOccupancyDat.h:24