CMS 3D CMS Logo

ODJBH4Config.h
Go to the documentation of this file.
1 #ifndef ODJBH4CONFIG_H
2 #define ODJBH4CONFIG_H
3 
4 #include <map>
5 #include <stdexcept>
6 
8 
9 class ODJBH4Config : public IODConfig {
10 public:
11  friend class EcalCondDBInterface;
12  ODJBH4Config();
13  ~ODJBH4Config() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "ECAL_JBH4_CONFIGURATION"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  inline void setUseBuffer(int x) { m_use_buffer = x; }
22  inline int getUseBuffer() const { return m_use_buffer; }
23 
25  inline std::string getHalModuleFile() const { return m_hal_mod_file; }
26 
29 
32 
34  inline std::string getCbd8210SerialNumber() const { return m_serial; }
35 
36  inline void setCaenBridgeType(std::string x) { m_caen1 = x; }
37  inline std::string getCaenBridgeType() const { return m_caen1; }
38 
39  inline void setCaenLinkNumber(int x) { m_caen2 = x; }
40  inline int getCaenLinkNumber() const { return m_caen2; }
41 
42  inline void setCaenBoardNumber(int x) { m_caen3 = x; }
43  inline int getCaenBoardNumber() const { return m_caen3; }
44 
45 private:
46  void prepareWrite() noexcept(false) override;
47  void writeDB() noexcept(false);
48  void clear();
49  void fetchData(ODJBH4Config* result) noexcept(false);
50  int fetchID() noexcept(false);
51  int fetchNextId() noexcept(false);
52 
53  // User data
54  int m_ID;
55 
60  std::string m_serial;
61  std::string m_caen1;
62  int m_caen2;
63  int m_caen3;
64 };
65 
66 #endif
std::string getCaenBridgeType() const
Definition: ODJBH4Config.h:37
int fetchID() noexcept(false)
std::string getTable() override
Definition: ODJBH4Config.h:16
void fetchData(ODJBH4Config *result) noexcept(false)
Definition: ODJBH4Config.cc:99
void setHalModuleFile(std::string x)
Definition: ODJBH4Config.h:24
int getId() const
Definition: ODJBH4Config.h:19
std::string m_hal_tab_file
Definition: ODJBH4Config.h:59
std::string getHalModuleFile() const
Definition: ODJBH4Config.h:25
std::string m_serial
Definition: ODJBH4Config.h:60
void setUseBuffer(int x)
Definition: ODJBH4Config.h:21
void prepareWrite() noexcept(false) override
Definition: ODJBH4Config.cc:52
std::string m_caen1
Definition: ODJBH4Config.h:61
int getCaenBoardNumber() const
Definition: ODJBH4Config.h:43
int getCaenLinkNumber() const
Definition: ODJBH4Config.h:40
int fetchNextId() noexcept(false)
Definition: ODJBH4Config.cc:33
void writeDB() noexcept(false)
Definition: ODJBH4Config.cc:71
int getUseBuffer() const
Definition: ODJBH4Config.h:22
void setCaenBoardNumber(int x)
Definition: ODJBH4Config.h:42
std::string getHalStaticTableFile() const
Definition: ODJBH4Config.h:31
void setId(int id)
Definition: ODJBH4Config.h:18
void setCaenLinkNumber(int x)
Definition: ODJBH4Config.h:39
~ODJBH4Config() override
Definition: ODJBH4Config.cc:20
void setCbd8210SerialNumber(std::string x)
Definition: ODJBH4Config.h:33
void setHalStaticTableFile(std::string x)
Definition: ODJBH4Config.h:30
void setCaenBridgeType(std::string x)
Definition: ODJBH4Config.h:36
std::string getHalAddressTableFile() const
Definition: ODJBH4Config.h:28
std::string getCbd8210SerialNumber() const
Definition: ODJBH4Config.h:34
std::string m_hal_mod_file
Definition: ODJBH4Config.h:57
std::string m_hal_add_file
Definition: ODJBH4Config.h:58
void setHalAddressTableFile(std::string x)
Definition: ODJBH4Config.h:27