#include <LMFDat.h>
Public Member Functions | |
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 std::string | getTableName () 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 () |
Protected Member Functions | |
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 | |
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 |
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 |
LMFDat::LMFDat | ( | ) |
LMFDat::LMFDat | ( | EcalDBConnection * | c | ) |
LMFDat::LMFDat | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
|
protected |
Definition at line 255 of file LMFDat.cc.
References _wherePars, prof2calltree::count, run_regression::done, and gen::n.
|
protected |
Definition at line 103 of file LMFDat.cc.
References gather_cfg::cout, getTableName(), i, LMFUnique::m_className, LMFUnique::m_debug, m_keys, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by writeDB().
|
protected |
Definition at line 139 of file LMFDat.cc.
References _where, prof2calltree::count, gather_cfg::cout, getIovIdFieldName(), getLMFRunIOVID(), getTableName(), LMFUnique::m_className, LMFUnique::m_debug, and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 576 of file LMFDat.cc.
References getKeyTypes(), getTableName(), LMFUnique::m_className, m_Error, m_keys, m_type, and run_regression::ret.
Referenced by writeDB().
|
virtual |
|
virtual |
|
virtual |
Definition at line 76 of file LMFDat.cc.
References EnergyCorrector::c, gather_cfg::cout, LMFUnique::dump(), end, getReverseMap(), j, m_data, AlCaHLTBitMon_ParallelJobs::p, submit::rm, alignCSCRings::s, and x.
void LMFDat::fetch | ( | ) | ||
throw | ( | std::runtime_error | ||
) |
Definition at line 237 of file LMFDat.cc.
Referenced by LMFCorrCoefDat::fetch().
void LMFDat::fetch | ( | int | logic_id | ) | |
throw | ( | std::runtime_error | |||
) |
void LMFDat::fetch | ( | int | logic_id, |
const Tm & | tm | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 249 of file LMFDat.cc.
References cond::persistency::fetch().
void LMFDat::fetch | ( | int | logic_id, |
const Tm * | timestamp, | ||
int | dir | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 281 of file LMFDat.cc.
References DDVectorGetter::check(), prof2calltree::count, gather_cfg::cout, alignCSCRings::e, i, NULL, convertSQLiteXML::ok, AlCaHLTBitMon_QueryRunRegistry::string, cond::timestamp, and x().
void LMFDat::fetch | ( | const EcalLogicID & | id, |
const Tm & | tm | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 224 of file LMFDat.cc.
References cond::persistency::fetch().
void LMFDat::fetch | ( | const EcalLogicID & | id, |
const Tm & | tm, | ||
int | dir | ||
) | |||
throw | ( | std::runtime_error | |
) |
void LMFDat::fetch | ( | const EcalLogicID & | id | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 218 of file LMFDat.cc.
References cond::persistency::fetch().
std::map< int, std::vector< float > > LMFDat::fetchData | ( | ) | ||
throw | ( | std::runtime_error | ||
) |
Definition at line 352 of file LMFDat.cc.
References gather_cfg::cout, alignCSCRings::e, getIovIdFieldName(), getLMFRunIOVID(), getTableName(), i, LMFUnique::m_className, IDBObject::m_conn, m_data, LMFUnique::m_debug, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by writeDB().
|
virtual |
Reimplemented in LMFCorrCoefDatComponent.
Definition at line 31 of file LMFDat.cc.
Referenced by getLMFRunIOV(), getLMFRunIOVID(), isValid(), setLMFRunIOV(), and writeDB().
std::vector< float > LMFDat::getData | ( | int | id | ) |
std::vector< float > LMFDat::getData | ( | const EcalLogicID & | id | ) |
bool LMFDat::getData | ( | int | id, |
std::vector< float > & | ret | ||
) |
bool LMFDat::getData | ( | const EcalLogicID & | id, |
std::vector< float > & | ret | ||
) |
std::map< int, std::vector< float > > LMFDat::getData | ( | void | ) |
Definition at line 636 of file LMFDat.cc.
References m_data.
Referenced by LMFPrimDat::getAlpha(), LMFPrimDat::getAPDoverAM3(), LMFPrimDat::getAPDoverAMean(), LMFPrimDat::getAPDoverARMS(), LMFPrimDat::getAPDoverBM3(), LMFPrimDat::getAPDoverBMean(), LMFPrimDat::getAPDoverBRMS(), LMFPrimDat::getAPDoverPnM3(), LMFPrimDat::getAPDoverPnMean(), LMFPrimDat::getAPDoverPnRMS(), LMFPrimDat::getBeta(), LMFTestPulseConfigDat::getDACMGPA(), getData(), LMFClsDat::getENorm(), LMFRunDat::getEvents(), LMFLaserPulseDat::getFitMethod(), LMFCorrCoefDatComponent::getFlag(), LMFClsDat::getFlag(), LMFPrimDat::getFlag(), LMFPnPrimDat::getFlag(), LMFClsDat::getFlagNorm(), LMFClsDat::getLMFRefRunIOVID(), LMFLaserConfigDat::getLSRAttenuator(), LMFLaserConfigDat::getLSRCurrent(), LMFLaserConfigDat::getLSRDelay1(), LMFLaserConfigDat::getLSRDelay2(), LMFLaserConfigDat::getLSRPower(), LMFPrimDat::getM3(), LMFPnPrimDat::getM3(), LMFClsDat::getMean(), LMFPrimDat::getMean(), LMFPnPrimDat::getMean(), LMFLaserPulseDat::getMTQAmplification(), LMFLaserPulseDat::getMTQFW20(), LMFLaserPulseDat::getMTQFW80(), LMFLaserPulseDat::getMTQFWHM(), LMFLaserPulseDat::getMTQRise(), LMFLaserPulseDat::getMTQSliding(), LMFLaserPulseDat::getMTQTime(), LMFClsDat::getNevt(), LMFClsDat::getNorm(), LMFCorrCoefDatComponent::getParameterErrors(), LMFCorrCoefDatComponent::getParameters(), LMFPnPrimDat::getPNAoverBM3(), LMFPnPrimDat::getPNAoverBMean(), LMFPnPrimDat::getPNAoverBRMS(), LMFTestPulseConfigDat::getPNGain(), LMFLaserConfigDat::getPNGain(), LMFTestPulseConfigDat::getPNVinj(), LMFRunDat::getQualityFlag(), LMFClsDat::getRMS(), LMFPrimDat::getRMS(), LMFPnPrimDat::getRMS(), LMFCorrCoefDatComponent::getSeqID(), LMFCorrCoefDatComponent::getSequence(), LMFPnPrimDat::getShapeCor(), LMFPrimDat::getShapeCorr(), LMFTestPulseConfigDat::getVFEGain(), LMFLaserConfigDat::getVFEGain(), LMFColoredTable::getVmax(), LMFColoredTable::getVmin(), LMFLaserConfigDat::getWavelength(), and operator[]().
float LMFDat::getData | ( | int | id, |
unsigned int | k | ||
) |
float LMFDat::getData | ( | const EcalLogicID & | id, |
unsigned int | k | ||
) |
float LMFDat::getData | ( | const EcalLogicID & | id, |
const std::string & | key | ||
) |
Definition at line 650 of file LMFDat.cc.
References getData(), and m_keys.
float LMFDat::getData | ( | int | id, |
const std::string & | key | ||
) |
Definition at line 654 of file LMFDat.cc.
References getData(), and m_keys.
bool LMFDat::getData | ( | int | id, |
unsigned int | k, | ||
float & | ret | ||
) |
Definition at line 660 of file LMFDat.cc.
References getData(), relval_steps::k, and findQualityFiles::v.
bool LMFDat::getData | ( | const EcalLogicID & | id, |
unsigned int | k, | ||
float & | ret | ||
) |
bool LMFDat::getData | ( | int | id, |
const std::string & | key, | ||
float & | ret | ||
) |
Definition at line 677 of file LMFDat.cc.
References getData(), and m_keys.
bool LMFDat::getData | ( | const EcalLogicID & | id, |
const std::string & | key, | ||
float & | ret | ||
) |
Definition at line 685 of file LMFDat.cc.
References getData().
|
virtual |
Reimplemented in LMFCorrCoefDatComponent.
Definition at line 119 of file LMFDat.cc.
Referenced by buildSelectSql(), fetchData(), and getKeyTypes().
|
inline |
Definition at line 113 of file LMFDat.h.
References alignCSCRings::e, i, prof2calltree::l, and m_keys.
|
inline |
|
protected |
Definition at line 542 of file LMFDat.cc.
References alignCSCRings::e, getIovIdFieldName(), getTableName(), i, LMFUnique::m_className, IDBObject::m_conn, m_keys, m_type, mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, and lumiQTWidget::t.
Referenced by check().
|
inline |
Definition at line 36 of file LMFDat.h.
References foreignKeyName(), LMFUnique::getInt(), IDBObject::m_conn, IDBObject::m_env, and LMFUnique::setByID().
Referenced by getSubrunStart().
int LMFDat::getLMFRunIOVID | ( | ) |
Definition at line 35 of file LMFDat.cc.
References LMFUnique::fetchID(), foreignKeyName(), LMFUnique::getInt(), i, o2o::iov, LMFUnique::m_foreignKeys, NULL, and LMFUnique::setInt().
Referenced by buildSelectSql(), and fetchData().
|
inline |
Definition at line 99 of file LMFDat.h.
References alignCSCRings::e, i, prof2calltree::l, and m_data.
|
protected |
Definition at line 200 of file LMFDat.cc.
References hcal_timing_source_file_cfg::dump, and eostools::which().
void LMFDat::getNext | ( | LMFDat * | dat | ) | |
throw | ( | std::runtime_error | |||
) |
void LMFDat::getPrevious | ( | LMFDat * | dat | ) | |
throw | ( | std::runtime_error | |||
) |
std::map< unsigned int, std::string > LMFDat::getReverseMap | ( | ) | const |
Definition at line 57 of file LMFDat.cc.
References alignCSCRings::e, i, visualization-live-secondInstance_cfg::m, and m_keys.
Referenced by dump().
|
inline |
|
inlinevirtual |
Reimplemented in LMFCorrCoefDatComponent, LMFPnPrimDat, LMFClsDat, LMFPrimDat, LMFLaserPulseDat, and LMFColoredTable.
Definition at line 49 of file LMFDat.h.
References m_tableName.
Referenced by buildInsertSql(), buildSelectSql(), check(), fetchData(), and getKeyTypes().
|
virtual |
Reimplemented from LMFUnique.
Reimplemented in LMFPrimDat, LMFPnPrimDat, LMFLaserPulseDat, and LMFClsDat.
Definition at line 339 of file LMFDat.cc.
References gather_cfg::cout, foreignKeyName(), LMFUnique::m_className, LMFUnique::m_debug, m_Error, LMFUnique::m_foreignKeys, and run_regression::ret.
Referenced by LMFLaserPulseDat::isValid(), core.AutoHandle.AutoHandle::ReallyLoad(), and writeDB().
std::vector< float > LMFDat::operator[] | ( | int | id | ) |
|
inline |
Definition at line 55 of file LMFDat.h.
Referenced by LMFRunDat::Data(), LMFPrimDat::setAlpha(), LMFPrimDat::setAPDoverAM3(), LMFPrimDat::setAPDoverAMean(), LMFPrimDat::setAPDoverARMS(), LMFPrimDat::setAPDoverBM3(), LMFPrimDat::setAPDoverBMean(), LMFPrimDat::setAPDoverBRMS(), LMFPrimDat::setAPDoverPnM3(), LMFPrimDat::setAPDoverPnMean(), LMFPrimDat::setAPDoverPnRMS(), LMFPrimDat::setBeta(), LMFTestPulseConfigDat::setDACMGPA(), LMFRunDat::setData(), LMFTestPulseConfigDat::setData(), LMFLaserConfigDat::setData(), LMFClsDat::setENorm(), LMFRunDat::setEvents(), LMFLaserPulseDat::setFitMethod(), LMFCorrCoefDatComponent::setFlag(), LMFPrimDat::setFlag(), LMFClsDat::setFlag(), LMFPnPrimDat::setFlag(), LMFClsDat::setFlagNorm(), LMFClsDat::setLMFRefRunIOVID(), LMFLaserConfigDat::setLSRAttenuator(), LMFLaserConfigDat::setLSRCurrent(), LMFLaserConfigDat::setLSRDelay1(), LMFLaserConfigDat::setLSRDelay2(), LMFLaserConfigDat::setLSRPower(), LMFPrimDat::setM3(), LMFPnPrimDat::setM3(), LMFPrimDat::setMean(), LMFPnPrimDat::setMean(), LMFClsDat::setMean(), LMFLaserPulseDat::setMTQAmplification(), LMFLaserPulseDat::setMTQFW20(), LMFLaserPulseDat::setMTQFW80(), LMFLaserPulseDat::setMTQFWHM(), LMFLaserPulseDat::setMTQRise(), LMFLaserPulseDat::setMTQSliding(), LMFLaserPulseDat::setMTQTime(), LMFClsDat::setNevt(), LMFClsDat::setNorm(), LMFCorrCoefDatComponent::setP123(), LMFCorrCoefDatComponent::setP123Errors(), LMFPnPrimDat::setPNAoverBM3(), LMFPnPrimDat::setPNAoverBMean(), LMFPnPrimDat::setPNAoverBRMS(), LMFTestPulseConfigDat::setPNGain(), LMFLaserConfigDat::setPNGain(), LMFTestPulseConfigDat::setPNVinj(), LMFRunDat::setQualityFlag(), LMFPrimDat::setRMS(), LMFPnPrimDat::setRMS(), LMFClsDat::setRMS(), LMFCorrCoefDatComponent::setSequence(), LMFPnPrimDat::setShapeCorr(), LMFPrimDat::setShapeCorr(), LMFColoredTable::setVersions(), LMFTestPulseConfigDat::setVFEGain(), LMFLaserConfigDat::setVFEGain(), LMFColoredTable::setVmax(), LMFColoredTable::setVmin(), and LMFLaserConfigDat::setWavelength().
|
inline |
|
inline |
Definition at line 64 of file LMFDat.h.
References EcalLogicID::getLogicID(), relval_steps::key, m_data, m_keys, and findQualityFiles::v.
Definition at line 31 of file LMFDat.h.
References LMFUnique::attach(), foreignKeyName(), LMFUnique::getID(), and LMFUnique::setInt().
LMFDat & LMFDat::setMaxDataToDump | ( | int | n | ) |
void LMFDat::setWhereClause | ( | std::string | w | ) |
void LMFDat::setWhereClause | ( | std::string | w, |
const std::vector< std::string > & | p | ||
) |
Definition at line 128 of file LMFDat.cc.
References _where, _wherePars, and Parameters::parameters.
|
inline |
|
protectedvirtual |
Reimplemented from LMFUnique.
Definition at line 398 of file LMFDat.cc.
References b, buildInsertSql(), EnergyCorrector::c, check(), IDBObject::checkConnection(), gather_cfg::cout, LMFUnique::debug(), dump(), alignCSCRings::e, fetchData(), foreignKeyName(), LMFUnique::getID(), i, isValid(), relval_steps::k, LMFUnique::m_className, IDBObject::m_conn, LMFUnique::m_debug, m_Error, LMFUnique::m_foreignKeys, m_keys, m_max, m_type, convertSQLiteXML::ok, run_regression::ret, setMaxDataToDump(), size(), AlCaHLTBitMon_QueryRunRegistry::string, LMFUnique::writeForeignKeys(), and x.
Referenced by LMFCorrCoefDatComponent::writeDB(), and LMFColoredTable::writeDB().
|
friend |
|
protected |
Definition at line 159 of file LMFDat.h.
Referenced by buildSelectSql(), LMFDat(), and setWhereClause().
|
protected |
Definition at line 160 of file LMFDat.h.
Referenced by adjustParameters(), LMFDat(), and setWhereClause().
|
protected |
Definition at line 153 of file LMFDat.h.
Referenced by dump(), fetchData(), getData(), getLogicIds(), setData(), LMFPnPrimDat::setSystem(), size(), and LMFColoredTable::writeDB().
|
protected |
Definition at line 157 of file LMFDat.h.
Referenced by check(), LMFClsDat::isValid(), LMFLaserPulseDat::isValid(), LMFPnPrimDat::isValid(), LMFPrimDat::isValid(), isValid(), and writeDB().
|
protected |
Definition at line 155 of file LMFDat.h.
Referenced by buildInsertSql(), check(), getData(), getKeyList(), getKeys(), getKeyTypes(), getReverseMap(), LMFCorrCoefDatComponent::init(), LMFClsDat::init(), LMFLaserPulseDat::init(), LMFPnPrimDat::init(), LMFPrimDat::init(), LMFLaserConfigDat::LMFLaserConfigDat(), LMFRunDat::LMFRunDat(), LMFTestPulseConfigDat::LMFTestPulseConfigDat(), setData(), LMFPnPrimDat::setSystem(), and writeDB().
|
protected |
|
protected |
Definition at line 156 of file LMFDat.h.
Referenced by getTableName(), LMFDat(), LMFLaserConfigDat::LMFLaserConfigDat(), LMFRunDat::LMFRunDat(), and LMFTestPulseConfigDat::LMFTestPulseConfigDat().
|
protected |
Definition at line 150 of file LMFDat.h.
Referenced by check(), getKeyTypes(), LMFCorrCoefDatComponent::init(), LMFClsDat::init(), LMFLaserPulseDat::init(), LMFPnPrimDat::init(), LMFPrimDat::init(), LMFPnPrimDat::setSystem(), and writeDB().