CMS 3D CMS Logo

FEConfigPedDat.h
Go to the documentation of this file.
1 #ifndef FECONFPEDDAT_H
2 #define FECONFPEDDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
11 class FEConfigPedDat : public IDataItem {
12 public:
13  friend class EcalCondDBInterface;
15  ~FEConfigPedDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "FE_CONFIG_PED_DAT"; }
19 
20  inline void setId(int x) { m_ID = x; }
21  inline int getId() const { return m_ID; }
22 
23  inline void setPedMeanG1(float mean) { m_pedMeanG1 = mean; }
24  inline float getPedMeanG1() const { return m_pedMeanG1; }
25 
26  inline void setPedMeanG6(float mean) { m_pedMeanG6 = mean; }
27  inline float getPedMeanG6() const { return m_pedMeanG6; }
28 
29  inline void setPedMeanG12(float mean) { m_pedMeanG12 = mean; }
30  inline float getPedMeanG12() const { return m_pedMeanG12; }
31 
32 private:
33  void prepareWrite() noexcept(false) override;
34 
35  void writeDB(const EcalLogicID* ecid, const FEConfigPedDat* item, FEConfigPedInfo* iconf) noexcept(false);
36 
38 
39  void fetchData(std::map<EcalLogicID, FEConfigPedDat>* fillMap, FEConfigPedInfo* iconf) noexcept(false);
40 
41  // User data
42  float m_pedMeanG1;
43  float m_pedMeanG6;
44  float m_pedMeanG12;
45  int m_ID;
46 };
47 
48 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDataItem.h
FEConfigPedDat::setId
void setId(int x)
Definition: FEConfigPedDat.h:20
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
funct::false
false
Definition: Factorize.h:34
FEConfigPedDat::m_pedMeanG6
float m_pedMeanG6
Definition: FEConfigPedDat.h:43
FEConfigPedDat::setPedMeanG6
void setPedMeanG6(float mean)
Definition: FEConfigPedDat.h:26
FEConfigPedDat::writeDB
void writeDB(const EcalLogicID *ecid, const FEConfigPedDat *item, FEConfigPedInfo *iconf) noexcept(false)
Definition: FEConfigPedDat.cc:40
FEConfigPedDat::getPedMeanG12
float getPedMeanG12() const
Definition: FEConfigPedDat.h:30
FEConfigPedDat::getTable
std::string getTable() override
Definition: FEConfigPedDat.h:18
FEConfigPedInfo.h
FEConfigPedDat::getId
int getId() const
Definition: FEConfigPedDat.h:21
DDAxes::x
FEConfigPedDat::setPedMeanG1
void setPedMeanG1(float mean)
Definition: FEConfigPedDat.h:23
watchdog.const
const
Definition: watchdog.py:83
FEConfigPedDat::~FEConfigPedDat
~FEConfigPedDat() override
Definition: FEConfigPedDat.cc:22
FEConfigPedDat::m_pedMeanG12
float m_pedMeanG12
Definition: FEConfigPedDat.h:44
IDataItem
Definition: IDataItem.h:16
FEConfigPedDat::getPedMeanG1
float getPedMeanG1() const
Definition: FEConfigPedDat.h:24
EcalLogicID
Definition: EcalLogicID.h:7
FEConfigPedDat::getPedMeanG6
float getPedMeanG6() const
Definition: FEConfigPedDat.h:27
FEConfigPedDat::m_pedMeanG1
float m_pedMeanG1
Definition: FEConfigPedDat.h:42
FEConfigPedDat::fetchData
void fetchData(std::map< EcalLogicID, FEConfigPedDat > *fillMap, FEConfigPedInfo *iconf) noexcept(false)
Definition: FEConfigPedDat.cc:68
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FEConfigPedDat
Definition: FEConfigPedDat.h:11
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
EcalLogicID.h
FEConfigPedDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, FEConfigPedDat > *data, FEConfigPedInfo *iconf) noexcept(false)
Definition: FEConfigPedDat.cc:111
std
Definition: JetResolutionObject.h:76
FEConfigPedDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigPedDat.cc:24
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
FEConfigPedDat::m_ID
int m_ID
Definition: FEConfigPedDat.h:45
genParticles_cff.map
map
Definition: genParticles_cff.py:11
FEConfigPedDat::setPedMeanG12
void setPedMeanG12(float mean)
Definition: FEConfigPedDat.h:29
FEConfigPedInfo
Definition: FEConfigPedInfo.h:11
FEConfigPedDat::FEConfigPedDat
FEConfigPedDat()
Definition: FEConfigPedDat.cc:11