CMS 3D CMS Logo

MonTestPulseDat.h
Go to the documentation of this file.
1 #ifndef MONTESTPULSEDAT_H
2 #define MONTESTPULSEDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonTestPulseDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
16  ~MonTestPulseDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_TEST_PULSE_DAT"; }
20 
21  inline void setADCMeanG1(float mean) { m_adcMeanG1 = mean; }
22  inline float getADCMeanG1() const { return m_adcMeanG1; }
23 
24  inline void setADCRMSG1(float rms) { m_adcRMSG1 = rms; }
25  inline float getADCRMSG1() const { return m_adcRMSG1; }
26 
27  inline void setADCMeanG6(float mean) { m_adcMeanG6 = mean; }
28  inline float getADCMeanG6() const { return m_adcMeanG6; }
29 
30  inline void setADCRMSG6(float rms) { m_adcRMSG6 = rms; }
31  inline float getADCRMSG6() const { return m_adcRMSG6; }
32 
33  inline void setADCMeanG12(float mean) { m_adcMeanG12 = mean; }
34  inline float getADCMeanG12() const { return m_adcMeanG12; }
35 
36  inline void setADCRMSG12(float rms) { m_adcRMSG12 = rms; }
37  inline float getADCRMSG12() const { return m_adcRMSG12; }
38 
39  inline void setTaskStatus(bool status) { m_taskStatus = status; }
40  inline bool getTaskStatus() const { return m_taskStatus; }
41 
42 private:
43  void prepareWrite() noexcept(false) override;
44 
45  void writeDB(const EcalLogicID* ecid, const MonTestPulseDat* item, MonRunIOV* iov) noexcept(false);
46 
48 
49  void fetchData(std::map<EcalLogicID, MonTestPulseDat>* fillMap, MonRunIOV* iov) noexcept(false);
50 
51  // User data
52  float m_adcMeanG1;
53  float m_adcRMSG1;
54  float m_adcMeanG6;
55  float m_adcRMSG6;
56  float m_adcMeanG12;
57  float m_adcRMSG12;
59 };
60 
61 #endif
MonTestPulseDat::getADCMeanG12
float getADCMeanG12() const
Definition: MonTestPulseDat.h:34
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
MonTestPulseDat::m_taskStatus
bool m_taskStatus
Definition: MonTestPulseDat.h:58
MonTestPulseDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonTestPulseDat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonTestPulseDat.cc:122
MonTestPulseDat::m_adcMeanG1
float m_adcMeanG1
Definition: MonTestPulseDat.h:52
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
funct::false
false
Definition: Factorize.h:29
MonTestPulseDat::getTaskStatus
bool getTaskStatus() const
Definition: MonTestPulseDat.h:40
MonTestPulseDat
Definition: MonTestPulseDat.h:12
mps_update.status
status
Definition: mps_update.py:68
MonTestPulseDat::~MonTestPulseDat
~MonTestPulseDat() override
Definition: MonTestPulseDat.cc:27
MonTestPulseDat::writeDB
void writeDB(const EcalLogicID *ecid, const MonTestPulseDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonTestPulseDat.cc:44
MonTestPulseDat::getADCRMSG1
float getADCRMSG1() const
Definition: MonTestPulseDat.h:25
MonTestPulseDat::getADCMeanG6
float getADCMeanG6() const
Definition: MonTestPulseDat.h:28
MonTestPulseDat::setTaskStatus
void setTaskStatus(bool status)
Definition: MonTestPulseDat.h:39
watchdog.const
const
Definition: watchdog.py:83
SiStripPI::rms
Definition: SiStripPayloadInspectorHelper.h:169
MonTestPulseDat::m_adcRMSG6
float m_adcRMSG6
Definition: MonTestPulseDat.h:55
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
MonRunIOV.h
MonTestPulseDat::setADCMeanG12
void setADCMeanG12(float mean)
Definition: MonTestPulseDat.h:33
MonTestPulseDat::getADCMeanG1
float getADCMeanG1() const
Definition: MonTestPulseDat.h:22
MonTestPulseDat::setADCRMSG12
void setADCRMSG12(float rms)
Definition: MonTestPulseDat.h:36
MonRunIOV
Definition: MonRunIOV.h:14
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
MonTestPulseDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MonTestPulseDat.cc:29
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MonRunTag.h
MonTestPulseDat::setADCMeanG1
void setADCMeanG1(float mean)
Definition: MonTestPulseDat.h:21
EcalLogicID.h
MonTestPulseDat::getTable
std::string getTable() override
Definition: MonTestPulseDat.h:19
MonTestPulseDat::m_adcMeanG6
float m_adcMeanG6
Definition: MonTestPulseDat.h:54
MonTestPulseDat::m_adcRMSG12
float m_adcRMSG12
Definition: MonTestPulseDat.h:57
std
Definition: JetResolutionObject.h:76
MonTestPulseDat::fetchData
void fetchData(std::map< EcalLogicID, MonTestPulseDat > *fillMap, MonRunIOV *iov) noexcept(false)
Definition: MonTestPulseDat.cc:75
MonTestPulseDat::setADCMeanG6
void setADCMeanG6(float mean)
Definition: MonTestPulseDat.h:27
MonTestPulseDat::m_adcRMSG1
float m_adcRMSG1
Definition: MonTestPulseDat.h:53
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MonTestPulseDat::getADCRMSG12
float getADCRMSG12() const
Definition: MonTestPulseDat.h:37
MonTestPulseDat::setADCRMSG1
void setADCRMSG1(float rms)
Definition: MonTestPulseDat.h:24
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MonTestPulseDat::setADCRMSG6
void setADCRMSG6(float rms)
Definition: MonTestPulseDat.h:30
MonTestPulseDat::m_adcMeanG12
float m_adcMeanG12
Definition: MonTestPulseDat.h:56
MonTestPulseDat::MonTestPulseDat
MonTestPulseDat()
Definition: MonTestPulseDat.cc:12
MonTestPulseDat::getADCRMSG6
float getADCRMSG6() const
Definition: MonTestPulseDat.h:31