CMS 3D CMS Logo

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