CMS 3D CMS Logo

MonPNLed1Dat.h
Go to the documentation of this file.
1 #ifndef MONPNLED1DAT_H
2 #define MONPNLED1DAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonPNLed1Dat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
15  MonPNLed1Dat();
16  ~MonPNLed1Dat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_PN_LED1_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 mean) { m_adcRMSG1 = mean; }
25  inline float getADCRMSG1() const { return m_adcRMSG1; }
26 
27  inline void setADCMeanG16(float mean) { m_adcMeanG16 = mean; }
28  inline float getADCMeanG16() const { return m_adcMeanG16; }
29 
30  inline void setADCRMSG16(float mean) { m_adcRMSG16 = mean; }
31  inline float getADCRMSG16() const { return m_adcRMSG16; }
32 
33  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
34  inline float getPedMeanG1() const { return m_pedMeanG1; }
35 
36  inline void setPedRMSG1(float mean) { m_pedRMSG1 = mean; }
37  inline float getPedRMSG1() const { return m_pedRMSG1; }
38 
39  inline void setPedMeanG16(float mean) { m_pedMeanG16 = mean; }
40  inline float getPedMeanG16() const { return m_pedMeanG16; }
41 
42  inline void setPedRMSG16(float mean) { m_pedRMSG16 = mean; }
43  inline float getPedRMSG16() const { return m_pedRMSG16; }
44 
45  inline void setTaskStatus(bool status) { m_taskStatus = status; }
46  inline bool getTaskStatus() const { return m_taskStatus; }
47 
48 private:
49  void prepareWrite() noexcept(false) override;
50 
51  void writeDB(const EcalLogicID* ecid, const MonPNLed1Dat* item, MonRunIOV* iov) noexcept(false);
52 
54 
55  void fetchData(std::map<EcalLogicID, MonPNLed1Dat>* fillVec, MonRunIOV* iov) noexcept(false);
56 
57  // User data
58  float m_adcMeanG1;
59  float m_adcRMSG1;
60  float m_adcMeanG16;
61  float m_adcRMSG16;
62  float m_pedMeanG1;
63  float m_pedRMSG1;
64  float m_pedMeanG16;
65  float m_pedRMSG16;
67 };
68 
69 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
MonPNLed1Dat::setPedMeanG1
void setPedMeanG1(float mean)
Definition: MonPNLed1Dat.h:33
IDataItem.h
MonPNLed1Dat::m_pedRMSG1
float m_pedRMSG1
Definition: MonPNLed1Dat.h:63
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
funct::false
false
Definition: Factorize.h:29
MonPNLed1Dat::getTaskStatus
bool getTaskStatus() const
Definition: MonPNLed1Dat.h:46
mps_update.status
status
Definition: mps_update.py:68
MonPNLed1Dat::setPedRMSG16
void setPedRMSG16(float mean)
Definition: MonPNLed1Dat.h:42
MonPNLed1Dat::getPedRMSG1
float getPedRMSG1() const
Definition: MonPNLed1Dat.h:37
MonPNLed1Dat::setADCMeanG1
void setADCMeanG1(float mean)
Definition: MonPNLed1Dat.h:21
MonPNLed1Dat::setADCRMSG16
void setADCRMSG16(float mean)
Definition: MonPNLed1Dat.h:30
MonPNLed1Dat::getADCRMSG16
float getADCRMSG16() const
Definition: MonPNLed1Dat.h:31
MonPNLed1Dat::setADCRMSG1
void setADCRMSG1(float mean)
Definition: MonPNLed1Dat.h:24
watchdog.const
const
Definition: watchdog.py:83
MonPNLed1Dat::m_adcRMSG1
float m_adcRMSG1
Definition: MonPNLed1Dat.h:59
MonPNLed1Dat::setPedRMSG1
void setPedRMSG1(float mean)
Definition: MonPNLed1Dat.h:36
MonPNLed1Dat::getADCMeanG16
float getADCMeanG16() const
Definition: MonPNLed1Dat.h:28
MonPNLed1Dat::m_taskStatus
bool m_taskStatus
Definition: MonPNLed1Dat.h:66
IDataItem
Definition: IDataItem.h:16
MonPNLed1Dat::getPedMeanG16
float getPedMeanG16() const
Definition: MonPNLed1Dat.h:40
EcalLogicID
Definition: EcalLogicID.h:7
MonPNLed1Dat::MonPNLed1Dat
MonPNLed1Dat()
Definition: MonPNLed1Dat.cc:12
MonPNLed1Dat
Definition: MonPNLed1Dat.h:12
MonPNLed1Dat::getADCRMSG1
float getADCRMSG1() const
Definition: MonPNLed1Dat.h:25
MonPNLed1Dat::getPedMeanG1
float getPedMeanG1() const
Definition: MonPNLed1Dat.h:34
MonRunIOV.h
MonPNLed1Dat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonPNLed1Dat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonPNLed1Dat.cc:130
MonPNLed1Dat::writeDB
void writeDB(const EcalLogicID *ecid, const MonPNLed1Dat *item, MonRunIOV *iov) noexcept(false)
Definition: MonPNLed1Dat.cc:47
MonPNLed1Dat::fetchData
void fetchData(std::map< EcalLogicID, MonPNLed1Dat > *fillVec, MonRunIOV *iov) noexcept(false)
Definition: MonPNLed1Dat.cc:81
MonPNLed1Dat::m_pedRMSG16
float m_pedRMSG16
Definition: MonPNLed1Dat.h:65
MonPNLed1Dat::getTable
std::string getTable() override
Definition: MonPNLed1Dat.h:19
MonPNLed1Dat::m_adcRMSG16
float m_adcRMSG16
Definition: MonPNLed1Dat.h:61
MonPNLed1Dat::getPedRMSG16
float getPedRMSG16() const
Definition: MonPNLed1Dat.h:43
MonRunIOV
Definition: MonRunIOV.h:14
MonPNLed1Dat::setTaskStatus
void setTaskStatus(bool status)
Definition: MonPNLed1Dat.h:45
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
MonPNLed1Dat::m_pedMeanG1
float m_pedMeanG1
Definition: MonPNLed1Dat.h:62
MonPNLed1Dat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MonPNLed1Dat.cc:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MonPNLed1Dat::getADCMeanG1
float getADCMeanG1() const
Definition: MonPNLed1Dat.h:22
MonRunTag.h
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
MonPNLed1Dat::setPedMeanG16
void setPedMeanG16(float mean)
Definition: MonPNLed1Dat.h:39
MonPNLed1Dat::m_adcMeanG1
float m_adcMeanG1
Definition: MonPNLed1Dat.h:58
MonPNLed1Dat::m_pedMeanG16
float m_pedMeanG16
Definition: MonPNLed1Dat.h:64
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MonPNLed1Dat::~MonPNLed1Dat
~MonPNLed1Dat() override
Definition: MonPNLed1Dat.cc:29
MonPNLed1Dat::m_adcMeanG16
float m_adcMeanG16
Definition: MonPNLed1Dat.h:60
MonPNLed1Dat::setADCMeanG16
void setADCMeanG16(float mean)
Definition: MonPNLed1Dat.h:27