test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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();
14 
15  // User data methods
16  inline std::string getTable() { 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() throw(std::runtime_error);
39  void writeDB() throw(std::runtime_error);
40  void clear();
41  void fetchData(ODScanConfig * result) throw(std::runtime_error);
42  int fetchID() throw(std::runtime_error);
43  int fetchNextId() throw(std::runtime_error);
44 
45 
46  // User data
47  int m_ID;
48 
49  int m_type_id;
50  std::string m_type;
52  int m_to_val;
53  int m_step;
54 
55 };
56 
57 #endif
std::string m_type
Definition: ODScanConfig.h:50
void prepareWrite()
Definition: ODScanConfig.cc:79
void setToVal(int x)
Definition: ODScanConfig.h:30
void fetchData(ODScanConfig *result)
void setId(int id)
Definition: ODScanConfig.h:18
int getId() const
Definition: ODScanConfig.h:19
tuple result
Definition: mps_fire.py:84
void setScanType(std::string x)
Definition: ODScanConfig.h:24
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODScanConfig.cc:60
int getStep() const
Definition: ODScanConfig.h:34
void setFromVal(int x)
Definition: ODScanConfig.h:27
std::string getTable()
Definition: ODScanConfig.h:16
int getToVal() const
Definition: ODScanConfig.h:31
int fetchNextId()
Definition: ODScanConfig.cc:38
int getFromVal() const
Definition: ODScanConfig.h:28
void writeDB()
Definition: ODScanConfig.cc:98
void setTypeId(int x)
Definition: ODScanConfig.h:21
std::string getScanType() const
Definition: ODScanConfig.h:25
int getTypeId() const
Definition: ODScanConfig.h:22
void setStep(int x)
Definition: ODScanConfig.h:33