#include <LMFCorrCoefDatComponent.h>
Public Member Functions | |
std::string | foreignKeyName () const override |
int | getFlag (const EcalLogicID &id) |
std::string | getIovIdFieldName () const override |
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) |
virtual void | getParameters (ResultSet *rset) |
int | getSeqID (const EcalLogicID &id) |
int | getSeqID (int id) |
LMFSeqDat | getSequence (const EcalLogicID &id) |
std::string | getTableName () const override |
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, const LMFSeqDat &seq) |
LMFCorrCoefDatComponent & | setSequence (const EcalLogicID &id, int seq_id) |
int | writeDB () noexcept(false) override |
~LMFCorrCoefDatComponent () override | |
Public Member Functions inherited from LMFDat | |
void | dump () const override |
void | dump (int n) const override |
virtual void | dump (int n, int max) const |
void | fetch () noexcept(false) |
void | fetch (const EcalLogicID &id) noexcept(false) |
void | fetch (const EcalLogicID &id, const Tm &tm) noexcept(false) |
void | fetch (const EcalLogicID &id, const Tm &tm, int dir) noexcept(false) |
void | fetch (int logic_id) noexcept(false) |
void | fetch (int logic_id, const Tm &tm) noexcept(false) |
void | fetch (int logic_id, const Tm *timestamp, int dir) noexcept(false) |
std::map< int, std::vector< float > > | fetchData () noexcept(false) |
std::map< int, std::vector< float > > | getData () |
std::vector< float > | getData (const EcalLogicID &id) |
float | getData (const EcalLogicID &id, const std::string &key) |
bool | getData (const EcalLogicID &id, const std::string &key, float &ret) |
bool | getData (const EcalLogicID &id, std::vector< float > &ret) |
float | getData (const EcalLogicID &id, unsigned int k) |
bool | getData (const EcalLogicID &id, unsigned int k, float &ret) |
std::vector< float > | getData (int id) |
float | getData (int id, const std::string &key) |
bool | getData (int id, const std::string &key, float &ret) |
bool | getData (int id, std::vector< float > &ret) |
float | getData (int id, unsigned int k) |
bool | getData (int id, unsigned int k, 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) noexcept(false) |
void | getPrevious (LMFDat *dat) noexcept(false) |
std::map< unsigned int, std::string > | getReverseMap () const |
Tm | getSubrunStart () const |
bool | isValid () override |
LMFDat () | |
LMFDat (EcalDBConnection *c) | |
LMFDat (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
std::vector< float > | operator[] (int id) |
LMFDat & | setData (const EcalLogicID &logic_id, const std::string &key, float v) |
LMFDat & | setData (const EcalLogicID &logic_id, const std::vector< float > &data) |
LMFDat & | setData (int logic_id, const std::vector< float > &data) |
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 () override | |
Public Member Functions inherited from LMFUnique | |
void | attach (std::string name, LMFUnique *u) |
void | debug () |
virtual bool | exists () |
virtual std::list< std::unique_ptr< LMFUnique > > | fetchAll () const noexcept(false) |
int | fetchID () noexcept(false) override |
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 (EcalDBConnection *c) | |
LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
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) override |
LMFUnique & | setInt (std::string key, int value) |
LMFUnique & | setString (std::string key, std::string value) |
void | startProfiling () |
void | stopProfiling () |
~LMFUnique () override | |
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 |
class | LMFUnique |
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 const int | 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 () noexcept(false) |
void | getNeighbour (LMFDat *dat, int which) noexcept(false) |
int | writeDB () noexcept(false) override |
Protected Member Functions inherited from LMFUnique | |
virtual void | getParameters (ResultSet *rset) |
virtual void | setClassName (std::string s) |
virtual int | writeForeignKeys () noexcept(false) |
Protected Member Functions inherited from IDBObject | |
void | checkConnection () const noexcept(false) |
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 | ( | ) |
Definition at line 4 of file LMFCorrCoefDatComponent.cc.
References init().
LMFCorrCoefDatComponent::LMFCorrCoefDatComponent | ( | EcalDBConnection * | c | ) |
LMFCorrCoefDatComponent::LMFCorrCoefDatComponent | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
|
inlineoverride |
Definition at line 28 of file LMFCorrCoefDatComponent.h.
|
overridevirtual |
Reimplemented from LMFDat.
Definition at line 28 of file LMFCorrCoefDatComponent.cc.
Referenced by getLMFLmrSubIOV(), getLMFLmrSubIOVID(), and setLMFLmrSubIOV().
int LMFCorrCoefDatComponent::getFlag | ( | const EcalLogicID & | id | ) |
|
overridevirtual |
Reimplemented from LMFDat.
Definition at line 32 of file LMFCorrCoefDatComponent.cc.
LMFLmrSubIOV LMFCorrCoefDatComponent::getLMFLmrSubIOV | ( | ) | const |
Definition at line 76 of file LMFCorrCoefDatComponent.cc.
References foreignKeyName(), LMFUnique::getInt(), IDBObject::m_conn, IDBObject::m_env, and LMFUnique::setByID().
int LMFCorrCoefDatComponent::getLMFLmrSubIOVID | ( | ) | const |
Definition at line 82 of file LMFCorrCoefDatComponent.cc.
References foreignKeyName(), and LMFUnique::getInt().
std::vector< float > LMFCorrCoefDatComponent::getParameterErrors | ( | const EcalLogicID & | id | ) |
Definition at line 100 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), and findQualityFiles::v.
std::vector< float > LMFCorrCoefDatComponent::getParameterErrors | ( | int | id | ) |
Definition at line 108 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), and findQualityFiles::v.
std::vector< float > LMFCorrCoefDatComponent::getParameters | ( | const EcalLogicID & | id | ) |
Definition at line 84 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), and findQualityFiles::v.
std::vector< float > LMFCorrCoefDatComponent::getParameters | ( | int | id | ) |
Definition at line 92 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), and findQualityFiles::v.
|
inline |
Definition at line 94 of file LMFUnique.h.
int LMFCorrCoefDatComponent::getSeqID | ( | const EcalLogicID & | id | ) |
int LMFCorrCoefDatComponent::getSeqID | ( | int | id | ) |
LMFSeqDat LMFCorrCoefDatComponent::getSequence | ( | const EcalLogicID & | id | ) |
Definition at line 122 of file LMFCorrCoefDatComponent.cc.
References LMFDat::getData(), IDBObject::m_conn, IDBObject::m_env, and cmsswSequenceInfo::seq.
|
overridevirtual |
Reimplemented from LMFDat.
Definition at line 30 of file LMFCorrCoefDatComponent.cc.
|
private |
Definition at line 13 of file LMFCorrCoefDatComponent.cc.
References mps_fire::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 61 of file LMFCorrCoefDatComponent.cc.
References RemoveAddSevLevel::flag, and LMFDat::setData().
Referenced by LMFCorrCoefDat::setFlag().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setLMFLmrSubIOV | ( | const LMFLmrSubIOV & | iov | ) |
Definition at line 34 of file LMFCorrCoefDatComponent.cc.
References LMFUnique::attach(), foreignKeyName(), LMFUnique::getID(), and LMFUnique::setInt().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setP123 | ( | const EcalLogicID & | id, |
float | p1, | ||
float | p2, | ||
float | p3 | ||
) |
Definition at line 40 of file LMFCorrCoefDatComponent.cc.
References p1, p2, p3, and 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 47 of file LMFCorrCoefDatComponent.cc.
References p1, p2, p3, setP123(), and setP123Errors().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setP123Errors | ( | const EcalLogicID & | id, |
float | p1e, | ||
float | p2e, | ||
float | p3e | ||
) |
Definition at line 54 of file LMFCorrCoefDatComponent.cc.
References LMFDat::setData().
Referenced by setP123(), and LMFCorrCoefDat::setP123Errors().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setSequence | ( | const EcalLogicID & | id, |
const LMFSeqDat & | seq | ||
) |
Definition at line 71 of file LMFCorrCoefDatComponent.cc.
References cmsswSequenceInfo::seq, and LMFDat::setData().
LMFCorrCoefDatComponent & LMFCorrCoefDatComponent::setSequence | ( | const EcalLogicID & | id, |
int | seq_id | ||
) |
Definition at line 66 of file LMFCorrCoefDatComponent.cc.
References LMFDat::setData().
Referenced by LMFCorrCoefDat::setSequence().
|
overridevirtualnoexcept |
Reimplemented from LMFUnique.
Definition at line 129 of file LMFCorrCoefDatComponent.cc.
References MillePedeFileConverter_cfg::e, IDBObject::m_conn, runTheMatrix::ret, and LMFDat::writeDB().
|
friend |
Definition at line 23 of file LMFCorrCoefDatComponent.h.
|
friend |
Definition at line 40 of file LMFCorrCoefDatComponent.h.