#include <RunDCSMagnetDat.h>
Public Types | |
typedef oracle::occi::ResultSet | ResultSet |
Public Member Functions | |
std::string | getMagnetAccount () |
float | getMagnetCurrent () const |
std::string | getTable () override |
Tm | getTime () const |
RunDCSMagnetDat () | |
void | setMagnetCurrent (float t) |
void | setTime (const Tm &start) |
~RunDCSMagnetDat () override | |
Public Member Functions inherited from IDataItem | |
IDataItem () | |
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 | fetchData (std::map< EcalLogicID, RunDCSMagnetDat > *fillMap, RunIOV *iov) noexcept(false) |
void | fetchLastData (std::map< EcalLogicID, RunDCSMagnetDat > *fillMap) noexcept(false) |
void | fillTheMap (ResultSet *, std::map< EcalLogicID, RunDCSMagnetDat > *) |
ResultSet * | getMagnetRset () |
int | nowMicroseconds () |
void | prepareWrite () noexcept(false) override |
void | writeDB (const EcalLogicID *ecid, const RunDCSMagnetDat *item, RunIOV *iov) noexcept(false) |
Private Attributes | |
float | m_current |
Tm | m_time |
Friends | |
class | EcalCondDBInterface |
Additional Inherited Members | |
Static Public Attributes inherited from IDBObject | |
static int const | ECALDB_NROWS =1024 |
Protected Member Functions inherited from IDataItem | |
void | checkPrepare () noexcept(false) |
void | createReadStatement () noexcept(false) |
void | setPrefetchRowCount (int ncount) noexcept(false) |
void | terminateReadStatement () noexcept(false) |
void | terminateWriteStatement () noexcept(false) |
Protected Member Functions inherited from IDBObject | |
void | checkConnection () const noexcept(false) |
Protected Attributes inherited from IDataItem | |
oracle::occi::Statement * | m_readStmt |
oracle::occi::Statement * | m_writeStmt |
Protected Attributes inherited from IDBObject | |
oracle::occi::Connection * | m_conn |
oracle::occi::Environment * | m_env |
Definition at line 15 of file RunDCSMagnetDat.h.
typedef oracle::occi::ResultSet RunDCSMagnetDat::ResultSet |
Definition at line 17 of file RunDCSMagnetDat.h.
RunDCSMagnetDat::RunDCSMagnetDat | ( | ) |
Definition at line 15 of file RunDCSMagnetDat.cc.
|
override |
Definition at line 28 of file RunDCSMagnetDat.cc.
|
privatenoexcept |
Definition at line 62 of file RunDCSMagnetDat.cc.
References gather_cfg::cout.
Referenced by getMagnetCurrent().
|
privatenoexcept |
Definition at line 153 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getMagnetCurrent().
|
private |
Definition at line 99 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setMagnetCurrent(), setTime(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getMagnetCurrent().
|
inline |
Definition at line 25 of file RunDCSMagnetDat.h.
|
inline |
Definition at line 27 of file RunDCSMagnetDat.h.
References fetchData(), fetchLastData(), fillTheMap(), getMagnetRset(), getTime(), m_current, noexcept, nowMicroseconds(), prepareWrite(), setTime(), and writeDB().
Referenced by popcon::EcalADCToGeVHandler::getNewObjects().
|
private |
Definition at line 73 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, cuy::dh, MillePedeFileConverter_cfg::e, das::query(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getMagnetCurrent().
|
inlineoverridevirtual |
Implements IDataItem.
Definition at line 24 of file RunDCSMagnetDat.h.
Tm RunDCSMagnetDat::getTime | ( | void | ) | const |
Definition at line 37 of file RunDCSMagnetDat.cc.
Referenced by getMagnetCurrent().
|
private |
Definition at line 143 of file RunDCSMagnetDat.cc.
References Tm::microsTime(), and Tm::setToCurrentGMTime().
Referenced by getMagnetCurrent().
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 46 of file RunDCSMagnetDat.cc.
Referenced by getMagnetCurrent().
|
inline |
Definition at line 26 of file RunDCSMagnetDat.h.
References m_current, and protons_cff::t.
Referenced by fillTheMap().
void RunDCSMagnetDat::setTime | ( | const Tm & | start | ) |
Definition at line 32 of file RunDCSMagnetDat.cc.
References command_line::start.
Referenced by fillTheMap(), and getMagnetCurrent().
|
privatenoexcept |
|
friend |
Definition at line 19 of file RunDCSMagnetDat.h.
|
private |
Definition at line 53 of file RunDCSMagnetDat.h.
Referenced by getMagnetCurrent(), and setMagnetCurrent().
|
private |
Definition at line 54 of file RunDCSMagnetDat.h.