CMS 3D CMS Logo

FEConfigSpikeDat.h
Go to the documentation of this file.
1 #ifndef FECONFSpikeDAT_H
2 #define FECONFSpikeDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class FEConfigSpikeDat : public IDataItem {
12  public:
13  friend class EcalCondDBInterface; // XXX temp should not need
16 
17  // User data methods
18  inline std::string getTable() { return "FE_CONFIG_SPIKE_DAT"; }
19 
20  inline void setSpikeThreshold(int x) { m_thr = x; }
21  inline int getSpikeThreshold() const { return m_thr; }
22 
23  private:
24  void prepareWrite() noexcept(false);
25 
26  void writeDB(const EcalLogicID* ecid, const FEConfigSpikeDat* item, FEConfigSpikeInfo* iconf) noexcept(false);
27 
28 
29  void writeArrayDB(const std::map< EcalLogicID, FEConfigSpikeDat>* data, FEConfigSpikeInfo* iconf) noexcept(false);
30 
31 
32  void fetchData(std::map< EcalLogicID, FEConfigSpikeDat >* fillMap, FEConfigSpikeInfo* iconf) noexcept(false);
33 
34  // User data
35  int m_thr;
36 
37 };
38 
39 #endif
#define noexcept
void prepareWrite() noexcept(false)
std::string getTable()
void setSpikeThreshold(int x)
void writeDB(const EcalLogicID *ecid, const FEConfigSpikeDat *item, FEConfigSpikeInfo *iconf) noexcept(false)
void fetchData(std::map< EcalLogicID, FEConfigSpikeDat > *fillMap, FEConfigSpikeInfo *iconf) noexcept(false)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void writeArrayDB(const std::map< EcalLogicID, FEConfigSpikeDat > *data, FEConfigSpikeInfo *iconf) noexcept(false)
int getSpikeThreshold() const