CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FEConfigPedDat.h
Go to the documentation of this file.
1 #ifndef FECONFPEDDAT_H
2 #define FECONFPEDDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class FEConfigPedDat : public IDataItem {
12 public:
13  friend class EcalCondDBInterface;
15  ~FEConfigPedDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "FE_CONFIG_PED_DAT"; }
19 
20  inline void setId(int x) { m_ID = x; }
21  inline int getId() const { return m_ID; }
22 
23  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
24  inline float getPedMeanG1() const { return m_pedMeanG1; }
25 
26  inline void setPedMeanG6(float mean) { m_pedMeanG6 = mean; }
27  inline float getPedMeanG6() const { return m_pedMeanG6; }
28 
29  inline void setPedMeanG12(float mean) { m_pedMeanG12 = mean; }
30  inline float getPedMeanG12() const { return m_pedMeanG12; }
31 
32 private:
33  void prepareWrite() noexcept(false) override;
34 
35  void writeDB(const EcalLogicID* ecid, const FEConfigPedDat* item, FEConfigPedInfo* iconf) noexcept(false);
36 
37  void writeArrayDB(const std::map<EcalLogicID, FEConfigPedDat>* data, FEConfigPedInfo* iconf) noexcept(false);
38 
39  void fetchData(std::map<EcalLogicID, FEConfigPedDat>* fillMap, FEConfigPedInfo* iconf) noexcept(false);
40 
41  // User data
42  float m_pedMeanG1;
43  float m_pedMeanG6;
44  float m_pedMeanG12;
45  int m_ID;
46 };
47 
48 #endif
std::string getTable() override
float getPedMeanG1() const
void fetchData(std::map< EcalLogicID, FEConfigPedDat > *fillMap, FEConfigPedInfo *iconf) noexcept(false)
void setPedMeanG6(float mean)
void writeDB(const EcalLogicID *ecid, const FEConfigPedDat *item, FEConfigPedInfo *iconf) noexcept(false)
~FEConfigPedDat() override
void setPedMeanG1(float mean)
#define override(base_class)
void writeArrayDB(const std::map< EcalLogicID, FEConfigPedDat > *data, FEConfigPedInfo *iconf) noexcept(false)
int getId() const
float getPedMeanG12() const
void setPedMeanG12(float mean)
float getPedMeanG6() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void setId(int x)
void prepareWrite() noexcept(false) override