|
std::list< LMFLmrSubIOV > | fetchByLMFIOV (const LMFIOV &iov) |
|
std::list< int > | getIOVIDsLaterThan (const Tm &t) noexcept(false) |
|
std::list< int > | getIOVIDsLaterThan (const Tm &tmin, const Tm &tmax) noexcept(false) |
|
std::list< int > | getIOVIDsLaterThan (const Tm &t, int howMany) noexcept(false) |
|
std::list< int > | getIOVIDsLaterThan (const Tm &t, const Tm &tmax, int howMany) noexcept(false) |
|
LMFIOV | getLMFIOV () const |
|
int | getLMFIOVID () const |
|
Tm | getT1 () |
|
Tm | getT2 () |
|
Tm | getT3 () |
|
Tm | getTime (int i) |
|
void | getTimes (Tm *t1, Tm *t2, Tm *t3) const |
|
std::vector< Tm > | getTimes () const |
|
void | getTimes (Tm *t) const |
|
| LMFLmrSubIOV () |
|
| LMFLmrSubIOV (EcalDBConnection *c) |
|
| LMFLmrSubIOV (oracle::occi::Environment *env, oracle::occi::Connection *conn) |
|
bool | operator!= (const LMFLmrSubIOV &m) const |
|
bool | operator== (const LMFLmrSubIOV &m) const |
|
LMFLmrSubIOV & | setLMFIOV (const LMFIOV &iov) |
|
LMFLmrSubIOV & | setLMFIOV (int i) |
|
LMFLmrSubIOV & | setTimes (const Tm &t1, const Tm &t2, const Tm &t3) |
|
LMFLmrSubIOV & | setTimes (const std::vector< Tm > &t) |
|
LMFLmrSubIOV & | setTimes (Tm *t) |
|
| ~LMFLmrSubIOV () |
|
void | attach (std::string name, LMFUnique *u) |
|
void | debug () |
|
virtual void | dump () const |
|
virtual void | dump (int n) const |
|
virtual bool | exists () |
|
virtual boost::ptr_list< LMFUnique > | fetchAll () const noexcept(false) |
|
int | fetchID () noexcept(false) |
|
std::string | getClassName () |
|
std::string | getClassName () const |
|
int | getID () const |
|
int | getInt (std::string fieldname) const |
|
std::string | getString (std::string fieldname) const |
|
virtual bool | isValid () const |
|
virtual bool | isValid () |
|
| LMFUnique () |
|
| LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn) |
|
| LMFUnique (EcalDBConnection *c) |
|
void | nodebug () |
|
virtual bool | operator< (const LMFUnique &r) |
|
virtual bool | operator<= (const LMFUnique &r) |
|
std::string | sequencePostfix (const Tm &t) |
|
void | setByID (int id) noexcept(false) |
|
LMFUnique & | setInt (std::string key, int value) |
|
LMFUnique & | setString (std::string key, std::string value) |
|
void | startProfiling () |
|
void | stopProfiling () |
|
virtual | ~LMFUnique () |
|
oracle::occi::Connection * | getConn () const |
|
oracle::occi::Environment * | getEnv () const |
|
void | setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn) |
|
virtual | ~IDBObject () |
|
Definition at line 13 of file LMFLmrSubIOV.h.
std::list< int > LMFLmrSubIOV::getIOVIDsLaterThan |
( |
const Tm & |
t, |
|
|
const Tm & |
tmax, |
|
|
int |
howMany |
|
) |
| |
|
noexcept |
Definition at line 167 of file LMFLmrSubIOV.cc.
References gather_cfg::cout, cuy::dh, MillePedeFileConverter_cfg::e, LMFUnique::m_className, IDBObject::m_conn, LMFUnique::m_debug, IDBObject::m_env, NULL, Tm::setToString(), AlCaHLTBitMon_QueryRunRegistry::string, tmax, and DateHandler::tmToDate().
172 std::string sql =
"SELECT * FROM (SELECT LMR_SUB_IOV_ID " 173 "FROM CMS_ECAL_LASER_COND.LMF_LMR_SUB_IOV WHERE T3 > :1 ";
175 sql +=
"AND T3 < :2 ORDER BY T3 ASC) ";
177 sql +=
"WHERE ROWNUM <= :3";
180 sql +=
"ORDER BY T3 ASC) ";
182 sql +=
"WHERE ROWNUM <= :2";
186 std::cout <<
"Executing query: " << std::endl << sql << std::endl;
193 stmt->setPrefetchRowCount(10000);
195 stmt->setDate(1,
dh.tmToDate(tmin));
197 stmt->setDate(2,
dh.tmToDate(tmax));
199 stmt->setInt(3, howMany);
203 stmt->setInt(2, howMany);
208 while (rset->next() != 0) {
210 std::cout <<
"Getting row " << row++ << std::endl;
212 ret.push_back(rset->getInt(1));
214 stmt->setPrefetchRowCount(0);
215 m_conn->terminateStatement(stmt);
218 #if defined(_GLIBCXX_USE_CXX11_ABI) && (_GLIBCXX_USE_CXX11_ABI == 0) 219 throw(std::runtime_error(
m_className +
"::getLmrSubIOVLaterThan: " +
222 throw(std::runtime_error(
m_className +
"::getLmrSubIOVLaterThan: error code " +
223 std::to_string(e.getErrorCode())));
227 throw(std::runtime_error(
m_className +
"::getLmrSubIOVLaterThan: " +
228 "Connection not set"));
235 std::cout <<
"Done!" << std::endl << std::flush;
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement Statement
void setToString(const std::string s) noexcept(false)
oracle::occi::ResultSet ResultSet