#include <LMFCorrCoefDatComponent.h>
Public Member Functions | |
std::string | foreignKeyName () const |
int | getFlag (const EcalLogicID &id) |
std::string | getIovIdFieldName () const |
LMFLmrSubIOV | getLMFLmrSubIOV () const |
int | getLMFLmrSubIOVID () const |
std::vector< float > | getParameterErrors (const EcalLogicID &id) |
std::vector< float > | getParameterErrors (int id) |
std::vector< float > | getParameters (const EcalLogicID &id) |
std::vector< float > | getParameters (int id) |
int | getSeqID (const EcalLogicID &id) |
int | getSeqID (int id) |
LMFSeqDat | getSequence (const EcalLogicID &id) |
std::string | getTableName () const |
LMFCorrCoefDatComponent () | |
LMFCorrCoefDatComponent (EcalDBConnection *c) | |
LMFCorrCoefDatComponent (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
LMFCorrCoefDatComponent & | setFlag (const EcalLogicID &id, int flag) |
LMFCorrCoefDatComponent & | setLMFLmrSubIOV (const LMFLmrSubIOV &iov) |
LMFCorrCoefDatComponent & | setP123 (const EcalLogicID &id, float p1, float p2, float p3) |
LMFCorrCoefDatComponent & | setP123 (const EcalLogicID &id, float p1, float p2, float p3, float p1e, float p2e, float p3e) |
LMFCorrCoefDatComponent & | setP123Errors (const EcalLogicID &id, float p1e, float p2e, float p3e) |
LMFCorrCoefDatComponent & | setSequence (const EcalLogicID &id, int seq_id) |
LMFCorrCoefDatComponent & | setSequence (const EcalLogicID &id, const LMFSeqDat &seq) |
int | writeDB () throw (std::runtime_error) |
~LMFCorrCoefDatComponent () | |
Public Member Functions inherited from LMFDat | |
void | dump () const |
void | dump (int n) const |
virtual void | dump (int n, int max) const |
void | fetch () throw (std::runtime_error) |
void | fetch (int logic_id) throw (std::runtime_error) |
void | fetch (int logic_id, const Tm &tm) throw (std::runtime_error) |
void | fetch (int logic_id, const Tm *timestamp, int dir) throw (std::runtime_error) |
void | fetch (const EcalLogicID &id, const Tm &tm) throw (std::runtime_error) |
void | fetch (const EcalLogicID &id, const Tm &tm, int dir) throw (std::runtime_error) |
void | fetch (const EcalLogicID &id) throw (std::runtime_error) |
std::map< int, std::vector < float > > | fetchData () throw (std::runtime_error) |
std::vector< float > | getData (int id) |
std::vector< float > | getData (const EcalLogicID &id) |
bool | getData (int id, std::vector< float > &ret) |
bool | getData (const EcalLogicID &id, std::vector< float > &ret) |
std::map< int, std::vector < float > > | getData () |
float | getData (int id, unsigned int k) |
float | getData (const EcalLogicID &id, unsigned int k) |
float | getData (const EcalLogicID &id, const std::string &key) |
float | getData (int id, const std::string &key) |
bool | getData (int id, unsigned int k, float &ret) |
bool | getData (const EcalLogicID &id, unsigned int k, float &ret) |
bool | getData (int id, const std::string &key, float &ret) |
bool | getData (const EcalLogicID &id, const std::string &key, float &ret) |
std::list< std::string > | getKeyList () |
std::map< std::string, unsigned int > | getKeys () |
LMFRunIOV | getLMFRunIOV () const |
int | getLMFRunIOVID () |
std::list< int > | getLogicIds () |
void | getNext (LMFDat *dat) throw (std::runtime_error) |
void | getPrevious (LMFDat *dat) throw (std::runtime_error) |
std::map< unsigned int, std::string > | getReverseMap () const |
Tm | getSubrunStart () const |
virtual bool | isValid () |
LMFDat () | |
LMFDat (EcalDBConnection *c) | |
LMFDat (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
std::vector< float > | operator[] (int id) |
LMFDat & | setData (int logic_id, const std::vector< float > &data) |
LMFDat & | setData (const EcalLogicID &logic_id, const std::vector< float > &data) |
LMFDat & | setData (const EcalLogicID &logic_id, const std::string &key, float v) |
LMFDat & | setLMFRunIOV (const LMFRunIOV &iov) |
LMFDat & | setMaxDataToDump (int n) |
void | setWhereClause (std::string w) |
void | setWhereClause (std::string w, const std::vector< std::string > &p) |
int | size () const |
~LMFDat () | |
Public Member Functions inherited from LMFUnique | |
void | attach (std::string name, LMFUnique *u) |
void | debug () |
virtual bool | exists () |
virtual boost::ptr_list < LMFUnique > | fetchAll () const throw (std::runtime_error) |
int | fetchID () throw (std::runtime_error) |
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 |
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) throw (std::runtime_error) |
LMFUnique & | setInt (std::string key, int value) |
LMFUnique & | setString (std::string key, std::string value) |
void | startProfiling () |
void | stopProfiling () |
virtual | ~LMFUnique () |
Public Member Functions inherited from IDBObject | |
oracle::occi::Connection * | getConn () const |
oracle::occi::Environment * | getEnv () const |
void | setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn) |
virtual | ~IDBObject () |
Private Member Functions | |
void | init () |
Friends | |
class | EcalCondDBInterface |
Additional Inherited Members | |
Public Types inherited from LMFUnique | |
typedef oracle::occi::ResultSet | ResultSet |
typedef oracle::occi::Statement | Statement |
Static Public Attributes inherited from IDBObject | |
static int const | ECALDB_NROWS =1024 |
Protected Member Functions inherited from LMFDat | |
void | adjustParameters (int n, std::string &sql, Statement *stmt) |
std::string | buildInsertSql () |
std::string | buildSelectSql (int logic_id=0, int direction=0) |
bool | check () |
void | getKeyTypes () throw (std::runtime_error) |
void | getNeighbour (LMFDat *dat, int which) throw (std::runtime_error) |
int | writeDB () throw (std::runtime_error) |
Protected Member Functions inherited from LMFUnique | |
virtual void | setClassName (std::string s) |
virtual int | writeForeignKeys () throw (std::runtime_error) |
Protected Member Functions inherited from IDBObject | |
void | checkConnection () const throw (std::runtime_error) |
Protected Attributes inherited from LMFDat | |
std::string | _where |
std::vector< std::string > | _wherePars |
std::map< int, std::vector < float > > | m_data |
std::string | m_Error |
std::map< std::string, unsigned int > | m_keys |
int | m_max |
std::string | m_tableName |
std::vector< std::string > | m_type |
Protected Attributes inherited from LMFUnique | |
bool | _profiling |
std::string | m_className |
char | m_debug |
std::map< std::string, LMFUnique * > | m_foreignKeys |
std::map< std::string, int > | m_intFields |
std::map< std::string, std::string > | m_stringFields |
Protected Attributes inherited from IUniqueDBObject | |
int | m_ID |
Protected Attributes inherited from IDBObject | |
oracle::occi::Connection * | m_conn |
oracle::occi::Environment * | m_env |
Definition at line 21 of file LMFCorrCoefDatComponent.h.
LMFCorrCoefDatComponent::LMFCorrCoefDatComponent | ( | ) |
LMFCorrCoefDatComponent::LMFCorrCoefDatComponent | ( | EcalDBConnection * | c | ) |
LMFCorrCoefDatComponent::LMFCorrCoefDatComponent | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
|
inline |
Definition at line 29 of file LMFCorrCoefDatComponent.h.
|
virtual |
Reimplemented from LMFDat.
Definition at line 33 of file LMFCorrCoefDatComponent.cc.
Referenced by getLMFLmrSubIOV(), getLMFLmrSubIOVID(), and setLMFLmrSubIOV().
int LMFCorrCoefDatComponent::getFlag | ( | const EcalLogicID & | id | ) |
|
virtual |
Reimplemented from LMFDat.
Definition at line 41 of file LMFCorrCoefDatComponent.cc.
LMFLmrSubIOV LMFCorrCoefDatComponent::getLMFLmrSubIOV | ( | ) | const |
Definition at line 92 of file LMFCorrCoefDatComponent.cc.
References foreignKeyName(), LMFUnique::getInt(), o2o::iov, IDBObject::m_conn, IDBObject::m_env, and LMFUnique::setByID().
int LMFCorrCoefDatComponent::getLMFLmrSubIOVID | ( | ) | const |
Definition at line 98 of file LMFCorrCoefDatComponent.cc.
References foreignKeyName(), and LMFUnique::getInt().
std::vector< float > LMFCorrCoefDatComponent::getParameterErrors | ( | const EcalLogicID & | id | ) |
Definition at line 118 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), and findQualityFiles::v.
std::vector< float > LMFCorrCoefDatComponent::getParameterErrors | ( | int | id | ) |
Definition at line 126 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), and findQualityFiles::v.
std::vector< float > LMFCorrCoefDatComponent::getParameters | ( | const EcalLogicID & | id | ) |
Definition at line 102 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), and findQualityFiles::v.
std::vector< float > LMFCorrCoefDatComponent::getParameters | ( | int | id | ) |
Definition at line 110 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), and findQualityFiles::v.
int LMFCorrCoefDatComponent::getSeqID | ( | const EcalLogicID & | id | ) |
int LMFCorrCoefDatComponent::getSeqID | ( | int | id | ) |
LMFSeqDat LMFCorrCoefDatComponent::getSequence | ( | const EcalLogicID & | id | ) |
Definition at line 146 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), IDBObject::m_conn, IDBObject::m_env, and LMFUnique::setByID().
|
virtual |
Reimplemented from LMFDat.
Definition at line 37 of file LMFCorrCoefDatComponent.cc.
|
private |
Definition at line 18 of file LMFCorrCoefDatComponent.cc.
References i, LMFUnique::m_className, LMFDat::m_keys, and LMFDat::m_type.
Referenced by LMFCorrCoefDatComponent().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setFlag | ( | const EcalLogicID & | id, |
int | flag | ||
) |
Definition at line 75 of file LMFCorrCoefDatComponent.cc.
References LMFDat::setData().
Referenced by LMFCorrCoefDat::setFlag().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setLMFLmrSubIOV | ( | const LMFLmrSubIOV & | iov | ) |
Definition at line 45 of file LMFCorrCoefDatComponent.cc.
References LMFUnique::attach(), foreignKeyName(), LMFUnique::getID(), and LMFUnique::setInt().
Referenced by LMFCorrCoefDat::fetch(), and LMFCorrCoefDat::find().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setP123 | ( | const EcalLogicID & | id, |
float | p1, | ||
float | p2, | ||
float | p3 | ||
) |
Definition at line 51 of file LMFCorrCoefDatComponent.cc.
References LMFDat::setData().
Referenced by LMFCorrCoefDat::setP123(), and setP123().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setP123 | ( | const EcalLogicID & | id, |
float | p1, | ||
float | p2, | ||
float | p3, | ||
float | p1e, | ||
float | p2e, | ||
float | p3e | ||
) |
Definition at line 59 of file LMFCorrCoefDatComponent.cc.
References setP123(), and setP123Errors().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setP123Errors | ( | const EcalLogicID & | id, |
float | p1e, | ||
float | p2e, | ||
float | p3e | ||
) |
Definition at line 67 of file LMFCorrCoefDatComponent.cc.
References LMFDat::setData().
Referenced by setP123(), and LMFCorrCoefDat::setP123Errors().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setSequence | ( | const EcalLogicID & | id, |
int | seq_id | ||
) |
Definition at line 80 of file LMFCorrCoefDatComponent.cc.
References LMFDat::setData().
Referenced by LMFCorrCoefDat::setSequence().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setSequence | ( | const EcalLogicID & | id, |
const LMFSeqDat & | seq | ||
) |
Definition at line 86 of file LMFCorrCoefDatComponent.cc.
References LMFUnique::getID(), and LMFDat::setData().
|
virtual |
Reimplemented from LMFUnique.
Definition at line 153 of file LMFCorrCoefDatComponent.cc.
References alignCSCRings::e, IDBObject::m_conn, run_regression::ret, and LMFDat::writeDB().
|
friend |
Definition at line 23 of file LMFCorrCoefDatComponent.h.