13 oracle::occi::Connection* conn):
28 for (
unsigned int i = 0;
i <
m_keys.size();
i++) {
29 m_type.push_back(
"NUMBER");
34 return "lmfLmrSubIOV";
38 return "LMF_CORR_COEF_DAT";
42 return "LMR_SUB_IOV_ID";
52 float p1,
float p2,
float p3) {
60 float p1,
float p2,
float p3,
61 float p1e,
float p2e,
float p3e) {
68 float p1e,
float p2e,
float p3e) {
103 std::vector<float>
v;
104 v.push_back(
getData(
id,
"P1"));
105 v.push_back(
getData(
id,
"P2"));
106 v.push_back(
getData(
id,
"P3"));
111 std::vector<float>
v;
112 v.push_back(
getData(
id,
"P1"));
113 v.push_back(
getData(
id,
"P2"));
114 v.push_back(
getData(
id,
"P3"));
119 std::vector<float>
v;
120 v.push_back(
getData(
id,
"P1E"));
121 v.push_back(
getData(
id,
"P2E"));
122 v.push_back(
getData(
id,
"P3E"));
127 std::vector<float>
v;
128 v.push_back(
getData(
id,
"P1E"));
129 v.push_back(
getData(
id,
"P2E"));
130 v.push_back(
getData(
id,
"P3E"));
147 int seq_id =
getData(
id,
"SEQ_ID");
159 catch (std::runtime_error &
e) {
std::string getTableName() const override
LMFUnique & setInt(std::string key, int value)
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
std::string getIovIdFieldName() const override
int getSeqID(const EcalLogicID &id)
int writeDB() noexcept(false) override
LMFDat & setData(int logic_id, const std::vector< float > &data)
std::vector< std::string > m_type
void setByID(int id) noexcept(false) override
LMFCorrCoefDatComponent & setP123Errors(const EcalLogicID &id, float p1e, float p2e, float p3e)
int getInt(std::string fieldname) const
LMFCorrCoefDatComponent & setSequence(const EcalLogicID &id, int seq_id)
LMFLmrSubIOV getLMFLmrSubIOV() const
std::string foreignKeyName() const override
std::vector< float > getParameters(const EcalLogicID &id)
int writeDB() noexcept(false) override
int getLMFLmrSubIOVID() const
std::map< int, std::vector< float > > getData()
LMFSeqDat getSequence(const EcalLogicID &id)
LMFCorrCoefDatComponent & setP123(const EcalLogicID &id, float p1, float p2, float p3)
LMFCorrCoefDatComponent()
std::map< std::string, unsigned int > m_keys
std::vector< float > getParameterErrors(const EcalLogicID &id)
LMFCorrCoefDatComponent & setFlag(const EcalLogicID &id, int flag)
LMFCorrCoefDatComponent & setLMFLmrSubIOV(const LMFLmrSubIOV &iov)
void attach(std::string name, LMFUnique *u)
int getFlag(const EcalLogicID &id)