CMS 3D CMS Logo

ODCond2ConfInfo.h
Go to the documentation of this file.
1 #ifndef ODCOND2CONFINFO_H
2 #define ODCOND2CONFINFO_H
3 
4 #include <map>
5 #include <string>
6 
9 
10 typedef int run_t;
11 
12 class ODCond2ConfInfo : public IODConfig {
13 public:
14  friend class EcalCondDBInterface;
16  ~ODCond2ConfInfo() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "COND_2_CONF_INFO"; }
20 
21  inline void setId(int id) { m_ID = id; }
22  inline int getId() const { return m_ID; }
23 
24  inline void setType(std::string x) { m_type = x; }
25  inline std::string getType() const { return m_type; }
26 
27  inline void setRecordDate(const Tm& x) { m_rec_time = x; }
28  inline Tm getRecordDate() const { return m_rec_time; }
29 
30  inline void setLocation(std::string x) { m_loc = x; }
31  inline std::string getLocation() const { return m_loc; }
32 
33  inline void setRunNumber(int id) { m_run = id; }
34  inline int getRunNumber() const { return m_run; }
35 
36  inline void setDescription(std::string x) { m_desc = x; }
37  inline std::string getDescription() const { return m_desc; }
38 
39  inline void setDBDate(const Tm& x) { m_db_time = x; }
40  inline Tm getDBDate() const { return m_db_time; }
41 
42  // the tag is already in IODConfig
43 
44  int fetchID() noexcept(false);
45 
46  int fetchNextId() noexcept(false);
47  void setParameters(const std::map<std::string, std::string>& my_keys_map);
48 
49 private:
50  void prepareWrite() noexcept(false) override;
51 
52  void writeDB() noexcept(false);
53 
54  void clear();
55 
56  void fetchData(ODCond2ConfInfo* result) noexcept(false);
57 
58  void fetchParents() noexcept(false);
59 
60  // User data
61  int m_ID;
62  std::string m_type;
64  std::string m_loc;
65  int m_run;
66  std::string m_desc;
68  int m_loc_id;
69  int m_typ_id;
70 };
71 
72 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODCond2ConfInfo::m_rec_time
Tm m_rec_time
Definition: ODCond2ConfInfo.h:63
ODCond2ConfInfo::m_loc_id
int m_loc_id
Definition: ODCond2ConfInfo.h:68
funct::false
false
Definition: Factorize.h:29
ODCond2ConfInfo::getRecordDate
Tm getRecordDate() const
Definition: ODCond2ConfInfo.h:28
ODCond2ConfInfo::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODCond2ConfInfo.cc:35
ODCond2ConfInfo
Definition: ODCond2ConfInfo.h:12
ODCond2ConfInfo::getId
int getId() const
Definition: ODCond2ConfInfo.h:22
ODCond2ConfInfo::setId
void setId(int id)
Definition: ODCond2ConfInfo.h:21
ODCond2ConfInfo::writeDB
void writeDB() noexcept(false)
Definition: ODCond2ConfInfo.cc:128
IODConfig.h
ODCond2ConfInfo::setDBDate
void setDBDate(const Tm &x)
Definition: ODCond2ConfInfo.h:39
ODCond2ConfInfo::m_typ_id
int m_typ_id
Definition: ODCond2ConfInfo.h:69
DDAxes::x
ODCond2ConfInfo::fetchID
int fetchID() noexcept(false)
Definition: ODCond2ConfInfo.cc:196
ODCond2ConfInfo::getLocation
std::string getLocation() const
Definition: ODCond2ConfInfo.h:31
watchdog.const
const
Definition: watchdog.py:83
ODCond2ConfInfo::getType
std::string getType() const
Definition: ODCond2ConfInfo.h:25
ODCond2ConfInfo::fetchParents
void fetchParents() noexcept(false)
Definition: ODCond2ConfInfo.cc:55
ODCond2ConfInfo::m_type
std::string m_type
Definition: ODCond2ConfInfo.h:62
ODCond2ConfInfo::getRunNumber
int getRunNumber() const
Definition: ODCond2ConfInfo.h:34
ODCond2ConfInfo::~ODCond2ConfInfo
~ODCond2ConfInfo() override
Definition: ODCond2ConfInfo.cc:33
Tm
Definition: Tm.h:13
ODCond2ConfInfo::setLocation
void setLocation(std::string x)
Definition: ODCond2ConfInfo.h:30
ODCond2ConfInfo::clear
void clear()
Definition: ODCond2ConfInfo.cc:22
ODCond2ConfInfo::setDescription
void setDescription(std::string x)
Definition: ODCond2ConfInfo.h:36
ODCond2ConfInfo::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODCond2ConfInfo.cc:91
ODCond2ConfInfo::setRunNumber
void setRunNumber(int id)
Definition: ODCond2ConfInfo.h:33
Tm.h
IODConfig
Definition: IODConfig.h:18
ODCond2ConfInfo::fetchData
void fetchData(ODCond2ConfInfo *result) noexcept(false)
Definition: ODCond2ConfInfo.cc:154
ODCond2ConfInfo::getDescription
std::string getDescription() const
Definition: ODCond2ConfInfo.h:37
ODCond2ConfInfo::m_loc
std::string m_loc
Definition: ODCond2ConfInfo.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODCond2ConfInfo::m_run
int m_run
Definition: ODCond2ConfInfo.h:65
ODCond2ConfInfo::setRecordDate
void setRecordDate(const Tm &x)
Definition: ODCond2ConfInfo.h:27
std
Definition: JetResolutionObject.h:76
ODCond2ConfInfo::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODCond2ConfInfo.cc:118
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ODCond2ConfInfo::getTable
std::string getTable() override
Definition: ODCond2ConfInfo.h:19
run_t
int run_t
Definition: ODCond2ConfInfo.h:10
ODCond2ConfInfo::m_desc
std::string m_desc
Definition: ODCond2ConfInfo.h:66
ODCond2ConfInfo::setType
void setType(std::string x)
Definition: ODCond2ConfInfo.h:24
mps_fire.result
result
Definition: mps_fire.py:311
ODCond2ConfInfo::ODCond2ConfInfo
ODCond2ConfInfo()
Definition: ODCond2ConfInfo.cc:12
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ODCond2ConfInfo::m_ID
int m_ID
Definition: ODCond2ConfInfo.h:61
ODCond2ConfInfo::getDBDate
Tm getDBDate() const
Definition: ODCond2ConfInfo.h:40
ODCond2ConfInfo::m_db_time
Tm m_db_time
Definition: ODCond2ConfInfo.h:67