CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
57  std::string m_hal_mod_file;
58  std::string m_hal_add_file;
59  std::string m_hal_tab_file;
60  std::string m_serial;
61  std::string m_caen1;
62  int m_caen2;
63  int m_caen3;
64 };
65 
66 #endif
std::string getHalModuleFile() const
Definition: ODJBH4Config.h:25
int fetchID() noexcept(false)
int getId() const
Definition: ODJBH4Config.h:19
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
uint16_t *__restrict__ id
std::string getCbd8210SerialNumber() const
Definition: ODJBH4Config.h:34
std::string m_hal_tab_file
Definition: ODJBH4Config.h:59
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
tuple result
Definition: mps_fire.py:311
int fetchNextId() noexcept(false)
Definition: ODJBH4Config.cc:33
void writeDB() noexcept(false)
Definition: ODJBH4Config.cc:71
std::string getCaenBridgeType() const
Definition: ODJBH4Config.h:37
void setCaenBoardNumber(int x)
Definition: ODJBH4Config.h:42
void setId(int id)
Definition: ODJBH4Config.h:18
int getCaenLinkNumber() const
Definition: ODJBH4Config.h:40
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
int getUseBuffer() const
Definition: ODJBH4Config.h:22
std::string getHalAddressTableFile() const
Definition: ODJBH4Config.h:28
int getCaenBoardNumber() const
Definition: ODJBH4Config.h:43
std::string m_hal_mod_file
Definition: ODJBH4Config.h:57
std::string m_hal_add_file
Definition: ODJBH4Config.h:58
std::string getHalStaticTableFile() const
Definition: ODJBH4Config.h:31
void setHalAddressTableFile(std::string x)
Definition: ODJBH4Config.h:27