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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODJBH4Config::getId
int getId() const
Definition: ODJBH4Config.h:19
funct::false
false
Definition: Factorize.h:29
ODJBH4Config::setHalModuleFile
void setHalModuleFile(std::string x)
Definition: ODJBH4Config.h:24
ODJBH4Config
Definition: ODJBH4Config.h:9
IODConfig.h
ODJBH4Config::m_serial
std::string m_serial
Definition: ODJBH4Config.h:60
ODJBH4Config::getCaenLinkNumber
int getCaenLinkNumber() const
Definition: ODJBH4Config.h:40
ODJBH4Config::getCaenBridgeType
std::string getCaenBridgeType() const
Definition: ODJBH4Config.h:37
DDAxes::x
ODJBH4Config::m_caen1
std::string m_caen1
Definition: ODJBH4Config.h:61
ODJBH4Config::setCaenBridgeType
void setCaenBridgeType(std::string x)
Definition: ODJBH4Config.h:36
ODJBH4Config::m_hal_add_file
std::string m_hal_add_file
Definition: ODJBH4Config.h:58
ODJBH4Config::getHalModuleFile
std::string getHalModuleFile() const
Definition: ODJBH4Config.h:25
ODJBH4Config::m_use_buffer
int m_use_buffer
Definition: ODJBH4Config.h:56
ODJBH4Config::getCbd8210SerialNumber
std::string getCbd8210SerialNumber() const
Definition: ODJBH4Config.h:34
ODJBH4Config::m_hal_mod_file
std::string m_hal_mod_file
Definition: ODJBH4Config.h:57
ODJBH4Config::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODJBH4Config.cc:52
ODJBH4Config::getHalStaticTableFile
std::string getHalStaticTableFile() const
Definition: ODJBH4Config.h:31
ODJBH4Config::setHalAddressTableFile
void setHalAddressTableFile(std::string x)
Definition: ODJBH4Config.h:27
ODJBH4Config::getUseBuffer
int getUseBuffer() const
Definition: ODJBH4Config.h:22
ODJBH4Config::fetchID
int fetchID() noexcept(false)
Definition: ODJBH4Config.cc:133
ODJBH4Config::m_caen3
int m_caen3
Definition: ODJBH4Config.h:63
ODJBH4Config::setCaenLinkNumber
void setCaenLinkNumber(int x)
Definition: ODJBH4Config.h:39
IODConfig
Definition: IODConfig.h:18
ODJBH4Config::writeDB
void writeDB() noexcept(false)
Definition: ODJBH4Config.cc:71
ODJBH4Config::m_ID
int m_ID
Definition: ODJBH4Config.h:54
ODJBH4Config::fetchData
void fetchData(ODJBH4Config *result) noexcept(false)
Definition: ODJBH4Config.cc:99
ODJBH4Config::setId
void setId(int id)
Definition: ODJBH4Config.h:18
ODJBH4Config::setCbd8210SerialNumber
void setCbd8210SerialNumber(std::string x)
Definition: ODJBH4Config.h:33
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
std
Definition: JetResolutionObject.h:76
ODJBH4Config::getCaenBoardNumber
int getCaenBoardNumber() const
Definition: ODJBH4Config.h:43
ODJBH4Config::m_hal_tab_file
std::string m_hal_tab_file
Definition: ODJBH4Config.h:59
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODJBH4Config::~ODJBH4Config
~ODJBH4Config() override
Definition: ODJBH4Config.cc:20
ODJBH4Config::ODJBH4Config
ODJBH4Config()
Definition: ODJBH4Config.cc:10
ODJBH4Config::getHalAddressTableFile
std::string getHalAddressTableFile() const
Definition: ODJBH4Config.h:28
ODJBH4Config::setHalStaticTableFile
void setHalStaticTableFile(std::string x)
Definition: ODJBH4Config.h:30
mps_fire.result
result
Definition: mps_fire.py:311
ODJBH4Config::setUseBuffer
void setUseBuffer(int x)
Definition: ODJBH4Config.h:21
ODJBH4Config::getTable
std::string getTable() override
Definition: ODJBH4Config.h:16
ODJBH4Config::clear
void clear()
Definition: ODJBH4Config.cc:22
ODJBH4Config::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODJBH4Config.cc:33
ODJBH4Config::m_caen2
int m_caen2
Definition: ODJBH4Config.h:62
ODJBH4Config::setCaenBoardNumber
void setCaenBoardNumber(int x)
Definition: ODJBH4Config.h:42