CMS 3D CMS Logo

MonPNPedDat.h
Go to the documentation of this file.
1 #ifndef MONPNPEDDAT_H
2 #define MONPNPEDDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class MonPNPedDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
15  MonPNPedDat();
16  ~MonPNPedDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "MON_PN_PED_DAT"; }
20 
21  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
22  inline float getPedMeanG1() const { return m_pedMeanG1; }
23 
24  inline void setPedRMSG1(float mean) { m_pedRMSG1 = mean; }
25  inline float getPedRMSG1() const { return m_pedRMSG1; }
26 
27  inline void setPedMeanG16(float mean) { m_pedMeanG16 = mean; }
28  inline float getPedMeanG16() const { return m_pedMeanG16; }
29 
30  inline void setPedRMSG16(float mean) { m_pedRMSG16 = mean; }
31  inline float getPedRMSG16() const { return m_pedRMSG16; }
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 MonPNPedDat* item, MonRunIOV* iov) noexcept(false);
40 
42 
43  void fetchData(std::map<EcalLogicID, MonPNPedDat>* fillVec, MonRunIOV* iov) noexcept(false);
44 
45  // User data
46  float m_pedMeanG1;
47  float m_pedRMSG1;
48  float m_pedMeanG16;
49  float m_pedRMSG16;
51 };
52 
53 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
funct::false
false
Definition: Factorize.h:29
mps_update.status
status
Definition: mps_update.py:68
MonPNPedDat::setPedMeanG1
void setPedMeanG1(float mean)
Definition: MonPNPedDat.h:21
MonPNPedDat::m_pedRMSG16
float m_pedRMSG16
Definition: MonPNPedDat.h:49
watchdog.const
const
Definition: watchdog.py:83
MonPNPedDat::m_pedRMSG1
float m_pedRMSG1
Definition: MonPNPedDat.h:47
MonPNPedDat::setPedRMSG16
void setPedRMSG16(float mean)
Definition: MonPNPedDat.h:30
MonPNPedDat::getPedMeanG16
float getPedMeanG16() const
Definition: MonPNPedDat.h:28
MonPNPedDat::fetchData
void fetchData(std::map< EcalLogicID, MonPNPedDat > *fillVec, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:72
IDataItem
Definition: IDataItem.h:16
MonPNPedDat::setPedMeanG16
void setPedMeanG16(float mean)
Definition: MonPNPedDat.h:27
MonPNPedDat::setPedRMSG1
void setPedRMSG1(float mean)
Definition: MonPNPedDat.h:24
MonPNPedDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonPNPedDat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:116
EcalLogicID
Definition: EcalLogicID.h:7
MonPNPedDat::writeDB
void writeDB(const EcalLogicID *ecid, const MonPNPedDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonPNPedDat.cc:42
MonPNPedDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MonPNPedDat.cc:27
MonRunIOV.h
MonPNPedDat::~MonPNPedDat
~MonPNPedDat() override
Definition: MonPNPedDat.cc:25
MonPNPedDat::m_pedMeanG16
float m_pedMeanG16
Definition: MonPNPedDat.h:48
MonPNPedDat::getPedRMSG1
float getPedRMSG1() const
Definition: MonPNPedDat.h:25
MonPNPedDat::getPedMeanG1
float getPedMeanG1() const
Definition: MonPNPedDat.h:22
MonPNPedDat::getPedRMSG16
float getPedRMSG16() const
Definition: MonPNPedDat.h:31
MonRunIOV
Definition: MonRunIOV.h:14
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MonPNPedDat::setTaskStatus
void setTaskStatus(bool status)
Definition: MonPNPedDat.h:33
MonRunTag.h
MonPNPedDat::getTaskStatus
bool getTaskStatus() const
Definition: MonPNPedDat.h:34
EcalLogicID.h
MonPNPedDat::getTable
std::string getTable() override
Definition: MonPNPedDat.h:19
std
Definition: JetResolutionObject.h:76
MonPNPedDat::m_pedMeanG1
float m_pedMeanG1
Definition: MonPNPedDat.h:46
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MonPNPedDat::m_taskStatus
bool m_taskStatus
Definition: MonPNPedDat.h:50
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MonPNPedDat::MonPNPedDat
MonPNPedDat()
Definition: MonPNPedDat.cc:12
MonPNPedDat
Definition: MonPNPedDat.h:12