CMS 3D CMS Logo

MonPedestalsDat.h
Go to the documentation of this file.
1 #ifndef MONPEDESTALSDAT_H
2 #define MONPEDESTALSDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class MonPedestalsDat : public IDataItem {
12 public:
13  friend class EcalCondDBInterface; // XXX temp should not need
15  ~MonPedestalsDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "MON_PEDESTALS_DAT"; }
19 
20  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
21  inline float getPedMeanG1() const { return m_pedMeanG1; }
22 
23  inline void setPedMeanG6(float mean) { m_pedMeanG6 = mean; }
24  inline float getPedMeanG6() const { return m_pedMeanG6; }
25 
26  inline void setPedMeanG12(float mean) { m_pedMeanG12 = mean; }
27  inline float getPedMeanG12() const { return m_pedMeanG12; }
28 
29  inline void setPedRMSG1(float rms) { m_pedRMSG1 = rms; }
30  inline float getPedRMSG1() const { return m_pedRMSG1; }
31 
32  inline void setPedRMSG6(float rms) { m_pedRMSG6 = rms; }
33  inline float getPedRMSG6() const { return m_pedRMSG6; }
34 
35  inline void setPedRMSG12(float rms) { m_pedRMSG12 = rms; }
36  inline float getPedRMSG12() const { return m_pedRMSG12; }
37 
38  inline void setTaskStatus(bool status) { m_taskStatus = status; }
39  inline bool getTaskStatus() const { return m_taskStatus; }
40 
41 private:
42  void prepareWrite() noexcept(false) override;
43 
44  void writeDB(const EcalLogicID* ecid, const MonPedestalsDat* item, MonRunIOV* iov) noexcept(false);
45 
47 
48  void fetchData(std::map<EcalLogicID, MonPedestalsDat>* fillMap, MonRunIOV* iov) noexcept(false);
49 
50  // User data
51  float m_pedMeanG1;
52  float m_pedMeanG6;
53  float m_pedMeanG12;
54  float m_pedRMSG1;
55  float m_pedRMSG6;
56  float m_pedRMSG12;
58 };
59 
60 #endif
MonPedestalsDat::m_taskStatus
bool m_taskStatus
Definition: MonPedestalsDat.h:57
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
MonPedestalsDat::getPedMeanG1
float getPedMeanG1() const
Definition: MonPedestalsDat.h:21
IDataItem.h
MonPedestalsDat::setPedMeanG1
void setPedMeanG1(float mean)
Definition: MonPedestalsDat.h:20
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
funct::false
false
Definition: Factorize.h:29
MonPedestalsDat::setPedMeanG6
void setPedMeanG6(float mean)
Definition: MonPedestalsDat.h:23
MonPedestalsDat::m_pedRMSG12
float m_pedRMSG12
Definition: MonPedestalsDat.h:56
mps_update.status
status
Definition: mps_update.py:69
MonPedestalsDat::m_pedRMSG1
float m_pedRMSG1
Definition: MonPedestalsDat.h:54
MonPedestalsDat
Definition: MonPedestalsDat.h:11
MonPedestalsDat::fetchData
void fetchData(std::map< EcalLogicID, MonPedestalsDat > *fillMap, MonRunIOV *iov) noexcept(false)
Definition: MonPedestalsDat.cc:76
watchdog.const
const
Definition: watchdog.py:83
SiStripPI::rms
Definition: SiStripPayloadInspectorHelper.h:169
MonPedestalsDat::setPedRMSG1
void setPedRMSG1(float rms)
Definition: MonPedestalsDat.h:29
MonPedestalsDat::getPedRMSG6
float getPedRMSG6() const
Definition: MonPedestalsDat.h:33
MonPedestalsDat::m_pedMeanG1
float m_pedMeanG1
Definition: MonPedestalsDat.h:51
IDataItem
Definition: IDataItem.h:16
MonPedestalsDat::setPedMeanG12
void setPedMeanG12(float mean)
Definition: MonPedestalsDat.h:26
MonPedestalsDat::getPedMeanG6
float getPedMeanG6() const
Definition: MonPedestalsDat.h:24
MonPedestalsDat::MonPedestalsDat
MonPedestalsDat()
Definition: MonPedestalsDat.cc:11
EcalLogicID
Definition: EcalLogicID.h:7
MonPedestalsDat::m_pedRMSG6
float m_pedRMSG6
Definition: MonPedestalsDat.h:55
MonPedestalsDat::m_pedMeanG12
float m_pedMeanG12
Definition: MonPedestalsDat.h:53
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MonRunIOV.h
MonPedestalsDat::getPedRMSG1
float getPedRMSG1() const
Definition: MonPedestalsDat.h:30
MonPedestalsDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, MonPedestalsDat > *data, MonRunIOV *iov) noexcept(false)
Definition: MonPedestalsDat.cc:124
MonRunIOV
Definition: MonRunIOV.h:14
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
MonPedestalsDat::setTaskStatus
void setTaskStatus(bool status)
Definition: MonPedestalsDat.h:38
MonPedestalsDat::getTaskStatus
bool getTaskStatus() const
Definition: MonPedestalsDat.h:39
MonPedestalsDat::getPedRMSG12
float getPedRMSG12() const
Definition: MonPedestalsDat.h:36
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
MonPedestalsDat::~MonPedestalsDat
~MonPedestalsDat() override
Definition: MonPedestalsDat.cc:26
MonPedestalsDat::setPedRMSG12
void setPedRMSG12(float rms)
Definition: MonPedestalsDat.h:35
MonPedestalsDat::getPedMeanG12
float getPedMeanG12() const
Definition: MonPedestalsDat.h:27
MonPedestalsDat::getTable
std::string getTable() override
Definition: MonPedestalsDat.h:18
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MonPedestalsDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: MonPedestalsDat.cc:28
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MonPedestalsDat::writeDB
void writeDB(const EcalLogicID *ecid, const MonPedestalsDat *item, MonRunIOV *iov) noexcept(false)
Definition: MonPedestalsDat.cc:45
MonPedestalsDat::m_pedMeanG6
float m_pedMeanG6
Definition: MonPedestalsDat.h:52
MonPedestalsDat::setPedRMSG6
void setPedRMSG6(float rms)
Definition: MonPedestalsDat.h:32