CMS 3D CMS Logo

FEConfigOddWeightGroupDat.h
Go to the documentation of this file.
1 #ifndef ONLINEDB_ECALCONDDB_FECONFIGODDWEIGHTGROUPDAT_H
2 #define ONLINEDB_ECALCONDDB_FECONFIGODDWEIGHTGROUPDAT_H
3 
4 #include <vector>
5 #include <stdexcept>
6 
10 
12 public:
13  friend class EcalCondDBInterface; // XXX temp should not need
15  ~FEConfigOddWeightGroupDat() override;
16 
17  // User data methods
18  inline std::string getTable() override { return "FE_WEIGHT2_PER_GROUP_DAT"; }
19 
20  inline void setWeightGroupId(int x) { m_group_id = x; }
21  inline int getWeightGroupId() const { return m_group_id; }
22 
23  inline void setWeight0(float x) { m_w0 = x; }
24  inline float getWeight0() const { return m_w0; }
25  inline void setWeight1(float x) { m_w1 = x; }
26  inline float getWeight1() const { return m_w1; }
27  inline void setWeight2(float x) { m_w2 = x; }
28  inline float getWeight2() const { return m_w2; }
29  inline void setWeight3(float x) { m_w3 = x; }
30  inline float getWeight3() const { return m_w3; }
31  inline void setWeight4(float x) { m_w4 = x; }
32  inline float getWeight4() const { return m_w4; }
33  inline void setWeight5(float x) { m_w5 = x; }
34  inline float getWeight5() const { return m_w5; }
35 
36 private:
37  void prepareWrite() noexcept(false) override;
38 
39  void writeDB(const EcalLogicID* ecid,
41  FEConfigOddWeightInfo* iconf) noexcept(false);
42 
44  FEConfigOddWeightInfo* iconf) noexcept(false);
45 
47  FEConfigOddWeightInfo* iconf) noexcept(false);
48 
49  // User data
51  float m_w0;
52  float m_w1;
53  float m_w2;
54  float m_w3;
55  float m_w4;
56  float m_w5;
57 };
58 
59 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
FEConfigOddWeightInfo.h
IDataItem.h
FEConfigOddWeightGroupDat::m_w3
float m_w3
Definition: FEConfigOddWeightGroupDat.h:54
FEConfigOddWeightGroupDat::getWeight1
float getWeight1() const
Definition: FEConfigOddWeightGroupDat.h:26
funct::false
false
Definition: Factorize.h:29
FEConfigOddWeightGroupDat::getWeight5
float getWeight5() const
Definition: FEConfigOddWeightGroupDat.h:34
FEConfigOddWeightGroupDat::writeDB
void writeDB(const EcalLogicID *ecid, const FEConfigOddWeightGroupDat *item, FEConfigOddWeightInfo *iconf) noexcept(false)
Definition: FEConfigOddWeightGroupDat.cc:43
FEConfigOddWeightGroupDat::m_w1
float m_w1
Definition: FEConfigOddWeightGroupDat.h:52
FEConfigOddWeightInfo
Definition: FEConfigOddWeightInfo.h:11
FEConfigOddWeightGroupDat::getWeight0
float getWeight0() const
Definition: FEConfigOddWeightGroupDat.h:24
FEConfigOddWeightGroupDat::setWeight1
void setWeight1(float x)
Definition: FEConfigOddWeightGroupDat.h:25
FEConfigOddWeightGroupDat::getWeightGroupId
int getWeightGroupId() const
Definition: FEConfigOddWeightGroupDat.h:21
DDAxes::x
FEConfigOddWeightGroupDat::m_w5
float m_w5
Definition: FEConfigOddWeightGroupDat.h:56
watchdog.const
const
Definition: watchdog.py:83
FEConfigOddWeightGroupDat::m_group_id
int m_group_id
Definition: FEConfigOddWeightGroupDat.h:50
IDataItem
Definition: IDataItem.h:16
EcalLogicID
Definition: EcalLogicID.h:7
FEConfigOddWeightGroupDat
Definition: FEConfigOddWeightGroupDat.h:11
FEConfigOddWeightGroupDat::setWeight4
void setWeight4(float x)
Definition: FEConfigOddWeightGroupDat.h:31
FEConfigOddWeightGroupDat::setWeightGroupId
void setWeightGroupId(int x)
Definition: FEConfigOddWeightGroupDat.h:20
FEConfigOddWeightGroupDat::getTable
std::string getTable() override
Definition: FEConfigOddWeightGroupDat.h:18
FEConfigOddWeightGroupDat::writeArrayDB
void writeArrayDB(const std::map< EcalLogicID, FEConfigOddWeightGroupDat > *data, FEConfigOddWeightInfo *iconf) noexcept(false)
Definition: FEConfigOddWeightGroupDat.cc:119
FEConfigOddWeightGroupDat::setWeight2
void setWeight2(float x)
Definition: FEConfigOddWeightGroupDat.h:27
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
FEConfigOddWeightGroupDat::prepareWrite
void prepareWrite() noexcept(false) override
Definition: FEConfigOddWeightGroupDat.cc:28
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FEConfigOddWeightGroupDat::m_w2
float m_w2
Definition: FEConfigOddWeightGroupDat.h:53
FEConfigOddWeightGroupDat::setWeight3
void setWeight3(float x)
Definition: FEConfigOddWeightGroupDat.h:29
EcalLogicID.h
std
Definition: JetResolutionObject.h:76
FEConfigOddWeightGroupDat::getWeight4
float getWeight4() const
Definition: FEConfigOddWeightGroupDat.h:32
FEConfigOddWeightGroupDat::getWeight2
float getWeight2() const
Definition: FEConfigOddWeightGroupDat.h:28
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
FEConfigOddWeightGroupDat::fetchData
void fetchData(std::map< EcalLogicID, FEConfigOddWeightGroupDat > *fillMap, FEConfigOddWeightInfo *iconf) noexcept(false)
Definition: FEConfigOddWeightGroupDat.cc:75
FEConfigOddWeightGroupDat::setWeight5
void setWeight5(float x)
Definition: FEConfigOddWeightGroupDat.h:33
FEConfigOddWeightGroupDat::m_w4
float m_w4
Definition: FEConfigOddWeightGroupDat.h:55
genParticles_cff.map
map
Definition: genParticles_cff.py:11
FEConfigOddWeightGroupDat::m_w0
float m_w0
Definition: FEConfigOddWeightGroupDat.h:51
FEConfigOddWeightGroupDat::~FEConfigOddWeightGroupDat
~FEConfigOddWeightGroupDat() override
Definition: FEConfigOddWeightGroupDat.cc:26
FEConfigOddWeightGroupDat::setWeight0
void setWeight0(float x)
Definition: FEConfigOddWeightGroupDat.h:23
FEConfigOddWeightGroupDat::FEConfigOddWeightGroupDat
FEConfigOddWeightGroupDat()
Definition: FEConfigOddWeightGroupDat.cc:11
FEConfigOddWeightGroupDat::getWeight3
float getWeight3() const
Definition: FEConfigOddWeightGroupDat.h:30