![]() |
![]() |
#include <LMFColoredTable.h>
Public Member Functions | |
std::string | getColor () const |
virtual std::string | getSystem () const |
std::string | getTableName () const override=0 |
int | getVmax (EcalLogicID &id) |
int | getVmin (EcalLogicID &id) |
LMFColoredTable () | |
LMFColoredTable (EcalDBConnection *c) | |
LMFColoredTable (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
LMFColoredTable & | setColor (int color) |
LMFColoredTable & | setColor (std::string color) |
virtual LMFColoredTable & | setSystem (int system) |
virtual LMFColoredTable & | setSystem (std::string s) |
LMFColoredTable & | setVersions (EcalLogicID &id, int vmin, int vmax) |
LMFColoredTable & | setVmax (EcalLogicID &id, int v) |
LMFColoredTable & | setVmin (EcalLogicID &id, int v) |
int | writeDB () noexcept(false) override |
~LMFColoredTable () override | |
![]() | |
void | dump () const override |
void | dump (int n) const override |
virtual void | dump (int n, int max) const |
void | fetch () 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) |
void | fetch (const EcalLogicID &id, const Tm &tm) noexcept(false) |
void | fetch (const EcalLogicID &id, const Tm &tm, int dir) noexcept(false) |
void | fetch (const EcalLogicID &id) noexcept(false) |
std::map< int, std::vector< float > > | fetchData () noexcept(false) |
virtual std::string | foreignKeyName () const |
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) |
virtual std::string | getIovIdFieldName () const |
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 (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 () override | |
![]() | |
void | attach (std::string name, LMFUnique *u) |
void | debug () |
virtual bool | exists () |
virtual boost::ptr_list< 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 (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) override |
LMFUnique & | setInt (std::string key, int value) |
LMFUnique & | setString (std::string key, std::string value) |
void | startProfiling () |
void | stopProfiling () |
~LMFUnique () override | |
![]() | |
oracle::occi::Connection * | getConn () const |
oracle::occi::Environment * | getEnv () const |
void | setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn) |
virtual | ~IDBObject () |
Protected Attributes | |
int | m_color |
int | m_system |
![]() | |
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 |
![]() | |
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 |
![]() | |
int | m_ID |
![]() | |
oracle::occi::Connection * | m_conn |
oracle::occi::Environment * | m_env |
Private Attributes | |
std::map< int, std::string > | COLOR |
std::map< int, std::string > | SYSTEM |
Additional Inherited Members | |
![]() | |
typedef oracle::occi::ResultSet | ResultSet |
typedef oracle::occi::Statement | Statement |
![]() | |
static int const | ECALDB_NROWS =1024 |
![]() | |
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 |
![]() | |
virtual void | getParameters (ResultSet *rset) |
virtual void | setClassName (std::string s) |
virtual int | writeForeignKeys () noexcept(false) |
![]() | |
void | checkConnection () const noexcept(false) |
LMF_YYYY_XXX_ZZZ interface ^ ^ ^ | | | | | - table | _____ color -------— system
Definition at line 20 of file LMFColoredTable.h.
LMFColoredTable::LMFColoredTable | ( | ) |
Definition at line 3 of file LMFColoredTable.cc.
References COLOR, LMFUnique::m_className, m_color, m_system, and SYSTEM.
LMFColoredTable::LMFColoredTable | ( | EcalDBConnection * | c | ) |
Definition at line 15 of file LMFColoredTable.cc.
References COLOR, LMFUnique::m_className, m_color, m_system, and SYSTEM.
LMFColoredTable::LMFColoredTable | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
Definition at line 27 of file LMFColoredTable.cc.
References COLOR, LMFUnique::m_className, m_color, m_system, and SYSTEM.
|
inlineoverride |
Definition at line 26 of file LMFColoredTable.h.
References getColor(), getSystem(), getTableName(), and AlCaHLTBitMon_QueryRunRegistry::string.
std::string LMFColoredTable::getColor | ( | ) | const |
Definition at line 41 of file LMFColoredTable.cc.
References COLOR, mps_fire::i, m_color, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFLaserPulseDat::getTableName(), LMFPrimDat::getTableName(), LMFClsDat::getTableName(), LMFPnPrimDat::getTableName(), LMFClsDat::isValid(), LMFLaserPulseDat::isValid(), LMFPnPrimDat::isValid(), LMFPrimDat::isValid(), and ~LMFColoredTable().
|
virtual |
Reimplemented in LMFClsDat.
Definition at line 50 of file LMFColoredTable.cc.
References mps_fire::i, m_system, AlCaHLTBitMon_QueryRunRegistry::string, and SYSTEM.
Referenced by LMFPnPrimDat::getShapeCor(), LMFPrimDat::getTableName(), LMFPnPrimDat::getTableName(), LMFPnPrimDat::isValid(), LMFPrimDat::isValid(), LMFPnPrimDat::setShapeCorr(), and ~LMFColoredTable().
|
overridepure virtual |
Reimplemented from LMFDat.
Implemented in LMFPnPrimDat, LMFClsDat, LMFPrimDat, and LMFLaserPulseDat.
Referenced by ~LMFColoredTable().
|
inline |
Definition at line 68 of file LMFColoredTable.h.
References LMFDat::getData(), noexcept, and writeDB().
|
inline |
|
inline |
Definition at line 33 of file LMFColoredTable.h.
References COLOR, create_public_lumi_plots::color, LMFUnique::m_className, m_color, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFClsDat::LMFClsDat(), LMFLaserPulseDat::LMFLaserPulseDat(), LMFPnPrimDat::LMFPnPrimDat(), LMFPrimDat::LMFPrimDat(), and setColor().
LMFColoredTable & LMFColoredTable::setColor | ( | std::string | color | ) |
Definition at line 59 of file LMFColoredTable.cc.
References COLOR, MillePedeFileConverter_cfg::e, mps_fire::i, heppy_loop::loop, setColor(), and create_public_lumi_plots::transform.
|
inlinevirtual |
Reimplemented in LMFClsDat.
Definition at line 41 of file LMFColoredTable.h.
References LMFUnique::m_className, m_system, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, and SYSTEM.
Referenced by LMFLaserPulseDat::init(), LMFPrimDat::LMFPrimDat(), setSystem(), and LMFPnPrimDat::setSystem().
|
virtual |
Reimplemented in LMFPnPrimDat, and LMFClsDat.
Definition at line 74 of file LMFColoredTable.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, heppy_loop::loop, setSystem(), SYSTEM, and create_public_lumi_plots::transform.
|
inline |
Definition at line 58 of file LMFColoredTable.h.
References LMFDat::setData().
|
inline |
Definition at line 53 of file LMFColoredTable.h.
References LMFDat::setData().
|
inline |
Definition at line 49 of file LMFColoredTable.h.
References LMFDat::setData().
|
overridevirtualnoexcept |
Reimplemented from LMFUnique.
Definition at line 89 of file LMFColoredTable.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, IDBObject::m_conn, LMFDat::m_data, alignCSCRings::s, and LMFDat::writeDB().
Referenced by getVmax().
|
private |
Definition at line 80 of file LMFColoredTable.h.
Referenced by getColor(), LMFColoredTable(), and setColor().
|
protected |
Definition at line 76 of file LMFColoredTable.h.
Referenced by getColor(), LMFClsDat::init(), LMFLaserPulseDat::init(), LMFPnPrimDat::init(), LMFPrimDat::init(), LMFColoredTable(), and setColor().
|
protected |
Definition at line 77 of file LMFColoredTable.h.
Referenced by getSystem(), LMFClsDat::init(), LMFPnPrimDat::init(), LMFPrimDat::init(), LMFColoredTable(), and setSystem().
|
private |
Definition at line 81 of file LMFColoredTable.h.
Referenced by getSystem(), LMFColoredTable(), and setSystem().