#include <LMFColoredTable.h>
Public Member Functions | |
std::string | getColor () const |
virtual std::string | getSystem () const |
virtual std::string | getTableName () const =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 () throw (std::runtime_error) |
~LMFColoredTable () | |
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) |
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) 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, 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 (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 () |
Protected Attributes | |
int | m_color |
int | m_system |
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 |
Private Attributes | |
std::map< int, std::string > | COLOR |
std::map< int, std::string > | SYSTEM |
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) |
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.
|
inline |
Definition at line 26 of file LMFColoredTable.h.
std::string LMFColoredTable::getColor | ( | ) | const |
Definition at line 41 of file LMFColoredTable.cc.
References COLOR, i, m_color, and run_regression::ret.
Referenced by LMFLaserPulseDat::getTableName(), LMFClsDat::getTableName(), LMFPrimDat::getTableName(), LMFPnPrimDat::getTableName(), LMFClsDat::isValid(), LMFLaserPulseDat::isValid(), LMFPnPrimDat::isValid(), and LMFPrimDat::isValid().
|
virtual |
Reimplemented in LMFClsDat.
Definition at line 50 of file LMFColoredTable.cc.
References i, m_system, run_regression::ret, and SYSTEM.
Referenced by LMFPnPrimDat::getShapeCor(), LMFPrimDat::getTableName(), LMFPnPrimDat::getTableName(), LMFPnPrimDat::isValid(), LMFPrimDat::isValid(), and LMFPnPrimDat::setShapeCorr().
|
pure virtual |
Reimplemented from LMFDat.
Implemented in LMFPnPrimDat, LMFClsDat, LMFPrimDat, and LMFLaserPulseDat.
|
inline |
|
inline |
|
inline |
Definition at line 33 of file LMFColoredTable.h.
References COLOR, create_public_lumi_plots::color, LMFUnique::m_className, and m_color.
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, alignCSCRings::e, i, python.cmstools::loop(), setColor(), and create_public_pileup_plots::transform.
|
inlinevirtual |
Reimplemented in LMFClsDat.
Definition at line 41 of file LMFColoredTable.h.
References LMFUnique::m_className, m_system, 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 alignCSCRings::e, i, python.cmstools::loop(), setSystem(), SYSTEM, and create_public_pileup_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().
|
virtual |
Reimplemented from LMFUnique.
Definition at line 89 of file LMFColoredTable.cc.
References alignCSCRings::e, i, IDBObject::m_conn, LMFDat::m_data, run_regression::ret, alignCSCRings::s, and LMFDat::writeDB().
|
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().