CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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();
14 
15  // User data methods
16  inline std::string getTable() { return "ECAL_JBH4_CONFIGURATION"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21 
22  inline void setUseBuffer(int x) { m_use_buffer = x; }
23  inline int getUseBuffer() const { return m_use_buffer; }
24 
26  inline std::string getHalModuleFile() const { return m_hal_mod_file; }
27 
30 
33 
34 
36  inline std::string getCbd8210SerialNumber() const { return m_serial; }
37 
38  inline void setCaenBridgeType(std::string x) { m_caen1 = x; }
39  inline std::string getCaenBridgeType() const { return m_caen1; }
40 
41  inline void setCaenLinkNumber(int x) { m_caen2 = x; }
42  inline int getCaenLinkNumber() const { return m_caen2; }
43 
44  inline void setCaenBoardNumber(int x) { m_caen3 = x ; }
45  inline int getCaenBoardNumber() const { return m_caen3 ; }
46 
47 
48  private:
49  void prepareWrite() throw(std::runtime_error);
50  void writeDB() throw(std::runtime_error);
51  void clear();
52  void fetchData(ODJBH4Config * result) throw(std::runtime_error);
53  int fetchID() throw(std::runtime_error);
54  int fetchNextId() throw(std::runtime_error);
55 
56 
57  // User data
58  int m_ID;
59 
61  std::string m_hal_mod_file;
62  std::string m_hal_add_file;
63  std::string m_hal_tab_file;
64  std::string m_serial;
65  std::string m_caen1;
66  int m_caen2;
67  int m_caen3;
68 
69 };
70 
71 #endif
std::string getHalModuleFile() const
Definition: ODJBH4Config.h:26
int getId() const
Definition: ODJBH4Config.h:19
void setHalModuleFile(std::string x)
Definition: ODJBH4Config.h:25
std::string getCbd8210SerialNumber() const
Definition: ODJBH4Config.h:36
std::string m_hal_tab_file
Definition: ODJBH4Config.h:63
std::string m_serial
Definition: ODJBH4Config.h:64
int fetchNextId()
Definition: ODJBH4Config.cc:41
void setUseBuffer(int x)
Definition: ODJBH4Config.h:22
std::string m_caen1
Definition: ODJBH4Config.h:65
tuple result
Definition: mps_fire.py:83
void fetchData(ODJBH4Config *result)
std::string getCaenBridgeType() const
Definition: ODJBH4Config.h:39
void setCaenBoardNumber(int x)
Definition: ODJBH4Config.h:44
void setId(int id)
Definition: ODJBH4Config.h:18
int getCaenLinkNumber() const
Definition: ODJBH4Config.h:42
void setCaenLinkNumber(int x)
Definition: ODJBH4Config.h:41
void setCbd8210SerialNumber(std::string x)
Definition: ODJBH4Config.h:35
void setHalStaticTableFile(std::string x)
Definition: ODJBH4Config.h:31
void setCaenBridgeType(std::string x)
Definition: ODJBH4Config.h:38
void prepareWrite()
Definition: ODJBH4Config.cc:62
void writeDB()
Definition: ODJBH4Config.cc:84
int getUseBuffer() const
Definition: ODJBH4Config.h:23
std::string getHalAddressTableFile() const
Definition: ODJBH4Config.h:29
std::string getTable()
Definition: ODJBH4Config.h:16
int getCaenBoardNumber() const
Definition: ODJBH4Config.h:45
std::string m_hal_mod_file
Definition: ODJBH4Config.h:61
std::string m_hal_add_file
Definition: ODJBH4Config.h:62
std::string getHalStaticTableFile() const
Definition: ODJBH4Config.h:32
void setHalAddressTableFile(std::string x)
Definition: ODJBH4Config.h:28