CMS 3D CMS Logo

MonLed2Dat.h
Go to the documentation of this file.
1 #ifndef MONLED2DAT_H
2 #define MONLED2DAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
11 
12 class MonLed2Dat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
15  MonLed2Dat();
16  ~MonLed2Dat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_LED2_DAT"; }
20 
21  inline void setVPTMean(float mean) { m_vptMean = mean; }
22  inline float getVPTMean() const { return m_vptMean; }
23 
24  inline void setVPTRMS(float rms) { m_vptRMS = rms; }
25  inline float getVPTRMS() const { return m_vptRMS; }
26 
27  inline void setVPTOverPNMean(float mean) { m_vptOverPNMean = mean; }
28  inline float getVPTOverPNMean() const { return m_vptOverPNMean; }
29 
30  inline void setVPTOverPNRMS(float rms) { m_vptOverPNRMS = rms; }
31  inline float getVPTOverPNRMS() const { return m_vptOverPNRMS; }
32 
33  inline void setTaskStatus(bool status) { m_taskStatus = status; }
34  inline bool getTaskStatus() const { return m_taskStatus; }
35 
36 private:
37  void prepareWrite() noexcept(false) override;
38 
39  void writeDB(const EcalLogicID* ecid, const MonLed2Dat* item, MonRunIOV* iov) noexcept(false);
40 
42 
43  void fetchData(std::map<EcalLogicID, MonLed2Dat>* fillMap, MonRunIOV* iov) noexcept(false);
44 
45  // User data
46  float m_vptMean;
47  float m_vptRMS;
51 };
52 
53 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
MonLed2Dat::setVPTRMS
void setVPTRMS(float rms)
Definition: MonLed2Dat.h:24
IDataItem.h
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
funct::false
false
Definition: Factorize.h:34
MonLed2Dat::writeDB
void writeDB(const EcalLogicID *ecid, const MonLed2Dat *item, MonRunIOV *iov) noexcept(false)
Definition: MonLed2Dat.cc:40
MonLed2Dat::setVPTOverPNRMS
void setVPTOverPNRMS(float rms)
Definition: MonLed2Dat.h:30
mps_update.status
status
Definition: mps_update.py:69
MonLed2Dat::~MonLed2Dat
~MonLed2Dat() override
Definition: MonLed2Dat.cc:23
watchdog.const
const
Definition: watchdog.py:83
SiStripPI::rms
Definition: SiStripPayloadInspectorHelper.h:169
MonLed2Dat::m_vptOverPNMean
float m_vptOverPNMean
Definition: MonLed2Dat.h:48
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MonRunIOV.h
MonLed2Dat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MonLed2Dat.cc:25
MonLed2Dat::m_vptOverPNRMS
float m_vptOverPNRMS
Definition: MonLed2Dat.h:49
MonLed2Dat::fetchData
void fetchData(std::map< EcalLogicID, MonLed2Dat > *fillMap, MonRunIOV *iov) noexcept(false)
Definition: MonLed2Dat.cc:70
MonLed2Dat::m_taskStatus
bool m_taskStatus
Definition: MonLed2Dat.h:50
MonLed2Dat::setTaskStatus
void setTaskStatus(bool status)
Definition: MonLed2Dat.h:33
MonRunIOV
Definition: MonRunIOV.h:14
MonLed2Dat::setVPTMean
void setVPTMean(float mean)
Definition: MonLed2Dat.h:21
MonLed2Dat
Definition: MonLed2Dat.h:12
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
MonLed2Dat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonLed2Dat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonLed2Dat.cc:116
MonRunTag.h
EcalLogicID.h
MonLed2Dat::m_vptMean
float m_vptMean
Definition: MonLed2Dat.h:46
std
Definition: JetResolutionObject.h:76
MonLed2Dat::getVPTOverPNRMS
float getVPTOverPNRMS() const
Definition: MonLed2Dat.h:31
MonLed2Dat::setVPTOverPNMean
void setVPTOverPNMean(float mean)
Definition: MonLed2Dat.h:27
MonLed2Dat::MonLed2Dat
MonLed2Dat()
Definition: MonLed2Dat.cc:10
MonLed2Dat::getVPTRMS
float getVPTRMS() const
Definition: MonLed2Dat.h:25
MonLed2Dat::getTaskStatus
bool getTaskStatus() const
Definition: MonLed2Dat.h:34
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MonLed2Dat::getVPTMean
float getVPTMean() const
Definition: MonLed2Dat.h:22
MonLed2Dat::getVPTOverPNMean
float getVPTOverPNMean() const
Definition: MonLed2Dat.h:28
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MonLed2Dat::m_vptRMS
float m_vptRMS
Definition: MonLed2Dat.h:47
MonLed2Dat::getTable
std::string getTable() override
Definition: MonLed2Dat.h:19