CMS 3D CMS Logo

ODTTCFConfig.h
Go to the documentation of this file.
1 #ifndef ODTTCFCONFIG_H
2 #define ODTTCFCONFIG_H
3 
4 #include <map>
5 #include <stdexcept>
8 #define USE_NORM 1
9 #define USE_CHUN 2
10 #define USE_BUFF 3
11 
12 /* Buffer Size */
13 #define BUFSIZE 200;
14 
15 class ODTTCFConfig : public IODConfig {
16 public:
17  friend class EcalCondDBInterface;
18  ODTTCFConfig();
19  ~ODTTCFConfig() override;
20 
21  // User data methods
22  inline std::string getTable() override { return "ECAL_TTCF_CONFIGURATION"; }
23  inline void setSize(unsigned int id) { m_size = id; }
24  inline unsigned int getSize() const { return m_size; }
25 
26  inline void setId(int id) { m_ID = id; }
27  inline int getId() const { return m_ID; }
28 
31 
32  inline void setTTCFClob(unsigned char* x) { m_ttcf_clob = x; }
33  inline unsigned char* getTTCFClob() const { return m_ttcf_clob; }
34 
35  inline void setRxBC0Delay(int x) { m_rxbc0_delay = x; }
36  inline int getRxBC0Delay() { return m_rxbc0_delay; }
37  inline void setReg30(int x) { m_reg_30 = x; }
38  inline int getReg30() { return m_reg_30; }
39 
40  void setParameters(const std::map<std::string, std::string>& my_keys_map);
41 
42 private:
43  void prepareWrite() noexcept(false) override;
44 
45  void writeDB() noexcept(false);
46 
47  void clear();
48 
49  void fetchData(ODTTCFConfig* result) noexcept(false);
50 
51  int fetchID() noexcept(false);
52 
53  int fetchNextId() noexcept(false);
54 
55  // User data
56  int m_ID;
57  unsigned char* m_ttcf_clob;
58  unsigned int m_size;
59  std::string m_ttcf_file;
60 
62  int m_reg_30;
63 };
64 
65 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODTTCFConfig::setTTCFClob
void setTTCFClob(unsigned char *x)
Definition: ODTTCFConfig.h:32
ODTTCFConfig::getRxBC0Delay
int getRxBC0Delay()
Definition: ODTTCFConfig.h:36
ODTTCFConfig::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODTTCFConfig.cc:48
ODTTCFConfig::fetchData
void fetchData(ODTTCFConfig *result) noexcept(false)
Definition: ODTTCFConfig.cc:117
funct::false
false
Definition: Factorize.h:29
IODConfig.h
ODTTCFConfig::getTTCFClob
unsigned char * getTTCFClob() const
Definition: ODTTCFConfig.h:33
ODTTCFConfig::fetchID
int fetchID() noexcept(false)
Definition: ODTTCFConfig.cc:154
DDAxes::x
ODTTCFConfig::setRxBC0Delay
void setRxBC0Delay(int x)
Definition: ODTTCFConfig.h:35
ODTTCFConfig::setId
void setId(int id)
Definition: ODTTCFConfig.h:26
ODTTCFConfig::getId
int getId() const
Definition: ODTTCFConfig.h:27
ODTTCFConfig::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODTTCFConfig.cc:27
ODTTCFConfig::setTTCFConfigurationFile
void setTTCFConfigurationFile(std::string x)
Definition: ODTTCFConfig.h:29
ODTTCFConfig::~ODTTCFConfig
~ODTTCFConfig() override
Definition: ODTTCFConfig.cc:25
ODTTCFConfig::getReg30
int getReg30()
Definition: ODTTCFConfig.h:38
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODTTCFConfig::m_ttcf_file
std::string m_ttcf_file
Definition: ODTTCFConfig.h:59
ODTTCFConfig
Definition: ODTTCFConfig.h:15
ODTTCFConfig::m_size
unsigned int m_size
Definition: ODTTCFConfig.h:58
ODTTCFConfig::m_ttcf_clob
unsigned char * m_ttcf_clob
Definition: ODTTCFConfig.h:57
ODTTCFConfig::ODTTCFConfig
ODTTCFConfig()
Definition: ODTTCFConfig.cc:12
ODTTCFConfig::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODTTCFConfig.cc:184
ODTTCFConfig::setReg30
void setReg30(int x)
Definition: ODTTCFConfig.h:37
IODConfig
Definition: IODConfig.h:18
ODTTCFConfig::getTTCFConfigurationFile
std::string getTTCFConfigurationFile() const
Definition: ODTTCFConfig.h:30
ODTTCFConfig::m_ID
int m_ID
Definition: ODTTCFConfig.h:56
std
Definition: JetResolutionObject.h:76
ODTTCFConfig::setSize
void setSize(unsigned int id)
Definition: ODTTCFConfig.h:23
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODTTCFConfig::m_reg_30
int m_reg_30
Definition: ODTTCFConfig.h:62
ODTTCFConfig::clear
void clear()
Definition: ODTTCFConfig.cc:23
Oracle.h
mps_fire.result
result
Definition: mps_fire.py:311
ODTTCFConfig::getSize
unsigned int getSize() const
Definition: ODTTCFConfig.h:24
ODTTCFConfig::m_rxbc0_delay
int m_rxbc0_delay
Definition: ODTTCFConfig.h:61
ODTTCFConfig::getTable
std::string getTable() override
Definition: ODTTCFConfig.h:22
ODTTCFConfig::writeDB
void writeDB() noexcept(false)
Definition: ODTTCFConfig.cc:90