CMS 3D CMS Logo

DCUCCSDat.h
Go to the documentation of this file.
1 #ifndef DCUCCSDAT_H
2 #define DCUCCSDAT_H
3 
4 #include <map>
5 #include <stdexcept>
6 
11 
12 class DCUCCSDat : public IDataItem {
13 public:
14  friend class EcalCondDBInterface;
15  DCUCCSDat();
16  ~DCUCCSDat() override;
17 
18  // User data methods
19  inline std::string getTable() override { return "DCU_CCS_DAT"; }
20 
21  inline void setM1VDD1(float temp) { m_m1_vdd1 = temp; }
22  inline void setM2VDD1(float temp) { m_m2_vdd1 = temp; }
23  inline void setM1VDD2(float temp) { m_m1_vdd2 = temp; }
24  inline void setM2VDD2(float temp) { m_m2_vdd2 = temp; }
25  inline void setVDD(float m1vdd1, float m1vdd2, float m2vdd1, float m2vdd2) {
26  setM1VDD1(m1vdd1);
27  setM1VDD2(m1vdd2);
28  setM2VDD1(m2vdd1);
29  setM2VDD2(m2vdd2);
30  }
31  inline void setM1Vinj(float temp) { m_m1_vinj = temp; }
32  inline void setM2Vinj(float temp) { m_m2_vinj = temp; }
33  inline void setVinj(float v1, float v2) {
34  setM1Vinj(v1);
35  setM2Vinj(v2);
36  }
37  inline void setM1Vcc(float temp) { m_m1_vcc = temp; }
38  inline void setM2Vcc(float temp) { m_m2_vcc = temp; }
39  inline void setVcc(float v1, float v2) {
40  setM1Vcc(v1);
41  setM2Vcc(v2);
42  }
43  inline void setM1DCUTemp(float temp) { m_m1_dcutemp = temp; }
44  inline void setM2DCUTemp(float temp) { m_m2_dcutemp = temp; }
45  inline void setDCUTemp(float t1, float t2) {
48  }
49  inline void setCCSTempLow(float temp) { m_ccstemplow = temp; }
50  inline void setCCSTempHigh(float temp) { m_ccstemphigh = temp; }
51  inline void setCCSTemp(float low, float high) {
54  }
55  inline void setM1(float vdd1, float vdd2, float vinj, float vcc, float dcutemp) {
56  setM1VDD1(vdd1);
57  setM1VDD2(vdd2);
58  setM1Vinj(vinj);
59  setM1Vcc(vcc);
60  setM1DCUTemp(dcutemp);
61  }
62  inline void setM2(float vdd1, float vdd2, float vinj, float vcc, float dcutemp) {
63  setM2VDD1(vdd1);
64  setM2VDD2(vdd2);
65  setM2Vinj(vinj);
66  setM2Vcc(vcc);
67  setM2DCUTemp(dcutemp);
68  }
69  inline float getM1VDD1() const { return m_m1_vdd1; }
70  inline float getM1VDD2() const { return m_m1_vdd2; }
71  inline float getM2VDD1() const { return m_m2_vdd1; }
72  inline float getM2VDD2() const { return m_m2_vdd2; }
73  inline float getM1Vinj() const { return m_m1_vinj; }
74  inline float getM2Vinj() const { return m_m2_vinj; }
75  inline float getM1Vcc() const { return m_m1_vcc; }
76  inline float getM2Vcc() const { return m_m2_vcc; }
77  inline float getM1DCUTemp() const { return m_m1_dcutemp; }
78  inline float getM2DCUTemp() const { return m_m2_dcutemp; }
79  inline float getCCSTempLow() const { return m_ccstemplow; }
80  inline float getCCSTempHigh() const { return m_ccstemphigh; }
81 
82 private:
83  void prepareWrite() noexcept(false) override;
84 
85  void writeDB(const EcalLogicID* ecid, const DCUCCSDat* item, DCUIOV* iov) noexcept(false);
86 
87  void writeArrayDB(const std::map<EcalLogicID, DCUCCSDat>* data, DCUIOV* iov) noexcept(false);
88 
89  void fetchData(std::map<EcalLogicID, DCUCCSDat>* fillVec, DCUIOV* iov) noexcept(false);
90 
91  // User data
92  float m_m1_vdd1;
93  float m_m2_vdd1;
94  float m_m1_vdd2;
95  float m_m2_vdd2;
96  float m_m1_vinj;
97  float m_m2_vinj;
98  float m_m1_vcc;
99  float m_m2_vcc;
104 };
105 
106 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
IDataItem.h
DCUCCSDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: DCUCCSDat.cc:34
funct::false
false
Definition: Factorize.h:29
DCUCCSDat::setM2VDD2
void setM2VDD2(float temp)
Definition: DCUCCSDat.h:24
DCUCCSDat::m_ccstemplow
float m_ccstemplow
Definition: DCUCCSDat.h:102
DCUCCSDat::setM2Vcc
void setM2Vcc(float temp)
Definition: DCUCCSDat.h:38
DCUCCSDat::m_m1_vinj
float m_m1_vinj
Definition: DCUCCSDat.h:96
DCUCCSDat::getCCSTempHigh
float getCCSTempHigh() const
Definition: DCUCCSDat.h:80
DCUCCSDat::setM2DCUTemp
void setM2DCUTemp(float temp)
Definition: DCUCCSDat.h:44
DCUCCSDat::setVDD
void setVDD(float m1vdd1, float m1vdd2, float m2vdd1, float m2vdd2)
Definition: DCUCCSDat.h:25
DCUIOV
Definition: DCUIOV.h:13
DCUCCSDat::setVcc
void setVcc(float v1, float v2)
Definition: DCUCCSDat.h:39
DCUCCSDat::m_m1_dcutemp
float m_m1_dcutemp
Definition: DCUCCSDat.h:100
DCUCCSDat::m_m2_vinj
float m_m2_vinj
Definition: DCUCCSDat.h:97
DCUCCSDat::setM1
void setM1(float vdd1, float vdd2, float vinj, float vcc, float dcutemp)
Definition: DCUCCSDat.h:55
DCUCCSDat::getM1DCUTemp
float getM1DCUTemp() const
Definition: DCUCCSDat.h:77
watchdog.const
const
Definition: watchdog.py:83
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
DCUCCSDat::setM2
void setM2(float vdd1, float vdd2, float vinj, float vcc, float dcutemp)
Definition: DCUCCSDat.h:62
DCUCCSDat::m_ccstemphigh
float m_ccstemphigh
Definition: DCUCCSDat.h:103
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
DCUCCSDat::getM1Vcc
float getM1Vcc() const
Definition: DCUCCSDat.h:75
IDataItem
Definition: IDataItem.h:16
DCUCCSDat::getM2Vcc
float getM2Vcc() const
Definition: DCUCCSDat.h:76
EcalLogicID
Definition: EcalLogicID.h:7
DCUCCSDat::getM2VDD2
float getM2VDD2() const
Definition: DCUCCSDat.h:72
DCUCCSDat::setM1VDD1
void setM1VDD1(float temp)
Definition: DCUCCSDat.h:21
DCUCCSDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, DCUCCSDat > *data, DCUIOV *iov) noexcept(false)
Definition: DCUCCSDat.cc:139
DCUCCSDat::m_m1_vdd1
float m_m1_vdd1
Definition: DCUCCSDat.h:92
DCUCCSDat::setVinj
void setVinj(float v1, float v2)
Definition: DCUCCSDat.h:33
DCUTag.h
DCUCCSDat::getM1VDD2
float getM1VDD2() const
Definition: DCUCCSDat.h:70
DCUCCSDat::setM1DCUTemp
void setM1DCUTemp(float temp)
Definition: DCUCCSDat.h:43
DCUCCSDat::m_m2_vdd2
float m_m2_vdd2
Definition: DCUCCSDat.h:95
DCUCCSDat::setCCSTemp
void setCCSTemp(float low, float high)
Definition: DCUCCSDat.h:51
DCUCCSDat::setM1Vinj
void setM1Vinj(float temp)
Definition: DCUCCSDat.h:31
DCUCCSDat::setM2VDD1
void setM2VDD1(float temp)
Definition: DCUCCSDat.h:22
DCUCCSDat::setCCSTempHigh
void setCCSTempHigh(float temp)
Definition: DCUCCSDat.h:50
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
DCUCCSDat::setCCSTempLow
void setCCSTempLow(float temp)
Definition: DCUCCSDat.h:49
DCUCCSDat::getM1VDD1
float getM1VDD1() const
Definition: DCUCCSDat.h:69
DCUCCSDat::getM2Vinj
float getM2Vinj() const
Definition: DCUCCSDat.h:74
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DCUCCSDat::m_m2_vcc
float m_m2_vcc
Definition: DCUCCSDat.h:99
DCUCCSDat::~DCUCCSDat
~DCUCCSDat() override
Definition: DCUCCSDat.cc:32
EcalLogicID.h
DCUCCSDat::getM2VDD1
float getM2VDD1() const
Definition: DCUCCSDat.h:71
DCUIOV.h
LaserClient_cfi.high
high
Definition: LaserClient_cfi.py:50
std
Definition: JetResolutionObject.h:76
DCUCCSDat::DCUCCSDat
DCUCCSDat()
Definition: DCUCCSDat.cc:12
DCUCCSDat::getTable
std::string getTable() override
Definition: DCUCCSDat.h:19
DCUCCSDat::getM1Vinj
float getM1Vinj() const
Definition: DCUCCSDat.h:73
DCUCCSDat::setM1Vcc
void setM1Vcc(float temp)
Definition: DCUCCSDat.h:37
DCUCCSDat::fetchData
void fetchData(std::map< EcalLogicID, DCUCCSDat > *fillVec, DCUIOV *iov) noexcept(false)
Definition: DCUCCSDat.cc:90
DCUCCSDat::getCCSTempLow
float getCCSTempLow() const
Definition: DCUCCSDat.h:79
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DCUCCSDat::m_m2_dcutemp
float m_m2_dcutemp
Definition: DCUCCSDat.h:101
DCUCCSDat::getM2DCUTemp
float getM2DCUTemp() const
Definition: DCUCCSDat.h:78
genParticles_cff.map
map
Definition: genParticles_cff.py:11
DCUCCSDat::setM1VDD2
void setM1VDD2(float temp)
Definition: DCUCCSDat.h:23
DCUCCSDat::writeDB
void writeDB(const EcalLogicID *ecid, const DCUCCSDat *item, DCUIOV *iov) noexcept(false)
Definition: DCUCCSDat.cc:53
DCUCCSDat::m_m2_vdd1
float m_m2_vdd1
Definition: DCUCCSDat.h:93
DCUCCSDat::setDCUTemp
void setDCUTemp(float t1, float t2)
Definition: DCUCCSDat.h:45
LaserClient_cfi.low
low
Definition: LaserClient_cfi.py:52
DCUCCSDat::m_m1_vdd2
float m_m1_vdd2
Definition: DCUCCSDat.h:94
DCUCCSDat::setM2Vinj
void setM2Vinj(float temp)
Definition: DCUCCSDat.h:32
DCUCCSDat::m_m1_vcc
float m_m1_vcc
Definition: DCUCCSDat.h:98
DCUCCSDat
Definition: DCUCCSDat.h:12