CMS 3D CMS Logo

CaliGeneralDat.h
Go to the documentation of this file.
1 #ifndef CALIGENERALDAT_H
2 #define CALIGENERALDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class CaliGeneralDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~CaliGeneralDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "CALI_GENERAL_DAT"; }
20 
21  inline void setNumEvents(int n) { m_numEvents = n; }
22  inline int getNumEvents() const { return m_numEvents; }
23 
24  inline void setComments(std::string comments) { m_comments = comments; }
25  inline std::string getComments() const { return m_comments; }
26 
27 private:
28  void prepareWrite() noexcept(false) override;
29 
30  void writeDB(const EcalLogicID* ecid, const CaliGeneralDat* item, CaliIOV* iov) noexcept(false);
31 
32  void fetchData(std::map<EcalLogicID, CaliGeneralDat>* fillVec, CaliIOV* iov) noexcept(false);
33 
34  // User data
36  std::string m_comments;
37 };
38 
39 #endif
CaliGeneralDat::getTable
std::string getTable() override
Definition: CaliGeneralDat.h:19
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
CaliIOV
Definition: CaliIOV.h:13
funct::false
false
Definition: Factorize.h:29
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CaliGeneralDat::fetchData
void fetchData(std::map< EcalLogicID, CaliGeneralDat > *fillVec, CaliIOV *iov) noexcept(false)
Definition: CaliGeneralDat.cc:65
watchdog.const
const
Definition: watchdog.py:83
CaliIOV.h
CaliGeneralDat::~CaliGeneralDat
~CaliGeneralDat() override
Definition: CaliGeneralDat.cc:21
CaliTag.h
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
CaliGeneralDat::m_numEvents
int m_numEvents
Definition: CaliGeneralDat.h:35
CaliGeneralDat::writeDB
void writeDB(const EcalLogicID *ecid, const CaliGeneralDat *item, CaliIOV *iov) noexcept(false)
Definition: CaliGeneralDat.cc:38
CaliGeneralDat::getNumEvents
int getNumEvents() const
Definition: CaliGeneralDat.h:22
CaliGeneralDat::setComments
void setComments(std::string comments)
Definition: CaliGeneralDat.h:24
CaliGeneralDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: CaliGeneralDat.cc:23
CaliGeneralDat::CaliGeneralDat
CaliGeneralDat()
Definition: CaliGeneralDat.cc:12
CaliGeneralDat::getComments
std::string getComments() const
Definition: CaliGeneralDat.h:25
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
CaliGeneralDat::setNumEvents
void setNumEvents(int n)
Definition: CaliGeneralDat.h:21
genParticles_cff.map
map
Definition: genParticles_cff.py:11
CaliGeneralDat
Definition: CaliGeneralDat.h:12
CaliGeneralDat::m_comments
std::string m_comments
Definition: CaliGeneralDat.h:36