#include <LMFRunIOV.h>
Public Member Functions | |
virtual void | dump () const |
std::list< LMFRunIOV > | fetchBySequence (const LMFSeqDat &s) |
std::list< LMFRunIOV > | fetchBySequence (const LMFSeqDat &s, int lmr) |
std::list< LMFRunIOV > | fetchBySequence (const LMFSeqDat &s, int lmr, int type, int color) |
std::string | fetchIdSql (Statement *stmt) |
std::list< LMFRunIOV > | fetchLastBeforeSequence (const LMFSeqDat &s, int lmr, int type, int color) |
LMFColor | getColor () const |
std::string | getColorLongName () const |
std::string | getColorShortName () const |
Tm | getDBInsertionTime () const |
LMFColor | getLMFColor () const |
LMFRunTag | getLMFRunTag () const |
int | getLmr () const |
void | getParameters (ResultSet *rset) |
LMFSeqDat | getSequence () const |
Tm | getSubRunEnd () const |
Tm | getSubRunStart () const |
std::string | getSubRunType () const |
LMFTrigType | getTriggerType () const |
bool | isValid () |
LMFRunIOV () | |
LMFRunIOV (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
LMFRunIOV (EcalDBConnection *c) | |
LMFRunIOV (const LMFRunIOV &r) | |
bool | operator!= (const LMFRunIOV &m) const |
virtual LMFRunIOV & | operator= (const LMFRunIOV &r) |
bool | operator== (const LMFRunIOV &m) const |
std::string | setByIDSql (Statement *stmt, int id) |
LMFRunIOV & | setColor (const LMFColor &c) |
LMFRunIOV & | setColor (std::string name) |
LMFRunIOV & | setColor (int color_id) |
LMFRunIOV & | setColorIndex (int color_index) |
LMFRunIOV & | setLMFRunTag (const LMFRunTag &tag) |
LMFRunIOV & | setLMFRunTag (int tag_id) |
LMFRunIOV & | setLmr (int n) |
LMFRunIOV & | setSequence (LMFSeqDat &seq) |
LMFRunIOV & | setSequence (LMFSeqDat *seq) |
LMFRunIOV & | setSubRunEnd (const Tm &end) |
LMFRunIOV & | setSubRunStart (const Tm &start) |
LMFRunIOV & | setSubRunType (const std::string &x) |
LMFRunIOV & | setTriggerType (LMFTrigType &tt) |
LMFRunIOV & | setTriggerType (int trigType_id) |
LMFRunIOV & | setTriggerType (std::string trigShortName) |
std::string | writeDBSql (Statement *stmt) |
~LMFRunIOV () | |
Public Member Functions inherited from LMFUnique | |
void | attach (std::string name, LMFUnique *u) |
void | debug () |
virtual void | dump (int n) const |
virtual bool | exists () |
virtual boost::ptr_list< LMFUnique > | fetchAll () const noexcept(false) |
int | fetchID () noexcept(false) |
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) |
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 () |
Private Member Functions | |
void | checkFabric () |
std::list< LMFRunIOV > | fetchBySequence (const std::vector< int > &par, const std::string &sql, const std::string &method) noexcept(false) |
void | initialize () |
Private Attributes | |
LMFDefFabric * | _fabric |
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 |
Protected Member Functions inherited from LMFUnique | |
virtual void | setClassName (std::string s) |
virtual int | writeDB () noexcept(false) |
virtual int | writeForeignKeys () noexcept(false) |
Protected Member Functions inherited from IDBObject | |
void | checkConnection () const noexcept(false) |
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 19 of file LMFRunIOV.h.
LMFRunIOV::LMFRunIOV | ( | ) |
LMFRunIOV::LMFRunIOV | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
LMFRunIOV::LMFRunIOV | ( | EcalDBConnection * | c | ) |
LMFRunIOV::LMFRunIOV | ( | const LMFRunIOV & | r | ) |
LMFRunIOV::~LMFRunIOV | ( | ) |
Definition at line 49 of file LMFRunIOV.cc.
|
private |
Definition at line 87 of file LMFRunIOV.cc.
References _fabric, IDBObject::m_conn, IDBObject::m_env, and NULL.
Referenced by operator!=(), operator=(), setColor(), setColorIndex(), and setTriggerType().
|
virtual |
Reimplemented from LMFUnique.
Definition at line 212 of file LMFRunIOV.cc.
References _fabric, gather_cfg::cout, LMFDefFabric::dump(), LMFUnique::dump(), and LMFUnique::m_debug.
Referenced by getColor().
Definition at line 377 of file LMFRunIOV.cc.
References LMFUnique::getID(), and metProducer_cfi::parameters.
Referenced by fetchBySequence(), fetchLastBeforeSequence(), EcalCondDBInterface::fetchLMFRunIOV(), getColor(), and operator!=().
Definition at line 386 of file LMFRunIOV.cc.
References fetchBySequence(), LMFUnique::getID(), and metProducer_cfi::parameters.
std::list< LMFRunIOV > LMFRunIOV::fetchBySequence | ( | const LMFSeqDat & | s, |
int | lmr, | ||
int | type, | ||
int | color | ||
) |
Definition at line 397 of file LMFRunIOV.cc.
References fetchBySequence(), LMFUnique::getID(), and metProducer_cfi::parameters.
|
privatenoexcept |
Definition at line 348 of file LMFRunIOV.cc.
References IDBObject::checkConnection(), MillePedeFileConverter_cfg::e, mps_fire::i, checklumidiff::l, LMFUnique::m_className, IDBObject::m_conn, IDBObject::m_env, AlcaSiPixelAliHarvester0T_cff::method, LMFUnique::setByID(), and IDBObject::setConnection().
|
virtual |
Reimplemented from LMFUnique.
Definition at line 220 of file LMFRunIOV.cc.
References LMFUnique::m_intFields, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by operator!=().
std::list< LMFRunIOV > LMFRunIOV::fetchLastBeforeSequence | ( | const LMFSeqDat & | s, |
int | lmr, | ||
int | type, | ||
int | color | ||
) |
Definition at line 412 of file LMFRunIOV.cc.
References fetchBySequence(), LMFUnique::getID(), and metProducer_cfi::parameters.
Referenced by EcalCondDBInterface::fetchLMFRunIOV(), and getColor().
|
inline |
Definition at line 56 of file LMFRunIOV.h.
References create_public_lumi_plots::color, dump(), fetchBySequence(), fetchLastBeforeSequence(), getDBInsertionTime(), getLMFColor(), getSubRunEnd(), getSubRunStart(), isValid(), operator=(), alignCSCRings::r, and alignCSCRings::s.
std::string LMFRunIOV::getColorLongName | ( | ) | const |
Definition at line 119 of file LMFRunIOV.cc.
References getLMFColor(), and LMFColor::getLongName().
std::string LMFRunIOV::getColorShortName | ( | ) | const |
Definition at line 114 of file LMFRunIOV.cc.
References getLMFColor(), and LMFColor::getShortName().
Tm LMFRunIOV::getDBInsertionTime | ( | ) | const |
Definition at line 181 of file LMFRunIOV.cc.
References LMFUnique::getString(), Tm::setToString(), and lumiQTWidget::t.
Referenced by getColor().
LMFColor LMFRunIOV::getLMFColor | ( | ) | const |
Definition at line 107 of file LMFRunIOV.cc.
References LMFUnique::getInt(), IDBObject::m_conn, IDBObject::m_env, and LMFUnique::setByID().
Referenced by getColor(), getColorLongName(), getColorShortName(), isValid(), and operator==().
LMFRunTag LMFRunIOV::getLMFRunTag | ( | ) | const |
Definition at line 68 of file LMFRunIOV.cc.
References LMFUnique::getInt(), IDBObject::m_conn, IDBObject::m_env, and LMFUnique::setByID().
Referenced by isValid(), and operator==().
int LMFRunIOV::getLmr | ( | ) | const |
Definition at line 154 of file LMFRunIOV.cc.
References LMFUnique::getInt().
Referenced by isValid(), and operator==().
|
virtualnoexcept |
Reimplemented from LMFUnique.
Definition at line 251 of file LMFRunIOV.cc.
References DateHandler::dateToTm(), util.getRunInfo::day(), cuy::dh, IDBObject::m_conn, IDBObject::m_env, LMFUnique::m_foreignKeys, edm::second(), setColor(), IDBObject::setConnection(), LMFUnique::setInt(), setLMFRunTag(), LMFUnique::setString(), setTriggerType(), Tm::str(), AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::tt, and create_public_lumi_plots::year.
Referenced by operator!=().
LMFSeqDat LMFRunIOV::getSequence | ( | ) | const |
Definition at line 205 of file LMFRunIOV.cc.
References LMFUnique::getInt(), IDBObject::m_conn, IDBObject::m_env, and LMFUnique::setByID().
Referenced by isValid(), and operator==().
Tm LMFRunIOV::getSubRunEnd | ( | ) | const |
Definition at line 174 of file LMFRunIOV.cc.
References LMFUnique::getString(), Tm::setToString(), and lumiQTWidget::t.
Referenced by getColor(), operator==(), and writeDBSql().
Tm LMFRunIOV::getSubRunStart | ( | ) | const |
Definition at line 163 of file LMFRunIOV.cc.
References LMFUnique::getString(), Tm::setToString(), and lumiQTWidget::t.
Referenced by getColor(), LMFDat::getSubrunStart(), operator==(), and writeDBSql().
std::string LMFRunIOV::getSubRunType | ( | ) | const |
Definition at line 192 of file LMFRunIOV.cc.
References LMFUnique::getString().
Referenced by operator==(), and writeDBSql().
LMFTrigType LMFRunIOV::getTriggerType | ( | void | ) | const |
Definition at line 142 of file LMFRunIOV.cc.
References LMFUnique::getInt(), IDBObject::m_conn, IDBObject::m_env, and LMFUnique::setByID().
Referenced by isValid(), and operator==().
|
private |
Definition at line 10 of file LMFRunIOV.cc.
References NULL, Tm::setToCurrentGMTime(), and Tm::str().
Referenced by LMFRunIOV(), and operator!=().
|
virtual |
Reimplemented from LMFUnique.
Definition at line 303 of file LMFRunIOV.cc.
References getLMFColor(), getLMFRunTag(), getLmr(), getSequence(), and getTriggerType().
Referenced by ntupleDataFormat._Object::_checkIsValid(), getColor(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
Definition at line 84 of file LMFRunIOV.h.
References checkFabric(), fetchBySequence(), fetchIdSql(), getParameters(), initialize(), funct::m, AlcaSiPixelAliHarvester0T_cff::method, noexcept, setByIDSql(), EcalDBConnection::stmt, AlCaHLTBitMon_QueryRunRegistry::string, and writeDBSql().
Definition at line 430 of file LMFRunIOV.cc.
References _fabric, checkFabric(), gather_cfg::cout, LMFDefFabric::debug(), LMFUnique::m_debug, and NULL.
Referenced by getColor().
|
inline |
Definition at line 72 of file LMFRunIOV.h.
References getLMFColor(), getLMFRunTag(), getLmr(), getSequence(), getSubRunEnd(), getSubRunStart(), getSubRunType(), and getTriggerType().
|
virtual |
Reimplemented from LMFUnique.
Definition at line 239 of file LMFRunIOV.cc.
References cuy::dh, IDBObject::m_conn, IDBObject::m_env, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by operator!=().
Definition at line 75 of file LMFRunIOV.cc.
References LMFUnique::getID(), and LMFUnique::setInt().
Referenced by getParameters().
LMFRunIOV & LMFRunIOV::setColor | ( | std::string | name | ) |
Definition at line 100 of file LMFRunIOV.cc.
References _fabric, checkFabric(), LMFDefFabric::getColorID(), and LMFUnique::setInt().
LMFRunIOV & LMFRunIOV::setColor | ( | int | color_id | ) |
LMFRunIOV & LMFRunIOV::setColorIndex | ( | int | color_index | ) |
Definition at line 93 of file LMFRunIOV.cc.
References _fabric, checkFabric(), LMFDefFabric::getColorID(), and LMFUnique::setInt().
Definition at line 56 of file LMFRunIOV.cc.
References LMFUnique::getID(), and LMFUnique::setInt().
Referenced by getParameters().
LMFRunIOV & LMFRunIOV::setLMFRunTag | ( | int | tag_id | ) |
LMFRunIOV & LMFRunIOV::setLmr | ( | int | n | ) |
Definition at line 196 of file LMFRunIOV.cc.
References LMFUnique::attach(), LMFUnique::getID(), and LMFUnique::setInt().
Definition at line 169 of file LMFRunIOV.cc.
References LMFUnique::setString(), and Tm::str().
Definition at line 158 of file LMFRunIOV.cc.
References LMFUnique::setString(), and Tm::str().
LMFRunIOV & LMFRunIOV::setSubRunType | ( | const std::string & | x | ) |
Definition at line 187 of file LMFRunIOV.cc.
References LMFUnique::setString().
LMFRunIOV & LMFRunIOV::setTriggerType | ( | LMFTrigType & | tt | ) |
Definition at line 124 of file LMFRunIOV.cc.
References LMFUnique::getID(), and LMFUnique::setInt().
Referenced by getParameters().
LMFRunIOV & LMFRunIOV::setTriggerType | ( | int | trigType_id | ) |
LMFRunIOV & LMFRunIOV::setTriggerType | ( | std::string | trigShortName | ) |
Definition at line 130 of file LMFRunIOV.cc.
References _fabric, checkFabric(), LMFDefFabric::getTrigTypeID(), and LMFUnique::setInt().
|
virtual |
Reimplemented from LMFUnique.
Definition at line 324 of file LMFRunIOV.cc.
References symbols::dm, LMFUnique::getInt(), getSubRunEnd(), getSubRunStart(), getSubRunType(), IDBObject::m_conn, IDBObject::m_env, LMFUnique::sequencePostfix(), AlCaHLTBitMon_QueryRunRegistry::string, DateHandler::tmToDate(), and groupFilesInBlocks::tt.
Referenced by operator!=().
|
friend |
Definition at line 21 of file LMFRunIOV.h.
|
private |
Definition at line 99 of file LMFRunIOV.h.
Referenced by checkFabric(), dump(), operator=(), setColor(), setColorIndex(), setTriggerType(), and ~LMFRunIOV().