CMS 3D CMS Logo

ODTCCConfig.h
Go to the documentation of this file.
1 #ifndef ODTCCCONFIG_H
2 #define ODTCCCONFIG_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 ODTCCConfig : public IODConfig {
16 public:
17  friend class EcalCondDBInterface;
18  ODTCCConfig();
19  ~ODTCCConfig() override;
20 
21  // User data methods
22  inline std::string getTable() override { return "ECAL_TCC_CONFIGURATION"; }
23 
24  inline void setId(int id) { m_ID = id; }
25  inline int getId() const { return m_ID; }
26 
28  inline std::string getTCCConfigurationFile() const { return m_tcc_file; }
30  inline std::string getLUTConfigurationFile() const { return m_lut_file; }
32  inline std::string getSLBConfigurationFile() const { return m_slb_file; }
34  inline std::string getTestPatternFileUrl() const { return m_test_url; }
35  inline void setNTestPatternsToLoad(int id) { m_ntest = id; }
36  inline int getNTestPatternsToLoad() const { return m_ntest; }
37 
38  inline void setTCCClob(unsigned char* x) { m_tcc_clob = x; }
39  inline unsigned char* getTCCClob() const { return m_tcc_clob; }
40 
41  inline void setLUTClob(unsigned char* x) { m_lut_clob = x; }
42  inline unsigned char* getLUTClob() const { return m_lut_clob; }
43 
44  inline void setSLBClob(unsigned char* x) { m_slb_clob = x; }
45  inline unsigned char* getSLBClob() const { return m_slb_clob; }
46 
47  void setParameters(const std::map<std::string, std::string>& my_keys_map);
48 
49 private:
50  void prepareWrite() noexcept(false) override;
51  void writeDB() noexcept(false);
52  void clear();
53  void fetchData(ODTCCConfig* result) noexcept(false);
54  int fetchID() noexcept(false);
55 
56  int fetchNextId() noexcept(false);
57 
58  // User data
59  int m_ID;
60  unsigned char* m_tcc_clob;
61  unsigned char* m_lut_clob;
62  unsigned char* m_slb_clob;
63  std::string m_tcc_file;
64  std::string m_lut_file;
65  std::string m_slb_file;
66  std::string m_test_url;
67  int m_ntest;
68  unsigned int m_size;
69 };
70 
71 #endif
ODTCCConfig::getLUTConfigurationFile
std::string getLUTConfigurationFile() const
Definition: ODTCCConfig.h:30
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
funct::false
false
Definition: Factorize.h:29
ODTCCConfig::m_tcc_clob
unsigned char * m_tcc_clob
Definition: ODTCCConfig.h:60
ODTCCConfig::m_ntest
int m_ntest
Definition: ODTCCConfig.h:67
ODTCCConfig::setTCCClob
void setTCCClob(unsigned char *x)
Definition: ODTCCConfig.h:38
IODConfig.h
ODTCCConfig::getId
int getId() const
Definition: ODTCCConfig.h:25
ODTCCConfig
Definition: ODTCCConfig.h:15
ODTCCConfig::getLUTClob
unsigned char * getLUTClob() const
Definition: ODTCCConfig.h:42
DDAxes::x
ODTCCConfig::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODTCCConfig.cc:52
ODTCCConfig::setTCCConfigurationFile
void setTCCConfigurationFile(std::string x)
Definition: ODTCCConfig.h:27
ODTCCConfig::~ODTCCConfig
~ODTCCConfig() override
Definition: ODTCCConfig.cc:31
ODTCCConfig::m_tcc_file
std::string m_tcc_file
Definition: ODTCCConfig.h:63
ODTCCConfig::getTCCConfigurationFile
std::string getTCCConfigurationFile() const
Definition: ODTCCConfig.h:28
ODTCCConfig::setNTestPatternsToLoad
void setNTestPatternsToLoad(int id)
Definition: ODTCCConfig.h:35
ODTCCConfig::m_size
unsigned int m_size
Definition: ODTCCConfig.h:68
ODTCCConfig::setSLBClob
void setSLBClob(unsigned char *x)
Definition: ODTCCConfig.h:44
ODTCCConfig::m_lut_clob
unsigned char * m_lut_clob
Definition: ODTCCConfig.h:61
ODTCCConfig::m_slb_clob
unsigned char * m_slb_clob
Definition: ODTCCConfig.h:62
ODTCCConfig::getSLBConfigurationFile
std::string getSLBConfigurationFile() const
Definition: ODTCCConfig.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODTCCConfig::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODTCCConfig.cc:72
ODTCCConfig::getTestPatternFileUrl
std::string getTestPatternFileUrl() const
Definition: ODTCCConfig.h:34
ODTCCConfig::setId
void setId(int id)
Definition: ODTCCConfig.h:24
IODConfig
Definition: IODConfig.h:18
ODTCCConfig::m_slb_file
std::string m_slb_file
Definition: ODTCCConfig.h:65
ODTCCConfig::getSLBClob
unsigned char * getSLBClob() const
Definition: ODTCCConfig.h:45
ODTCCConfig::setTestPatternFileUrl
void setTestPatternFileUrl(std::string x)
Definition: ODTCCConfig.h:33
ODTCCConfig::fetchID
int fetchID() noexcept(false)
Definition: ODTCCConfig.cc:228
std
Definition: JetResolutionObject.h:76
ODTCCConfig::ODTCCConfig
ODTCCConfig()
Definition: ODTCCConfig.cc:11
ODTCCConfig::setLUTClob
void setLUTClob(unsigned char *x)
Definition: ODTCCConfig.h:41
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODTCCConfig::m_test_url
std::string m_test_url
Definition: ODTCCConfig.h:66
ODTCCConfig::m_ID
int m_ID
Definition: ODTCCConfig.h:59
ODTCCConfig::getTable
std::string getTable() override
Definition: ODTCCConfig.h:22
ODTCCConfig::m_lut_file
std::string m_lut_file
Definition: ODTCCConfig.h:64
Oracle.h
mps_fire.result
result
Definition: mps_fire.py:311
ODTCCConfig::setSLBConfigurationFile
void setSLBConfigurationFile(std::string x)
Definition: ODTCCConfig.h:31
ODTCCConfig::setLUTConfigurationFile
void setLUTConfigurationFile(std::string x)
Definition: ODTCCConfig.h:29
ODTCCConfig::fetchData
void fetchData(ODTCCConfig *result) noexcept(false)
Definition: ODTCCConfig.cc:156
ODTCCConfig::writeDB
void writeDB() noexcept(false)
Definition: ODTCCConfig.cc:126
ODTCCConfig::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODTCCConfig.cc:33
ODTCCConfig::clear
void clear()
Definition: ODTCCConfig.cc:23
ODTCCConfig::getTCCClob
unsigned char * getTCCClob() const
Definition: ODTCCConfig.h:39
ODTCCConfig::getNTestPatternsToLoad
int getNTestPatternsToLoad() const
Definition: ODTCCConfig.h:36