#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 145 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, edm::pset::fillMap(), and L1TEmulatorMonitor_cff::p.
150 std::cout<<
"fetchLastData>>1"<<std::endl;
154 std::cout<<
"fetchLastData>>2"<<std::endl;
158 std::pair< EcalLogicID, RunDCSMagnetDat >
p;
160 std::cout<<
"fetchLastData>>3"<<std::endl;
164 std::cout<<
"fetchLastData>>4"<<std::endl;
167 std::cout<<
"fetchLastData>>5"<<std::endl;
172 throw(std::runtime_error(
"RunDCSMagnetDat::fetchData(): "+e.getMessage()));
oracle::occi::SQLException SQLException
void fillTheMap(ResultSet *, std::map< EcalLogicID, RunDCSMagnetDat > *)
oracle::occi::ResultSet ResultSet
ResultSet * getMagnetRset()
void fillMap(Registry *reg, regmap_type &fillme)
void checkConnection() const
Definition at line 95 of file RunDCSMagnetDat.cc.
References gather_cfg::cout, DateHandler::dateToTm(), L1TEmulatorMonitor_cff::p, setMagnetCurrent(), and setTime().
100 std::pair< EcalLogicID, RunDCSMagnetDat >
p;
105 while(rset->next()) {
113 std::cout<<
"done the logic id"<<std::endl;
115 std::cout<<
"done the magnet current"<<std::endl;
117 Date sinceDate = rset->getDate(8);
120 Tm sinceTm = dh.dateToTm( sinceDate );
128 throw(std::runtime_error(
"RunDCSMagnetDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void setMagnetCurrent(float t)
void fillMap(Registry *reg, regmap_type &fillme)
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, 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 throw(std::runtime_error(
"RunDCSMagnetDat::getBarrelRset(): " + e.getMessage() +
" " +
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 |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
void RunDCSMagnetDat::setMagnetCurrent |
( |
float |
t | ) |
|
|
inline |
void RunDCSMagnetDat::setTime |
( |
Tm |
start | ) |
|
float RunDCSMagnetDat::m_current |
|
private |
Tm RunDCSMagnetDat::m_time |
|
private |