CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
15  ~FEConfigSpikeDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { 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) override;
25 
27 
28  void writeArrayDB(const std::map<EcalLogicID, FEConfigSpikeDat>* data, FEConfigSpikeInfo* iconf) noexcept(false);
29 
30  void fetchData(std::map<EcalLogicID, FEConfigSpikeDat>* fillMap, FEConfigSpikeInfo* iconf) noexcept(false);
31 
32  // User data
33  int m_thr;
34 };
35 
36 #endif
void prepareWrite() noexcept(false) override
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)
~FEConfigSpikeDat() override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void writeArrayDB(const std::map< EcalLogicID, FEConfigSpikeDat > *data, FEConfigSpikeInfo *iconf) noexcept(false)
int getSpikeThreshold() const
std::string getTable() override