CMS 3D CMS Logo

ODFEDAQConfig.h
Go to the documentation of this file.
1 #ifndef ODFEDAQCONFIG_H
2 #define ODFEDAQCONFIG_H
3 
4 #include <map>
5 #include <string>
6 
8 
9 class ODFEDAQConfig : public IODConfig {
10 public:
11  friend class EcalCondDBInterface;
12  ODFEDAQConfig();
13  ~ODFEDAQConfig() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "FE_DAQ_CONFIG"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  // the tag is already in IODConfig
22 
23  inline void setVersion(int id) { m_version = id; }
24  inline int getVersion() const { return m_version; }
25 
26  inline void setPedestalId(int x) { m_ped = x; }
27  inline int getPedestalId() const { return m_ped; }
28  inline void setDelayId(int x) { m_del = x; }
29  inline int getDelayId() const { return m_del; }
30  inline void setWeightId(int x) { m_wei = x; }
31  inline int getWeightId() const { return m_wei; }
32 
33  inline void setBadXtId(int x) { m_bxt = x; }
34  inline int getBadXtId() const { return m_bxt; }
35  inline void setBadTTId(int x) { m_btt = x; }
36  inline int getBadTTId() const { return m_btt; }
37  inline void setTriggerBadXtId(int x) { m_tbxt = x; }
38  inline int getTriggerBadXtId() const { return m_tbxt; }
39  inline void setTriggerBadTTId(int x) { m_tbtt = x; }
40  inline int getTriggerBadTTId() const { return m_tbtt; }
41 
42  inline void setComment(std::string x) { m_com = x; }
43  inline std::string getComment() const { return m_com; }
44 
45  int fetchNextId() noexcept(false);
46  void setParameters(const std::map<std::string, std::string>& my_keys_map);
47 
48 private:
49  void prepareWrite() noexcept(false) override;
50 
51  void writeDB() noexcept(false);
52 
53  void clear();
54 
55  void fetchData(ODFEDAQConfig* result) noexcept(false);
56 
57  int fetchID() noexcept(false);
58 
59  // User data
60  int m_ID;
61  int m_ped;
62  int m_del;
63  int m_wei;
64 
65  int m_bxt;
66  int m_btt;
67  int m_tbxt;
68  int m_tbtt;
69  int m_version;
70  std::string m_com;
71 };
72 
73 #endif
ODFEDAQConfig::m_version
int m_version
Definition: ODFEDAQConfig.h:69
ODFEDAQConfig::getBadXtId
int getBadXtId() const
Definition: ODFEDAQConfig.h:34
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODFEDAQConfig::m_btt
int m_btt
Definition: ODFEDAQConfig.h:66
ODFEDAQConfig::fetchID
int fetchID() noexcept(false)
Definition: ODFEDAQConfig.cc:210
ODFEDAQConfig::getTriggerBadXtId
int getTriggerBadXtId() const
Definition: ODFEDAQConfig.h:38
funct::false
false
Definition: Factorize.h:29
ODFEDAQConfig::getTable
std::string getTable() override
Definition: ODFEDAQConfig.h:16
ODFEDAQConfig::setComment
void setComment(std::string x)
Definition: ODFEDAQConfig.h:42
IODConfig.h
ODFEDAQConfig::setTriggerBadXtId
void setTriggerBadXtId(int x)
Definition: ODFEDAQConfig.h:37
ODFEDAQConfig::m_del
int m_del
Definition: ODFEDAQConfig.h:62
DDAxes::x
ODFEDAQConfig::setBadXtId
void setBadXtId(int x)
Definition: ODFEDAQConfig.h:33
ODFEDAQConfig::setVersion
void setVersion(int id)
Definition: ODFEDAQConfig.h:23
watchdog.const
const
Definition: watchdog.py:83
ODFEDAQConfig::getWeightId
int getWeightId() const
Definition: ODFEDAQConfig.h:31
ODFEDAQConfig::setTriggerBadTTId
void setTriggerBadTTId(int x)
Definition: ODFEDAQConfig.h:39
ODFEDAQConfig::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODFEDAQConfig.cc:92
ODFEDAQConfig::getVersion
int getVersion() const
Definition: ODFEDAQConfig.h:24
ODFEDAQConfig::setId
void setId(int id)
Definition: ODFEDAQConfig.h:18
ODFEDAQConfig::getBadTTId
int getBadTTId() const
Definition: ODFEDAQConfig.h:36
ODFEDAQConfig::m_wei
int m_wei
Definition: ODFEDAQConfig.h:63
ODFEDAQConfig::ODFEDAQConfig
ODFEDAQConfig()
Definition: ODFEDAQConfig.cc:28
ODFEDAQConfig::setWeightId
void setWeightId(int x)
Definition: ODFEDAQConfig.h:30
ODFEDAQConfig::getId
int getId() const
Definition: ODFEDAQConfig.h:19
ODFEDAQConfig::clear
void clear()
Definition: ODFEDAQConfig.cc:38
ODFEDAQConfig::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODFEDAQConfig.cc:73
ODFEDAQConfig::~ODFEDAQConfig
~ODFEDAQConfig() override
Definition: ODFEDAQConfig.cc:52
ODFEDAQConfig::writeDB
void writeDB() noexcept(false)
Definition: ODFEDAQConfig.cc:120
ODFEDAQConfig::getComment
std::string getComment() const
Definition: ODFEDAQConfig.h:43
ODFEDAQConfig::m_ID
int m_ID
Definition: ODFEDAQConfig.h:60
IODConfig
Definition: IODConfig.h:18
ODFEDAQConfig::m_ped
int m_ped
Definition: ODFEDAQConfig.h:61
ODFEDAQConfig::m_tbtt
int m_tbtt
Definition: ODFEDAQConfig.h:68
ODFEDAQConfig::setPedestalId
void setPedestalId(int x)
Definition: ODFEDAQConfig.h:26
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODFEDAQConfig::getDelayId
int getDelayId() const
Definition: ODFEDAQConfig.h:29
ODFEDAQConfig::getPedestalId
int getPedestalId() const
Definition: ODFEDAQConfig.h:27
std
Definition: JetResolutionObject.h:76
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODFEDAQConfig::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODFEDAQConfig.cc:54
ODFEDAQConfig
Definition: ODFEDAQConfig.h:9
ODFEDAQConfig::m_com
std::string m_com
Definition: ODFEDAQConfig.h:70
ODFEDAQConfig::fetchData
void fetchData(ODFEDAQConfig *result) noexcept(false)
Definition: ODFEDAQConfig.cc:149
ODFEDAQConfig::getTriggerBadTTId
int getTriggerBadTTId() const
Definition: ODFEDAQConfig.h:40
ODFEDAQConfig::m_bxt
int m_bxt
Definition: ODFEDAQConfig.h:65
mps_fire.result
result
Definition: mps_fire.py:311
ODFEDAQConfig::setBadTTId
void setBadTTId(int x)
Definition: ODFEDAQConfig.h:35
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ODFEDAQConfig::m_tbxt
int m_tbxt
Definition: ODFEDAQConfig.h:67
ODFEDAQConfig::setDelayId
void setDelayId(int x)
Definition: ODFEDAQConfig.h:28