#include <RunDCSMagnetDat.h>
Definition at line 15 of file RunDCSMagnetDat.h.
RunDCSMagnetDat::RunDCSMagnetDat |
( |
| ) |
|
Definition at line 15 of file RunDCSMagnetDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunDCSMagnetDat::~RunDCSMagnetDat |
( |
| ) |
|
|
override |
Definition at line 35 of file RunDCSMagnetDat.cc.
References gather_cfg::cout.
36 std::cout <<
"going to call fetchLastData" << std::endl;
38 std::cout <<
"returned from fetchLastData" << std::endl;
void fetchLastData(std::map< EcalLogicID, RunDCSMagnetDat > *fillMap) noexcept(false)
Definition at line 64 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, dat, DateHandler::dateToTm(), cuy::dh, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, setMagnetCurrent(), setTime(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::impl::to_string().
67 std::pair<EcalLogicID, RunDCSMagnetDat>
p;
72 while (rset->next()) {
80 std::cout <<
"done the logic id" << std::endl;
82 std::cout <<
"done the magnet current" << std::endl;
84 Date sinceDate = rset->getDate(8);
85 std::cout <<
"done the date" << std::endl;
87 Tm sinceTm =
dh.dateToTm(sinceDate);
93 }
catch (SQLException&
e) {
94 #if defined(_GLIBCXX_USE_CXX11_ABI) && (_GLIBCXX_USE_CXX11_ABI == 0)
95 throw(std::runtime_error(
std::string(
"RunDCSMagnetDat::fetchData(): ") + e.getMessage()));
97 throw(std::runtime_error(
std::string(
"RunDCSMagnetDat::fetchData(): error code ") +
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
std::string to_string(const V &value)
void setMagnetCurrent(float t)
static std::vector< std::string > checklist dat
void setTime(const Tm &start)
std::string RunDCSMagnetDat::getMagnetAccount |
( |
| ) |
|
|
inline |
float RunDCSMagnetDat::getMagnetCurrent |
( |
| ) |
const |
|
inline |
ResultSet * RunDCSMagnetDat::getMagnetRset |
( |
| ) |
|
|
private |
Definition at line 41 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, cuy::dh, alignCSCRings::e, contentValuesFiles::query, AlCaHLTBitMon_QueryRunRegistry::string, and cond::impl::to_string().
45 string query =
"SELECT c.name, c.logic_id, c.id1, c.id2, c.id3, c.maps_to , v.value_number, v.change_date from " +
47 ".CMSFWMAGNET_LV v, channelview c where v.dpe_name= 'CURRENT' and c.name=maps_to and c.name='EB' ";
49 std::cout <<
"query:" << query << std::endl;
53 }
catch (SQLException&
e) {
54 #if defined(_GLIBCXX_USE_CXX11_ABI) && (_GLIBCXX_USE_CXX11_ABI == 0)
55 throw(std::runtime_error(
std::string(
"RunDCSMagnetDat::getBarrelRset(): ") + e.getMessage() +
" " +
query));
57 throw(std::runtime_error(
std::string(
"RunDCSMagnetDat::getBarrelRset(): error code ") +
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
std::string getMagnetAccount()
std::string to_string(const V &value)
oracle::occi::ResultSet ResultSet
oracle::occi::Statement * m_readStmt
std::string RunDCSMagnetDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
Tm RunDCSMagnetDat::getTime |
( |
void |
| ) |
const |
int RunDCSMagnetDat::nowMicroseconds |
( |
| ) |
|
|
private |
void RunDCSMagnetDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void RunDCSMagnetDat::setMagnetCurrent |
( |
float |
t | ) |
|
|
inline |
void RunDCSMagnetDat::setTime |
( |
const Tm & |
start | ) |
|
float RunDCSMagnetDat::m_current |
|
private |
Tm RunDCSMagnetDat::m_time |
|
private |