#include <LMFCorrCoefDat.h>
Public Member Functions | |
void | debug () |
void | dump () |
void | fetch (std::list< int > subiov_ids) |
void | fetch (int subiov_id) |
void | fetch (const LMFLmrSubIOV &iov) |
void | fetchAfter (const Tm &t) |
void | fetchAfter (const Tm &t, int howMany) |
void | fetchBetween (const Tm &tmin, const Tm &tmax) |
void | fetchBetween (const Tm &tmin, const Tm &tmax, int maxNumberOfIOVs) |
RunIOV | fetchLastInsertedRun () |
std::map< int, std::map< int, LMFSextuple > > | getCorrections (const Tm &t) |
std::map< int, std::map< int, LMFSextuple > > | getCorrections (const Tm &t, int max) |
std::map< int, std::map< int, LMFSextuple > > | getCorrections (const Tm &t, const Tm &t2, int max) |
int | getFlag (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
std::vector< float > | getParameterErrors (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
std::list< std::vector< float > > | getParameters (int id) |
std::list< std::vector< float > > | getParameters (const EcalLogicID &id) |
std::vector< float > | getParameters (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
int | getSeqID (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
LMFSeqDat | getSequence (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
std::list< int > | getSubIOVIDs () |
std::vector< Tm > | getTimes (const LMFLmrSubIOV &iov) |
void | init () |
LMFCorrCoefDat () | |
LMFCorrCoefDat (EcalDBConnection *c) | |
LMFCorrCoefDat (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
void | nodebug () |
LMFCorrCoefDat & | setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn) |
LMFCorrCoefDat & | setFlag (const LMFLmrSubIOV &iov, const EcalLogicID &id, int flag) |
LMFCorrCoefDat & | setP123 (const LMFLmrSubIOV &iov, const EcalLogicID &id, float p1, float p2, float p3) |
LMFCorrCoefDat & | setP123 (const LMFLmrSubIOV &iov, const EcalLogicID &id, float p1, float p2, float p3, float p1e, float p2e, float p3e) |
LMFCorrCoefDat & | setP123Errors (const LMFLmrSubIOV &iov, const EcalLogicID &id, float p1e, float p2e, float p3e) |
LMFCorrCoefDat & | setSequence (const LMFLmrSubIOV &iov, const EcalLogicID &id, int seq_id) |
LMFCorrCoefDat & | setSequence (const LMFLmrSubIOV &iov, const EcalLogicID &id, const LMFSeqDat &seq) |
int | size () const |
void | writeDB () |
~LMFCorrCoefDat () | |
Private Member Functions | |
void | checkTriplets (int logic_id, const LMFSextuple &s, const std::map< int, LMFSextuple > &lastMap) |
LMFCorrCoefDatComponent * | find (const LMFLmrSubIOV &iov) |
Private Attributes | |
oracle::occi::Connection * | m_conn |
std::map< int, LMFCorrCoefDatComponent * > | m_data |
bool | m_debug |
oracle::occi::Environment * | m_env |
std::map< int, LMFLmrSubIOV * > | m_subiov |
Static Private Attributes | |
static const int | MAX_NUMBER_OF_SEQUENCES_TO_FETCH = 32 |
Definition at line 16 of file LMFCorrCoefDat.h.
LMFCorrCoefDat::LMFCorrCoefDat | ( | ) |
Definition at line 4 of file LMFCorrCoefDat.cc.
References init().
LMFCorrCoefDat::LMFCorrCoefDat | ( | EcalDBConnection * | c | ) |
Definition at line 8 of file LMFCorrCoefDat.cc.
References EcalDBConnection::getConn(), EcalDBConnection::getEnv(), init(), m_conn, and m_env.
LMFCorrCoefDat::LMFCorrCoefDat | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
Definition at line 14 of file LMFCorrCoefDat.cc.
References results_mgr::conn, web.browse_db::env, init(), m_conn, and m_env.
LMFCorrCoefDat::~LMFCorrCoefDat | ( | ) |
Definition at line 21 of file LMFCorrCoefDat.cc.
References alignCSCRings::e, i, m_data, and m_subiov.
|
private |
Definition at line 331 of file LMFCorrCoefDat.cc.
Referenced by getCorrections().
void LMFCorrCoefDat::debug | ( | ) |
Definition at line 146 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, and m_debug.
Referenced by popcon::EcalLaserHandler::getNewObjects().
void LMFCorrCoefDat::dump | ( | void | ) |
Definition at line 116 of file LMFCorrCoefDat.cc.
References prof2calltree::count, gather_cfg::cout, alignCSCRings::e, i, and m_data.
void LMFCorrCoefDat::fetch | ( | std::list< int > | subiov_ids | ) |
Definition at line 243 of file LMFCorrCoefDat.cc.
References trackerHits::c, gather_cfg::cout, alignCSCRings::e, i, and m_debug.
Referenced by fetch(), fetchBetween(), getFlag(), getParameterErrors(), getParameters(), getSeqID(), and getSequence().
void LMFCorrCoefDat::fetch | ( | int | subiov_id | ) |
Definition at line 261 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, LMFUnique::dump(), fetch(), LMFUnique::getID(), o2o::iov, m_conn, m_debug, m_env, m_subiov, and LMFUnique::setByID().
void LMFCorrCoefDat::fetch | ( | const LMFLmrSubIOV & | iov | ) |
Definition at line 284 of file LMFCorrCoefDat.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, gather_cfg::cout, LMFUnique::debug(), LMFDat::dump(), LMFDat::fetch(), LMFUnique::getID(), m_conn, m_data, m_debug, m_env, and LMFCorrCoefDatComponent::setLMFLmrSubIOV().
void LMFCorrCoefDat::fetchAfter | ( | const Tm & | t | ) |
Definition at line 200 of file LMFCorrCoefDat.cc.
References fetchBetween(), Tm::setToString(), and tmax.
void LMFCorrCoefDat::fetchAfter | ( | const Tm & | t, |
int | howMany | ||
) |
Definition at line 206 of file LMFCorrCoefDat.cc.
References fetchBetween(), Tm::setToString(), and tmax.
Definition at line 212 of file LMFCorrCoefDat.cc.
Referenced by fetchAfter().
Definition at line 216 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, LMFUnique::debug(), fetch(), LMFLmrSubIOV::getIOVIDsLaterThan(), o2o::iov, ConfigFiles::l, m_conn, m_data, m_debug, m_env, Tm::setToString(), and Tm::str().
RunIOV LMFCorrCoefDat::fetchLastInsertedRun | ( | ) |
Definition at line 155 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, alignCSCRings::e, o2o::iov, m_conn, m_debug, m_env, NULL, RunIOV::setByID(), IDBObject::setConnection(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 98 of file LMFCorrCoefDat.cc.
References trackerHits::c, LMFUnique::getID(), o2o::iov, m_conn, m_data, m_env, m_subiov, NULL, IDBObject::setConnection(), and LMFCorrCoefDatComponent::setLMFLmrSubIOV().
Referenced by setFlag(), setP123(), setP123Errors(), and setSequence().
std::map< int, std::map< int, LMFSextuple > > LMFCorrCoefDat::getCorrections | ( | const Tm & | t | ) |
Definition at line 327 of file LMFCorrCoefDat.cc.
References MAX_NUMBER_OF_SEQUENCES_TO_FETCH.
Referenced by getCorrections(), and popcon::EcalLaserHandler::getNewObjects().
std::map< int, std::map< int, LMFSextuple > > LMFCorrCoefDat::getCorrections | ( | const Tm & | t, |
int | max | ||
) |
Definition at line 356 of file LMFCorrCoefDat.cc.
References getCorrections().
std::map< int, std::map< int, LMFSextuple > > LMFCorrCoefDat::getCorrections | ( | const Tm & | t, |
const Tm & | t2, | ||
int | max | ||
) |
Definition at line 361 of file LMFCorrCoefDat.cc.
References trackerHits::c, checkTriplets(), gather_cfg::cout, DateHandler::dateToTm(), cuy::dh, alignCSCRings::e, i, m_conn, m_debug, m_env, MAX_NUMBER_OF_SEQUENCES_TO_FETCH, NULL, LMFSextuple::p, run_regression::ret, alignCSCRings::s, Tm::str(), AlCaHLTBitMon_QueryRunRegistry::string, and LMFSextuple::t.
int LMFCorrCoefDat::getFlag | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 567 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), m_data, edm::second(), and x.
std::vector< float > LMFCorrCoefDat::getParameterErrors | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 555 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), combine::key, m_data, and x.
std::list< std::vector< float > > LMFCorrCoefDat::getParameters | ( | int | id | ) |
Definition at line 516 of file LMFCorrCoefDat.cc.
References alignCSCRings::e, spr::find(), i, gen::k, m_data, m_subiov, AlCaHLTBitMon_ParallelJobs::p, and run_regression::ret.
Referenced by getParameters().
std::list< std::vector< float > > LMFCorrCoefDat::getParameters | ( | const EcalLogicID & | id | ) |
Definition at line 510 of file LMFCorrCoefDat.cc.
References getParameters().
std::vector< float > LMFCorrCoefDat::getParameters | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 544 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), getParameters(), combine::key, m_data, and x.
int LMFCorrCoefDat::getSeqID | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 577 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), m_data, edm::second(), and x.
LMFSeqDat LMFCorrCoefDat::getSequence | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 587 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), m_conn, m_data, m_env, and edm::second().
std::list< int > LMFCorrCoefDat::getSubIOVIDs | ( | ) |
Definition at line 608 of file LMFCorrCoefDat.cc.
References alignCSCRings::e, i, m_data, and run_regression::ret.
std::vector< Tm > LMFCorrCoefDat::getTimes | ( | const LMFLmrSubIOV & | iov | ) |
void LMFCorrCoefDat::init | ( | void | ) |
Definition at line 38 of file LMFCorrCoefDat.cc.
References m_conn, m_data, m_env, m_subiov, nodebug(), and NULL.
Referenced by LMFCorrCoefDat().
void LMFCorrCoefDat::nodebug | ( | ) |
LMFCorrCoefDat & LMFCorrCoefDat::setConnection | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
Definition at line 46 of file LMFCorrCoefDat.cc.
References results_mgr::conn, alignCSCRings::e, web.browse_db::env, i, m_conn, m_data, and m_env.
LMFCorrCoefDat & LMFCorrCoefDat::setFlag | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
int | flag | ||
) |
Definition at line 79 of file LMFCorrCoefDat.cc.
References find(), and LMFCorrCoefDatComponent::setFlag().
LMFCorrCoefDat & LMFCorrCoefDat::setP123 | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
float | p1, | ||
float | p2, | ||
float | p3 | ||
) |
Definition at line 59 of file LMFCorrCoefDat.cc.
References find(), and LMFCorrCoefDatComponent::setP123().
LMFCorrCoefDat & LMFCorrCoefDat::setP123 | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
float | p1, | ||
float | p2, | ||
float | p3, | ||
float | p1e, | ||
float | p2e, | ||
float | p3e | ||
) |
Definition at line 65 of file LMFCorrCoefDat.cc.
References find(), and LMFCorrCoefDatComponent::setP123().
LMFCorrCoefDat & LMFCorrCoefDat::setP123Errors | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
float | p1e, | ||
float | p2e, | ||
float | p3e | ||
) |
Definition at line 72 of file LMFCorrCoefDat.cc.
References find(), and LMFCorrCoefDatComponent::setP123Errors().
LMFCorrCoefDat & LMFCorrCoefDat::setSequence | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
int | seq_id | ||
) |
Definition at line 85 of file LMFCorrCoefDat.cc.
References find(), and LMFCorrCoefDatComponent::setSequence().
LMFCorrCoefDat & LMFCorrCoefDat::setSequence | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
const LMFSeqDat & | seq | ||
) |
Definition at line 91 of file LMFCorrCoefDat.cc.
References find(), and LMFCorrCoefDatComponent::setSequence().
int LMFCorrCoefDat::size | ( | void | ) | const |
Definition at line 597 of file LMFCorrCoefDat.cc.
References trackerHits::c, alignCSCRings::e, i, and m_data.
void LMFCorrCoefDat::writeDB | ( | ) |
Definition at line 134 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, alignCSCRings::e, i, m_data, and m_debug.
|
private |
Definition at line 81 of file LMFCorrCoefDat.h.
Referenced by fetch(), fetchBetween(), fetchLastInsertedRun(), find(), getCorrections(), getSequence(), init(), LMFCorrCoefDat(), and setConnection().
|
private |
Definition at line 78 of file LMFCorrCoefDat.h.
Referenced by dump(), fetch(), fetchBetween(), find(), getFlag(), getParameterErrors(), getParameters(), getSeqID(), getSequence(), getSubIOVIDs(), init(), setConnection(), size(), writeDB(), and ~LMFCorrCoefDat().
|
private |
Definition at line 82 of file LMFCorrCoefDat.h.
Referenced by debug(), fetch(), fetchBetween(), fetchLastInsertedRun(), getCorrections(), nodebug(), and writeDB().
|
private |
Definition at line 80 of file LMFCorrCoefDat.h.
Referenced by fetch(), fetchBetween(), fetchLastInsertedRun(), find(), getCorrections(), getSequence(), init(), LMFCorrCoefDat(), and setConnection().
|
private |
Definition at line 79 of file LMFCorrCoefDat.h.
Referenced by fetch(), find(), getParameters(), init(), and ~LMFCorrCoefDat().
|
staticprivate |
Definition at line 76 of file LMFCorrCoefDat.h.
Referenced by getCorrections().