CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ODScanConfig.h
Go to the documentation of this file.
1 #ifndef ODSCANCONFIG_H
2 #define ODSCANCONFIG_H
3 
4 #include <map>
5 #include <stdexcept>
6 
8 
9 class ODScanConfig : public IODConfig {
10 public:
11  friend class EcalCondDBInterface;
12  ODScanConfig();
13  ~ODScanConfig() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "ECAL_Scan_DAT"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  inline void setTypeId(int x) { m_type_id = x; }
22  inline int getTypeId() const { return m_type_id; }
23 
24  inline void setScanType(std::string x) { m_type = x; }
25  inline std::string getScanType() const { return m_type; }
26 
27  inline void setFromVal(int x) { m_from_val = x; }
28  inline int getFromVal() const { return m_from_val; }
29 
30  inline void setToVal(int x) { m_to_val = x; }
31  inline int getToVal() const { return m_to_val; }
32 
33  inline void setStep(int x) { m_step = x; }
34  inline int getStep() const { return m_step; }
35  void setParameters(const std::map<std::string, std::string>& my_keys_map);
36 
37 private:
38  void prepareWrite() noexcept(false) override;
39  void writeDB() noexcept(false);
40  void clear();
41  void fetchData(ODScanConfig* result) noexcept(false);
42  int fetchID() noexcept(false);
43  int fetchNextId() noexcept(false);
44 
45  // User data
46  int m_ID;
47 
48  int m_type_id;
49  std::string m_type;
51  int m_to_val;
52  int m_step;
53 };
54 
55 #endif
std::string m_type
Definition: ODScanConfig.h:49
uint16_t *__restrict__ id
void setToVal(int x)
Definition: ODScanConfig.h:30
~ODScanConfig() override
Definition: ODScanConfig.cc:21
void setId(int id)
Definition: ODScanConfig.h:18
int getId() const
Definition: ODScanConfig.h:19
tuple result
Definition: mps_fire.py:311
void setScanType(std::string x)
Definition: ODScanConfig.h:24
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODScanConfig.cc:50
#define override(base_class)
int getStep() const
Definition: ODScanConfig.h:34
void setFromVal(int x)
Definition: ODScanConfig.h:27
int fetchNextId() noexcept(false)
Definition: ODScanConfig.cc:31
std::string getTable() override
Definition: ODScanConfig.h:16
int getToVal() const
Definition: ODScanConfig.h:31
int getFromVal() const
Definition: ODScanConfig.h:28
void setTypeId(int x)
Definition: ODScanConfig.h:21
void fetchData(ODScanConfig *result) noexcept(false)
void prepareWrite() noexcept(false) override
Definition: ODScanConfig.cc:70
int fetchID() noexcept(false)
std::string getScanType() const
Definition: ODScanConfig.h:25
int getTypeId() const
Definition: ODScanConfig.h:22
void setStep(int x)
Definition: ODScanConfig.h:33
void writeDB() noexcept(false)
Definition: ODScanConfig.cc:88