#include <RunDCSMagnetDat.h>
Definition at line 15 of file RunDCSMagnetDat.h.
RunDCSMagnetDat::RunDCSMagnetDat |
( |
| ) |
|
Definition at line 15 of file RunDCSMagnetDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunDCSMagnetDat::~RunDCSMagnetDat |
( |
| ) |
|
Definition at line 62 of file RunDCSMagnetDat.cc.
References gather_cfg::cout.
66 std::cout<<
"going to call fetchLastData"<<std::endl;
68 std::cout<<
"returned from fetchLastData"<<std::endl;
void fetchLastData(std::map< EcalLogicID, RunDCSMagnetDat > *fillMap) noexcept(false)
Definition at line 153 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, alignCSCRings::e, and AlCaHLTBitMon_ParallelJobs::p.
158 std::cout<<
"fetchLastData>>1"<<std::endl;
162 std::cout<<
"fetchLastData>>2"<<std::endl;
166 std::pair< EcalLogicID, RunDCSMagnetDat >
p;
168 std::cout<<
"fetchLastData>>3"<<std::endl;
172 std::cout<<
"fetchLastData>>4"<<std::endl;
175 std::cout<<
"fetchLastData>>5"<<std::endl;
180 #if defined(_GLIBCXX_USE_CXX11_ABI) && (_GLIBCXX_USE_CXX11_ABI == 0)
181 throw(std::runtime_error(
"RunDCSMagnetDat::fetchData(): "+e.getMessage()));
183 throw(std::runtime_error(
"RunDCSMagnetDat::fetchData(): error code " + std::to_string(e.getErrorCode())));
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
void fillTheMap(ResultSet *, std::map< EcalLogicID, RunDCSMagnetDat > *)
oracle::occi::ResultSet ResultSet
ResultSet * getMagnetRset()
Definition at line 99 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, DateHandler::dateToTm(), cuy::dh, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, setMagnetCurrent(), and setTime().
104 std::pair< EcalLogicID, RunDCSMagnetDat >
p;
109 while(rset->next()) {
117 std::cout<<
"done the logic id"<<std::endl;
119 std::cout<<
"done the magnet current"<<std::endl;
121 Date sinceDate = rset->getDate(8);
124 Tm sinceTm =
dh.dateToTm( sinceDate );
132 #if defined(_GLIBCXX_USE_CXX11_ABI) && (_GLIBCXX_USE_CXX11_ABI == 0)
133 throw(std::runtime_error(
"RunDCSMagnetDat::fetchData(): "+e.getMessage()));
135 throw(std::runtime_error(
"RunDCSMagnetDat::fetchData(): error code " + std::to_string(e.getErrorCode())));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void setMagnetCurrent(float t)
void setTime(const Tm &start)
std::string RunDCSMagnetDat::getMagnetAccount |
( |
| ) |
|
|
inline |
float RunDCSMagnetDat::getMagnetCurrent |
( |
| ) |
const |
|
inline |
ResultSet * RunDCSMagnetDat::getMagnetRset |
( |
| ) |
|
|
private |
Definition at line 73 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, cuy::dh, alignCSCRings::e, NULL, and o2o::query.
78 string query=
"SELECT c.name, c.logic_id, c.id1, c.id2, c.id3, c.maps_to , v.value_number, v.change_date from "+
getMagnetAccount()+
79 ".CMSFWMAGNET_LV v, channelview c where v.dpe_name= 'CURRENT' and c.name=maps_to and c.name='EB' " ;
88 #if defined(_GLIBCXX_USE_CXX11_ABI) && (_GLIBCXX_USE_CXX11_ABI == 0)
89 throw(std::runtime_error(
"RunDCSMagnetDat::getBarrelRset(): " + e.getMessage() +
" " +
query));
91 throw(std::runtime_error(
"RunDCSMagnetDat::getBarrelRset(): error code " + std::to_string(e.getErrorCode()) +
" " + query));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
std::string getMagnetAccount()
oracle::occi::SQLException SQLException
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
std::string RunDCSMagnetDat::getTable |
( |
| ) |
|
|
inlinevirtual |
Tm RunDCSMagnetDat::getTime |
( |
void |
| ) |
const |
int RunDCSMagnetDat::nowMicroseconds |
( |
| ) |
|
|
private |
void RunDCSMagnetDat::prepareWrite |
( |
| ) |
|
|
privatevirtualnoexcept |
void RunDCSMagnetDat::setMagnetCurrent |
( |
float |
t | ) |
|
|
inline |
void RunDCSMagnetDat::setTime |
( |
const Tm & |
start | ) |
|
float RunDCSMagnetDat::m_current |
|
private |
Tm RunDCSMagnetDat::m_time |
|
private |