4 using namespace oracle::occi;
10 m_className =
"LMFIOV";
22 m_className =
"LMFIOV";
73 "SELECT IOV_ID FROM CMS_ECAL_LASER_COND.LMF_IOV "
74 "WHERE IOV_START = :1 AND IOV_STOP = :2 AND "
75 "VMIN = :3 AND VMIN = :4";
78 stmt->setDate(1, dm.
tmToDate(m_iov_start));
79 stmt->setDate(2, dm.
tmToDate(m_iov_stop));
80 stmt->setInt(3, m_vmin);
81 stmt->setInt(4, m_vmax);
87 "SELECT IOV_START, IOV_STOP, VMIN, VMAX FROM "
88 "CMS_ECAL_LASER_COND.LMF_IOV "
96 Date
d = rset->getDate(1);
101 m_vmin = rset->getInt(3);
102 m_vmax = rset->getInt(4);
112 cout <<
"################# LMFIOV ######################" << endl;
113 cout <<
"id : " << m_ID << endl;
114 cout <<
"Start: " << m_iov_start.str() << endl;
115 cout <<
"Stop : " << m_iov_stop.str() << endl;
116 cout <<
"Vers.: " << m_vmin <<
" - " << m_vmax << endl;
117 cout <<
"################# LMFIOV ######################" << endl;
122 std::string seqName = sequencePostfix(m_iov_start);
124 "INSERT INTO LMF_IOV (IOV_ID, IOV_START, IOV_STOP, "
125 "VMIN, VMAX) VALUES "
127 seqName +
"_sq.NextVal, :1, :2, :3, :4)";
130 stmt->setDate(1, dm.
tmToDate(m_iov_start));
131 stmt->setDate(2, dm.
tmToDate(m_iov_stop));
132 stmt->setInt(3, m_vmin);
133 stmt->setInt(4, m_vmax);
const edm::EventSetup & c
LMFUnique * createObject() const override
std::string setByIDSql(Statement *stmt, int id) override
LMFIOV & setVmin(int vmin)
LMFIOV & setStop(const Tm &stop)
oracle::occi::ResultSet ResultSet
LMFIOV & setVersions(int vmin, int vmax)
oracle::occi::Environment * getEnv() const
oracle::occi::Connection * getConn() const
void dump() const override
void getParameters(ResultSet *rset) override
LMFIOV & setVmax(int vmax)
std::string writeDBSql(Statement *stmt) override
oracle::occi::Statement Statement
std::string fetchIdSql(Statement *stmt) override
LMFIOV & setStart(const Tm &start)
oracle::occi::Date tmToDate(const Tm &inTm) const
LMFIOV & setIOV(const Tm &start, const Tm &stop)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
Tm dateToTm(oracle::occi::Date &date) const
tuple dump
OutputFilePath = cms.string('/tmp/zhokin/'), OutputFileExt = cms.string(''),.