#include <LMFDat.h>
Public Member Functions | |
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 |
virtual std::string | getTableName () 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 | |
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 (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 | |
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 () 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 | |
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 207 of file LMFDat.cc.
References _wherePars, submitPVResolutionJobs::count, fileCollector::done, and dqmiodumpmetadata::n.
|
protected |
Definition at line 95 of file LMFDat.cc.
References gather_cfg::cout, getTableName(), mps_fire::i, LMFUnique::m_className, LMFUnique::m_debug, m_keys, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by writeDB().
|
protected |
Definition at line 128 of file LMFDat.cc.
References _where, submitPVResolutionJobs::count, gather_cfg::cout, getIovIdFieldName(), getLMFRunIOVID(), getTableName(), LMFUnique::m_className, LMFUnique::m_debug, eventshapeDQM_cfi::order, and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 505 of file LMFDat.cc.
References relativeConstraints::empty, getKeyTypes(), getTableName(), LMFUnique::m_className, m_Error, m_keys, m_type, and runTheMatrix::ret.
Referenced by writeDB().
|
overridevirtual |
|
overridevirtual |
|
virtual |
Definition at line 68 of file LMFDat.cc.
References HltBtagPostValidation_cff::c, gather_cfg::cout, LMFUnique::dump(), mps_fire::end, getReverseMap(), dqmiolumiharvest::j, m_data, SiStripPI::max, dqmiodumpmetadata::n, AlCaHLTBitMon_ParallelJobs::p, eostools::rm(), alignCSCRings::s, and x.
|
noexcept |
|
noexcept |
|
noexcept |
Definition at line 232 of file LMFDat.cc.
References RPCNoise_example::check, submitPVResolutionJobs::count, gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, sistrip::SpyUtilities::isValid(), convertSQLiteXML::ok, AlCaHLTBitMon_QueryRunRegistry::string, cond::timestamp, and x.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Definition at line 299 of file LMFDat.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, getIovIdFieldName(), getLMFRunIOVID(), getTableName(), mps_fire::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 30 of file LMFDat.cc.
Referenced by getLMFRunIOV(), getLMFRunIOVID(), isValid(), setLMFRunIOV(), and writeDB().
std::vector< float > LMFDat::getData | ( | int | id | ) |
Definition at line 532 of file LMFDat.cc.
References l1ctLayer2EG_cff::id, m_data, and runTheMatrix::ret.
std::vector< float > LMFDat::getData | ( | const EcalLogicID & | id | ) |
bool LMFDat::getData | ( | int | id, |
std::vector< float > & | ret | ||
) |
Definition at line 546 of file LMFDat.cc.
References l1ctLayer2EG_cff::id, m_data, and runTheMatrix::ret.
bool LMFDat::getData | ( | const EcalLogicID & | id, |
std::vector< float > & | ret | ||
) |
std::map< int, std::vector< float > > LMFDat::getData | ( | void | ) |
Definition at line 559 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 | ||
) |
Definition at line 563 of file LMFDat.cc.
References l1ctLayer2EG_cff::id, dqmdumpme::k, and m_data.
float LMFDat::getData | ( | const EcalLogicID & | id, |
unsigned int | k | ||
) |
float LMFDat::getData | ( | const EcalLogicID & | id, |
const std::string & | key | ||
) |
float LMFDat::getData | ( | int | id, |
const std::string & | key | ||
) |
bool LMFDat::getData | ( | int | id, |
unsigned int | k, | ||
float & | ret | ||
) |
Definition at line 573 of file LMFDat.cc.
References getData(), dqmdumpme::k, runTheMatrix::ret, and findQualityFiles::v.
bool LMFDat::getData | ( | const EcalLogicID & | id, |
unsigned int | k, | ||
float & | ret | ||
) |
Definition at line 586 of file LMFDat.cc.
References getData(), dqmdumpme::k, and runTheMatrix::ret.
bool LMFDat::getData | ( | int | id, |
const std::string & | key, | ||
float & | ret | ||
) |
Definition at line 588 of file LMFDat.cc.
References getData(), crabWrapper::key, m_keys, and runTheMatrix::ret.
bool LMFDat::getData | ( | const EcalLogicID & | id, |
const std::string & | key, | ||
float & | ret | ||
) |
Definition at line 596 of file LMFDat.cc.
References getData(), crabWrapper::key, and runTheMatrix::ret.
|
virtual |
Reimplemented in LMFCorrCoefDatComponent.
Definition at line 111 of file LMFDat.cc.
Referenced by buildSelectSql(), fetchData(), and getKeyTypes().
|
inline |
Definition at line 103 of file LMFDat.h.
References MillePedeFileConverter_cfg::e, mps_fire::i, cmsLHEtoEOSManager::l, and m_keys.
|
inline |
|
protectednoexcept |
Definition at line 474 of file LMFDat.cc.
References MillePedeFileConverter_cfg::e, getIovIdFieldName(), getTableName(), mps_fire::i, LMFUnique::m_className, IDBObject::m_conn, m_keys, m_type, Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, and submitPVValidationJobs::t.
Referenced by check().
|
inline |
Definition at line 34 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 32 of file LMFDat.cc.
References LMFUnique::fetchID(), foreignKeyName(), LMFUnique::getInt(), mps_fire::i, l1ctLayer2EG_cff::id, LMFUnique::m_foreignKeys, and LMFUnique::setInt().
Referenced by buildSelectSql(), and fetchData().
|
inline |
Definition at line 91 of file LMFDat.h.
References MillePedeFileConverter_cfg::e, mps_fire::i, cmsLHEtoEOSManager::l, and m_data.
|
protectednoexcept |
Definition at line 176 of file LMFDat.cc.
References GCP_Ntuples_cfg::dump, and eostools::which().
|
noexcept |
Definition at line 174 of file LMFDat.cc.
|
noexcept |
Definition at line 172 of file LMFDat.cc.
std::map< unsigned int, std::string > LMFDat::getReverseMap | ( | ) | const |
Definition at line 53 of file LMFDat.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, visualization-live-secondInstance_cfg::m, and m_keys.
Referenced by dump().
|
inline |
|
inlinevirtual |
Reimplemented in LMFCorrCoefDatComponent, LMFClsDat, LMFPnPrimDat, LMFLaserPulseDat, LMFPrimDat, and LMFColoredTable.
Definition at line 45 of file LMFDat.h.
References m_tableName.
Referenced by buildInsertSql(), buildSelectSql(), check(), fetchData(), and getKeyTypes().
|
overridevirtual |
Reimplemented from LMFUnique.
Reimplemented in LMFPrimDat, LMFPnPrimDat, and LMFLaserPulseDat.
Definition at line 287 of file LMFDat.cc.
References gather_cfg::cout, foreignKeyName(), LMFUnique::m_className, LMFUnique::m_debug, m_Error, LMFUnique::m_foreignKeys, and runTheMatrix::ret.
Referenced by ntupleDataFormat._Object::_checkIsValid(), LMFLaserPulseDat::isValid(), core.AutoHandle.AutoHandle::ReallyLoad(), and writeDB().
std::vector< float > LMFDat::operator[] | ( | int | id | ) |
|
inline |
Definition at line 49 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(), LMFPnPrimDat::setFlag(), LMFClsDat::setFlag(), LMFClsDat::setFlagNorm(), LMFClsDat::setLMFRefRunIOVID(), LMFLaserConfigDat::setLSRAttenuator(), LMFLaserConfigDat::setLSRCurrent(), LMFLaserConfigDat::setLSRDelay1(), LMFLaserConfigDat::setLSRDelay2(), LMFLaserConfigDat::setLSRPower(), LMFPnPrimDat::setM3(), LMFPrimDat::setM3(), LMFPnPrimDat::setMean(), LMFPrimDat::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 57 of file LMFDat.h.
References EcalLogicID::getLogicID(), l1ctLayer2EG_cff::id, crabWrapper::key, m_data, m_keys, and findQualityFiles::v.
Definition at line 29 of file LMFDat.h.
References LMFUnique::attach(), foreignKeyName(), LMFUnique::getID(), and LMFUnique::setInt().
LMFDat & LMFDat::setMaxDataToDump | ( | int | n | ) |
Definition at line 48 of file LMFDat.cc.
References m_max, and dqmiodumpmetadata::n.
Referenced by writeDB().
void LMFDat::setWhereClause | ( | std::string | w | ) |
void LMFDat::setWhereClause | ( | std::string | w, |
const std::vector< std::string > & | p | ||
) |
|
inline |
Definition at line 63 of file LMFDat.h.
References m_data.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and writeDB().
|
overrideprotectedvirtualnoexcept |
Reimplemented from LMFUnique.
Definition at line 337 of file LMFDat.cc.
References b, cms::cuda::be, edmScanValgrind::buffer, buildInsertSql(), HltBtagPostValidation_cff::c, check(), IDBObject::checkConnection(), gather_cfg::cout, LMFUnique::debug(), dump(), MillePedeFileConverter_cfg::e, fetchData(), dqmMemoryStats::float, foreignKeyName(), LMFUnique::getID(), mps_fire::i, l1ctLayer2EG_cff::id, createfilelist::int, isValid(), dqmdumpme::k, LMFUnique::m_className, IDBObject::m_conn, LMFUnique::m_debug, m_Error, LMFUnique::m_foreignKeys, m_keys, m_max, m_type, convertSQLiteXML::ok, runTheMatrix::ret, setMaxDataToDump(), size(), AlCaHLTBitMon_QueryRunRegistry::string, LMFUnique::writeForeignKeys(), and x.
Referenced by LMFCorrCoefDatComponent::writeDB(), and LMFColoredTable::writeDB().
|
friend |
|
protected |
Definition at line 149 of file LMFDat.h.
Referenced by buildSelectSql(), LMFDat(), and setWhereClause().
|
protected |
Definition at line 150 of file LMFDat.h.
Referenced by adjustParameters(), LMFDat(), and setWhereClause().
|
protected |
Definition at line 143 of file LMFDat.h.
Referenced by dump(), fetchData(), getData(), getLogicIds(), setData(), LMFPnPrimDat::setSystem(), size(), and LMFColoredTable::writeDB().
|
protected |
Definition at line 147 of file LMFDat.h.
Referenced by check(), LMFClsDat::isValid(), LMFLaserPulseDat::isValid(), LMFPnPrimDat::isValid(), LMFPrimDat::isValid(), isValid(), and writeDB().
|
protected |
Definition at line 145 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 146 of file LMFDat.h.
Referenced by getTableName(), LMFDat(), LMFLaserConfigDat::LMFLaserConfigDat(), LMFRunDat::LMFRunDat(), and LMFTestPulseConfigDat::LMFTestPulseConfigDat().
|
protected |
Definition at line 140 of file LMFDat.h.
Referenced by check(), getKeyTypes(), LMFCorrCoefDatComponent::init(), LMFClsDat::init(), LMFLaserPulseDat::init(), LMFPnPrimDat::init(), LMFPrimDat::init(), LMFPnPrimDat::setSystem(), and writeDB().