CMS 3D CMS Logo

MonShapeQualityDat.h
Go to the documentation of this file.
1 #ifndef MONSHAPEQUALITYDAT_H
2 #define MONSHAPEQUALITYDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonShapeQualityDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~MonShapeQualityDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_SHAPE_QUALITY_DAT"; }
20 
21  inline void setAvgChi2(float chi2) { m_avgChi2 = chi2; }
22  inline float getAvgChi2() const { return m_avgChi2; }
23 
24 private:
25  void prepareWrite() noexcept(false) override;
26 
27  void writeDB(const EcalLogicID* ecid, const MonShapeQualityDat* item, MonRunIOV* iov) noexcept(false);
28 
30 
31  void fetchData(std::map<EcalLogicID, MonShapeQualityDat>* fillVec, MonRunIOV* iov) noexcept(false);
32 
33  // User data
34  float m_avgChi2;
35 };
36 
37 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
MonShapeQualityDat::writeDB
void writeDB(const EcalLogicID *ecid, const MonShapeQualityDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonShapeQualityDat.cc:38
funct::false
false
Definition: Factorize.h:29
MonShapeQualityDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonShapeQualityDat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonShapeQualityDat.cc:107
MonShapeQualityDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MonShapeQualityDat.cc:23
MonShapeQualityDat::MonShapeQualityDat
MonShapeQualityDat()
Definition: MonShapeQualityDat.cc:12
MonShapeQualityDat
Definition: MonShapeQualityDat.h:12
hltPixelTracks_cff.chi2
chi2
Definition: hltPixelTracks_cff.py:25
watchdog.const
const
Definition: watchdog.py:83
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
MonShapeQualityDat::fetchData
void fetchData(std::map< EcalLogicID, MonShapeQualityDat > *fillVec, MonRunIOV *iov) noexcept(false)
Definition: MonShapeQualityDat.cc:66
MonRunIOV.h
MonShapeQualityDat::m_avgChi2
float m_avgChi2
Definition: MonShapeQualityDat.h:34
MonShapeQualityDat::getTable
std::string getTable() override
Definition: MonShapeQualityDat.h:19
MonRunIOV
Definition: MonRunIOV.h:14
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MonRunTag.h
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
MonShapeQualityDat::setAvgChi2
void setAvgChi2(float chi2)
Definition: MonShapeQualityDat.h:21
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MonShapeQualityDat::getAvgChi2
float getAvgChi2() const
Definition: MonShapeQualityDat.h:22
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MonShapeQualityDat::~MonShapeQualityDat
~MonShapeQualityDat() override
Definition: MonShapeQualityDat.cc:21