CMS 3D CMS Logo

CaliHVScanRatioDat.h
Go to the documentation of this file.
1 #ifndef CALIHVSCANRATIODAT_H
2 #define CALIHVSCANRATIODAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class CaliHVScanRatioDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~CaliHVScanRatioDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "CALI_HV_SCAN_RATIO_DAT"; }
20 
21  inline void setHVRatio(float c) { m_hvratio = c; }
22  inline float getHVRatio() const { return m_hvratio; }
23 
24  inline void setHVRatioRMS(float c) { m_hvratioRMS = c; }
25  inline float getHVRatioRMS() const { return m_hvratioRMS; }
26 
27  inline void setTaskStatus(bool s) { m_taskStatus = s; }
28  inline bool getTaskStatus() const { return m_taskStatus; }
29 
30 private:
31  void prepareWrite() noexcept(false) override;
32 
33  void writeDB(const EcalLogicID* ecid, const CaliHVScanRatioDat* item, CaliIOV* iov) noexcept(false);
34 
35  void fetchData(std::map<EcalLogicID, CaliHVScanRatioDat>* fillVec, CaliIOV* iov) noexcept(false);
36 
37  // User data
38  float m_hvratio;
39  float m_hvratioRMS;
41 };
42 
43 #endif
CaliHVScanRatioDat::m_taskStatus
bool m_taskStatus
Definition: CaliHVScanRatioDat.h:40
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
CaliIOV
Definition: CaliIOV.h:13
funct::false
false
Definition: Factorize.h:29
CaliHVScanRatioDat::getTable
std::string getTable() override
Definition: CaliHVScanRatioDat.h:19
CaliHVScanRatioDat
Definition: CaliHVScanRatioDat.h:12
CaliHVScanRatioDat::setHVRatio
void setHVRatio(float c)
Definition: CaliHVScanRatioDat.h:21
CaliHVScanRatioDat::getHVRatioRMS
float getHVRatioRMS() const
Definition: CaliHVScanRatioDat.h:25
watchdog.const
const
Definition: watchdog.py:83
CaliHVScanRatioDat::setTaskStatus
void setTaskStatus(bool s)
Definition: CaliHVScanRatioDat.h:27
CaliHVScanRatioDat::~CaliHVScanRatioDat
~CaliHVScanRatioDat() override
Definition: CaliHVScanRatioDat.cc:22
CaliIOV.h
CaliTag.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CaliHVScanRatioDat::m_hvratio
float m_hvratio
Definition: CaliHVScanRatioDat.h:38
IDataItem
Definition: IDataItem.h:16
CaliHVScanRatioDat::fetchData
void fetchData(std::map< EcalLogicID, CaliHVScanRatioDat > *fillVec, CaliIOV *iov) noexcept(false)
Definition: CaliHVScanRatioDat.cc:69
CaliHVScanRatioDat::getHVRatio
float getHVRatio() const
Definition: CaliHVScanRatioDat.h:22
EcalLogicID
Definition: EcalLogicID.h:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
CaliHVScanRatioDat::getTaskStatus
bool getTaskStatus() const
Definition: CaliHVScanRatioDat.h:28
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
CaliHVScanRatioDat::writeDB
void writeDB(const EcalLogicID *ecid, const CaliHVScanRatioDat *item, CaliIOV *iov) noexcept(false)
Definition: CaliHVScanRatioDat.cc:39
CaliHVScanRatioDat::m_hvratioRMS
float m_hvratioRMS
Definition: CaliHVScanRatioDat.h:39
CaliHVScanRatioDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: CaliHVScanRatioDat.cc:24
genParticles_cff.map
map
Definition: genParticles_cff.py:11
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
CaliHVScanRatioDat::CaliHVScanRatioDat
CaliHVScanRatioDat()
Definition: CaliHVScanRatioDat.cc:12
CaliHVScanRatioDat::setHVRatioRMS
void setHVRatioRMS(float c)
Definition: CaliHVScanRatioDat.h:24