CMS 3D CMS Logo

ODTTCciConfig.h
Go to the documentation of this file.
1 #ifndef ODTTCCICONFIG_H
2 #define ODTTCCICONFIG_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 ODTTCciConfig : public IODConfig {
16 public:
17  friend class EcalCondDBInterface;
18  ODTTCciConfig();
19  ~ODTTCciConfig() override;
20 
21  // User data methods
22  inline std::string getTable() override { return "ECAL_TTCci_CONFIGURATION"; }
23 
24  inline void setId(int id) { m_ID = id; }
25  inline int getId() const { return m_ID; }
26 
29 
34 
35  inline void setTrgMode(std::string x) { m_trg_mode = x; }
36  inline std::string getTrgMode() const { return m_trg_mode; }
37  inline void setTrgSleep(int id) { m_trg_sleep = id; }
38  inline int getTrgSleep() const { return m_trg_sleep; }
39 
40  inline void setTTCciClob(unsigned char* x) { m_ttcci_clob = x; }
41  inline unsigned char* getTTCciClob() const { return m_ttcci_clob; }
42  inline void setSize(unsigned int id) { m_size = id; }
43  inline unsigned int getSize() const { return m_size; }
44  void setParameters(const std::map<std::string, std::string>& my_keys_map);
45 
46 private:
47  void prepareWrite() noexcept(false) override;
48  void writeDB() noexcept(false);
49  void clear();
50  void fetchData(ODTTCciConfig* result) noexcept(false);
51  int fetchID() noexcept(false);
52 
53  int fetchNextId() noexcept(false);
54 
55  // User data
56  int m_ID;
57  unsigned char* m_ttcci_clob;
58  std::string m_ttcci_file;
61  std::string m_trg_mode;
63  int m_size;
64 };
65 
66 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODTTCciConfig::~ODTTCciConfig
~ODTTCciConfig() override
Definition: ODTTCciConfig.cc:37
ODTTCciConfig::fetchData
void fetchData(ODTTCciConfig *result) noexcept(false)
Definition: ODTTCciConfig.cc:182
ODTTCciConfig::writeDB
void writeDB() noexcept(false)
Definition: ODTTCciConfig.cc:152
funct::false
false
Definition: Factorize.h:29
ODTTCciConfig::setId
void setId(int id)
Definition: ODTTCciConfig.h:24
ODTTCciConfig::m_trg_sleep
int m_trg_sleep
Definition: ODTTCciConfig.h:62
ODTTCciConfig::setTrgMode
void setTrgMode(std::string x)
Definition: ODTTCciConfig.h:35
IODConfig.h
ODTTCciConfig::getTrgSleep
int getTrgSleep() const
Definition: ODTTCciConfig.h:38
ODTTCciConfig::m_trg_mode
std::string m_trg_mode
Definition: ODTTCciConfig.h:61
DDAxes::x
ODTTCciConfig::getTrgMode
std::string getTrgMode() const
Definition: ODTTCciConfig.h:36
ODTTCciConfig::m_ttcci_file
std::string m_ttcci_file
Definition: ODTTCciConfig.h:58
ODTTCciConfig::setTTCciClob
void setTTCciClob(unsigned char *x)
Definition: ODTTCciConfig.h:40
ODTTCciConfig::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODTTCciConfig.cc:39
ODTTCciConfig::getTable
std::string getTable() override
Definition: ODTTCciConfig.h:22
ODTTCciConfig::getConfigurationScript
std::string getConfigurationScript() const
Definition: ODTTCciConfig.h:31
ODTTCciConfig::setSize
void setSize(unsigned int id)
Definition: ODTTCciConfig.h:42
ODTTCciConfig::ODTTCciConfig
ODTTCciConfig()
Definition: ODTTCciConfig.cc:15
ODTTCciConfig::setTTCciConfigurationFile
void setTTCciConfigurationFile(std::string x)
Definition: ODTTCciConfig.h:27
ODTTCciConfig::fetchID
int fetchID() noexcept(false)
Definition: ODTTCciConfig.cc:231
ODTTCciConfig::getConfigurationScriptParams
std::string getConfigurationScriptParams() const
Definition: ODTTCciConfig.h:33
ODTTCciConfig::m_configuration_script_params
std::string m_configuration_script_params
Definition: ODTTCciConfig.h:60
ODTTCciConfig::setConfigurationScript
void setConfigurationScript(std::string x)
Definition: ODTTCciConfig.h:30
ODTTCciConfig::getTTCciConfigurationFile
std::string getTTCciConfigurationFile() const
Definition: ODTTCciConfig.h:28
ODTTCciConfig::m_size
int m_size
Definition: ODTTCciConfig.h:63
ODTTCciConfig::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODTTCciConfig.cc:103
ODTTCciConfig::m_configuration_script
std::string m_configuration_script
Definition: ODTTCciConfig.h:59
IODConfig
Definition: IODConfig.h:18
ODTTCciConfig::setTrgSleep
void setTrgSleep(int id)
Definition: ODTTCciConfig.h:37
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
std
Definition: JetResolutionObject.h:76
ODTTCciConfig::getTTCciClob
unsigned char * getTTCciClob() const
Definition: ODTTCciConfig.h:41
ODTTCciConfig::setConfigurationScriptParams
void setConfigurationScriptParams(std::string x)
Definition: ODTTCciConfig.h:32
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODTTCciConfig::getSize
unsigned int getSize() const
Definition: ODTTCciConfig.h:43
ODTTCciConfig::getId
int getId() const
Definition: ODTTCciConfig.h:25
ODTTCciConfig::m_ID
int m_ID
Definition: ODTTCciConfig.h:56
ODTTCciConfig::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODTTCciConfig.cc:58
Oracle.h
ODTTCciConfig::m_ttcci_clob
unsigned char * m_ttcci_clob
Definition: ODTTCciConfig.h:57
mps_fire.result
result
Definition: mps_fire.py:311
ODTTCciConfig::clear
void clear()
Definition: ODTTCciConfig.cc:28
ODTTCciConfig
Definition: ODTTCciConfig.h:15