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() noexcept(false);
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 
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 setToVal(int x)
Definition: ODScanConfig.h:30
#define noexcept
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
void prepareWrite() noexcept(false)
Definition: ODScanConfig.cc:79
int fetchNextId() noexcept(false)
Definition: ODScanConfig.cc:38
std::string getTable()
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)
volatile std::atomic< bool > shutdown_flag false
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:98