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
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 
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
void prepareWrite() noexcept(false) override
void setSpikeThreshold(int x)
#define noexcept
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:82
void writeArrayDB(const std::map< EcalLogicID, FEConfigSpikeDat > *data, FEConfigSpikeInfo *iconf) noexcept(false)
int getSpikeThreshold() const
std::string getTable() override