|
|
#include <ODEcalCycle.h>
Definition at line 9 of file ODEcalCycle.h.
◆ ODEcalCycle()
ODEcalCycle::ODEcalCycle |
( |
| ) |
|
◆ ~ODEcalCycle()
ODEcalCycle::~ODEcalCycle |
( |
| ) |
|
|
override |
◆ clear()
void ODEcalCycle::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 281 of file ODEcalCycle.cc.
284 if (result->
getId() == 0) {
291 "SELECT tag, version, sequence_num, cycle_num, cycle_tag, description, "
292 "ccs_configuration_id, dcc_configuration_id, laser_configuration_id, "
293 "ltc_configuration_id, lts_configuration_id, tcc_configuration_id, "
294 "\"TTCci_CONFIGURATION_ID\", jbh4_configuration_id, scan_id, TTCF_configuration_id, "
295 "srp_configuration_id, dcu_configuration_id, tcc_ee_configuration_id "
296 "FROM ECAL_CYCLE where cycle_id = :1 ");
302 result->setTag(rset->getString(1));
303 result->setVersion(rset->getInt(2));
304 result->setSeqNum(rset->getInt(3));
305 result->setCycleNum(rset->getInt(4));
306 result->setCycleTag(rset->getString(5));
307 result->setCycleDescription(rset->getString(6));
308 result->setCCSId(rset->getInt(7));
309 result->setDCCId(rset->getInt(8));
310 result->setLaserId(rset->getInt(9));
311 result->setLTCId(rset->getInt(10));
312 result->setLTSId(rset->getInt(11));
313 result->setTCCId(rset->getInt(12));
314 result->setTTCCIId(rset->getInt(13));
316 result->setJBH4Id(rset->getInt(14));
317 result->setScanId(rset->getInt(15));
319 result->setTTCFId(rset->getInt(16));
320 result->setSRPId(rset->getInt(17));
321 result->setDCUId(rset->getInt(18));
322 result->setTCCEEId(rset->getInt(19));
325 throw(std::runtime_error(
"ODEcalCycle::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and mps_fire::result.
◆ fetchID()
int ODEcalCycle::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 183 of file ODEcalCycle.cc.
196 "SELECT cycle_id from ECAL_CYCLE_DAT "
197 "WHERE sequence_id = :1 ");
200 ResultSet* rset = stmt->executeQuery();
203 m_ID = rset->getInt(1);
207 m_conn->terminateStatement(stmt);
209 throw(std::runtime_error(
"ODEcalCycle::fetchID: " +
e.getMessage()));
References cuy::dh, and MillePedeFileConverter_cfg::e.
◆ getCCSId()
int ODEcalCycle::getCCSId |
( |
| ) |
const |
|
inline |
◆ getCycleDescription()
std::string ODEcalCycle::getCycleDescription |
( |
| ) |
const |
|
inline |
◆ getCycleNum()
int ODEcalCycle::getCycleNum |
( |
| ) |
const |
|
inline |
◆ getCycleTag()
std::string ODEcalCycle::getCycleTag |
( |
| ) |
const |
|
inline |
◆ getDCCId()
int ODEcalCycle::getDCCId |
( |
| ) |
const |
|
inline |
◆ getDCUId()
int ODEcalCycle::getDCUId |
( |
| ) |
const |
|
inline |
◆ getId()
int ODEcalCycle::getId |
( |
void |
| ) |
const |
|
inline |
◆ getJBH4Id()
int ODEcalCycle::getJBH4Id |
( |
| ) |
const |
|
inline |
◆ getLaserId()
int ODEcalCycle::getLaserId |
( |
| ) |
const |
|
inline |
◆ getLTCId()
int ODEcalCycle::getLTCId |
( |
| ) |
const |
|
inline |
◆ getLTSId()
int ODEcalCycle::getLTSId |
( |
| ) |
const |
|
inline |
◆ getMataqId()
int ODEcalCycle::getMataqId |
( |
| ) |
const |
|
inline |
◆ getScanId()
int ODEcalCycle::getScanId |
( |
| ) |
const |
|
inline |
◆ getSeqNum()
int ODEcalCycle::getSeqNum |
( |
| ) |
const |
|
inline |
◆ getSequenceId()
int ODEcalCycle::getSequenceId |
( |
| ) |
const |
|
inline |
◆ getSRPId()
int ODEcalCycle::getSRPId |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODEcalCycle::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTag()
std::string ODEcalCycle::getTag |
( |
| ) |
const |
|
inline |
◆ getTCCEEId()
int ODEcalCycle::getTCCEEId |
( |
| ) |
const |
|
inline |
◆ getTCCId()
int ODEcalCycle::getTCCId |
( |
| ) |
const |
|
inline |
◆ getTTCCIId()
int ODEcalCycle::getTTCCIId |
( |
| ) |
const |
|
inline |
◆ getTTCFId()
int ODEcalCycle::getTTCFId |
( |
| ) |
const |
|
inline |
◆ getVersion()
int ODEcalCycle::getVersion |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODEcalCycle::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ printout()
void ODEcalCycle::printout |
( |
| ) |
|
◆ setByID()
void ODEcalCycle::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 215 of file ODEcalCycle.cc.
224 "SELECT tag, version, sequence_num, cycle_num, cycle_tag, description, "
225 "ccs_configuration_id, dcc_configuration_id, laser_configuration_id, "
226 "ltc_configuration_id, lts_configuration_id, tcc_configuration_id, "
227 "\"TTCci_CONFIGURATION_ID\", jbh4_configuration_id, scan_id, TTCF_configuration_id, "
228 "srp_configuration_id, dcu_configuration_id, tcc_ee_configuration_id "
229 "FROM ECAL_CYCLE where cycle_id = :1 ");
232 ResultSet* rset = stmt->executeQuery();
234 m_tag = rset->getString(1);
240 m_ccs = rset->getInt(7);
241 m_dcc = rset->getInt(8);
243 m_ltc = rset->getInt(10);
244 m_lts = rset->getInt(11);
245 m_tcc = rset->getInt(12);
247 m_jbh4 = rset->getInt(14);
248 m_scan = rset->getInt(15);
249 m_ttcf = rset->getInt(16);
250 m_srp = rset->getInt(17);
251 m_dcu = rset->getInt(18);
255 throw(std::runtime_error(
"ODEcalCycle::setByID: Given config_id is not in the database"));
257 m_conn->terminateStatement(stmt);
259 throw(std::runtime_error(
"ODEcalCycle::setByID: " +
e.getMessage()));
References cuy::dh, and MillePedeFileConverter_cfg::e.
◆ setCCSId()
void ODEcalCycle::setCCSId |
( |
int |
x | ) |
|
|
inline |
◆ setCycleDescription()
void ODEcalCycle::setCycleDescription |
( |
std::string |
x | ) |
|
|
inline |
◆ setCycleNum()
void ODEcalCycle::setCycleNum |
( |
int |
x | ) |
|
|
inline |
◆ setCycleTag()
void ODEcalCycle::setCycleTag |
( |
std::string |
x | ) |
|
|
inline |
◆ setDCCId()
void ODEcalCycle::setDCCId |
( |
int |
x | ) |
|
|
inline |
◆ setDCUId()
void ODEcalCycle::setDCUId |
( |
int |
x | ) |
|
|
inline |
◆ setId()
void ODEcalCycle::setId |
( |
int |
id | ) |
|
|
inline |
◆ setJBH4Id()
void ODEcalCycle::setJBH4Id |
( |
int |
x | ) |
|
|
inline |
◆ setLaserId()
void ODEcalCycle::setLaserId |
( |
int |
x | ) |
|
|
inline |
◆ setLTCId()
void ODEcalCycle::setLTCId |
( |
int |
x | ) |
|
|
inline |
◆ setLTSId()
void ODEcalCycle::setLTSId |
( |
int |
x | ) |
|
|
inline |
◆ setMataqId()
void ODEcalCycle::setMataqId |
( |
int |
x | ) |
|
|
inline |
◆ setScanId()
void ODEcalCycle::setScanId |
( |
int |
x | ) |
|
|
inline |
◆ setSeqNum()
void ODEcalCycle::setSeqNum |
( |
int |
x | ) |
|
|
inline |
◆ setSequenceId()
void ODEcalCycle::setSequenceId |
( |
int |
x | ) |
|
|
inline |
◆ setSRPId()
void ODEcalCycle::setSRPId |
( |
int |
x | ) |
|
|
inline |
◆ setTag()
void ODEcalCycle::setTag |
( |
std::string |
x | ) |
|
|
inline |
◆ setTCCEEId()
void ODEcalCycle::setTCCEEId |
( |
int |
x | ) |
|
|
inline |
◆ setTCCId()
void ODEcalCycle::setTCCId |
( |
int |
x | ) |
|
|
inline |
◆ setTTCCIId()
void ODEcalCycle::setTTCCIId |
( |
int |
x | ) |
|
|
inline |
◆ setTTCFId()
void ODEcalCycle::setTTCFId |
( |
int |
x | ) |
|
|
inline |
◆ setVersion()
void ODEcalCycle::setVersion |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
void ODEcalCycle::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 41 of file ODEcalCycle.cc.
50 int cyc_id = cyc.
getId();
51 cout <<
"Cycle inserted with ID " << cyc_id << endl;
56 ccs_cycle.
setId(cyc_id);
60 cout <<
"Inserting CCS-cycle in DB..." << flush;
64 dcc_cycle.
setId(cyc_id);
68 cout <<
"Inserting DCC-cycle in DB..." << flush;
72 laser_cycle.
setId(cyc_id);
76 cout <<
"Inserting LASER-cycle in DB..." << flush;
80 ltc_cycle.
setId(cyc_id);
84 cout <<
"Inserting LTC-cycle in DB..." << flush;
88 lts_cycle.
setId(cyc_id);
92 cout <<
"Inserting LTS-cycle in DB..." << flush;
96 dcu_cycle.
setId(cyc_id);
100 cout <<
"Inserting DCU-cycle in DB..." << flush;
104 tcc_cycle.
setId(cyc_id);
108 cout <<
"Inserting TCC-cycle in DB..." << flush;
112 tcc_ee_cycle.
setId(cyc_id);
116 cout <<
"Inserting TCCEE-cycle in DB..." << flush;
120 ttcci_cycle.
setId(cyc_id);
124 cout <<
"Inserting TTCCI-cycle in DB..." << flush;
128 ttcf_cycle.
setId(cyc_id);
132 cout <<
"Inserting TTCF-cycle in DB..." << flush;
136 srp_cycle.
setId(cyc_id);
140 cout <<
"Inserting SRP-cycle in DB..." << flush;
144 jbh4_cycle.
setId(cyc_id);
148 cout <<
"Inserting JBH4-cycle in DB..." << flush;
152 scan_cycle.
setId(cyc_id);
156 cout <<
"Inserting SCAN-cycle in DB..." << flush;
References gather_cfg::cout, ODRunConfigCycleInfo::getId(), ODLaserCycle::insertConfig(), ODTCCEECycle::insertConfig(), ODTTCciCycle::insertConfig(), ODTTCFCycle::insertConfig(), ODLTCCycle::insertConfig(), ODSRPCycle::insertConfig(), ODLTSCycle::insertConfig(), ODJBH4Cycle::insertConfig(), ODScanCycle::insertConfig(), ODDCCCycle::insertConfig(), ODDCUCycle::insertConfig(), ODTCCCycle::insertConfig(), ODCCSCycle::insertConfig(), ODRunConfigCycleInfo::insertConfig(), ODCCSCycle::setCCSConfigurationID(), IDBObject::setConnection(), ODRunConfigCycleInfo::setCycleNumber(), ODDCCCycle::setDCCConfigurationID(), ODDCUCycle::setDCUConfigurationID(), ODRunConfigCycleInfo::setDescription(), ODTCCEECycle::setId(), ODTTCciCycle::setId(), ODScanCycle::setId(), ODLTCCycle::setId(), ODCCSCycle::setId(), ODSRPCycle::setId(), ODLTSCycle::setId(), ODJBH4Cycle::setId(), ODDCUCycle::setId(), ODDCCCycle::setId(), ODTCCCycle::setId(), ODTTCFCycle::setId(), ODLaserCycle::setId(), ODJBH4Cycle::setJBH4ConfigurationID(), ODLaserCycle::setLaserConfigurationID(), ODLTCCycle::setLTCConfigurationID(), ODLTSCycle::setLTSConfigurationID(), ODScanCycle::setScanConfigurationID(), ODRunConfigCycleInfo::setSequenceID(), ODSRPCycle::setSRPConfigurationID(), ODRunConfigCycleInfo::setTag(), ODTCCEECycle::setTCCConfigurationID(), ODTCCCycle::setTCCConfigurationID(), ODTTCciCycle::setTTCciConfigurationID(), and ODTTCFCycle::setTTCFConfigurationID().
◆ EcalCondDBInterface
◆ m_ccs
◆ m_cycle_description
std::string ODEcalCycle::m_cycle_description |
|
private |
◆ m_cycle_num
int ODEcalCycle::m_cycle_num |
|
private |
◆ m_cycle_tag
std::string ODEcalCycle::m_cycle_tag |
|
private |
◆ m_dcc
◆ m_dcu
◆ m_ID
◆ m_jbh4
◆ m_laser
◆ m_ltc
◆ m_lts
◆ m_mataq
◆ m_scan
◆ m_seq_id
int ODEcalCycle::m_seq_id |
|
private |
◆ m_seq_num
int ODEcalCycle::m_seq_num |
|
private |
◆ m_srp
◆ m_tag
std::string ODEcalCycle::m_tag |
|
private |
◆ m_tcc
◆ m_tcc_ee
int ODEcalCycle::m_tcc_ee |
|
private |
◆ m_ttcci
◆ m_ttcf
◆ m_version
int ODEcalCycle::m_version |
|
private |
void insertConfig() noexcept(false)
void setLaserConfigurationID(int x)
void setScanConfigurationID(int x)
void setTCCConfigurationID(int x)
std::string getCycleDescription() const
oracle::occi::Statement Statement
void insertConfig() noexcept(false)
void insertConfig() noexcept(false)
void insertConfig() noexcept(false)
void setTCCConfigurationID(int x)
oracle::occi::SQLException SQLException
void setByID(int id) noexcept(false)
void setDCUConfigurationID(int x)
void setCCSConfigurationID(int x)
void insertConfig() noexcept(false)
void setSRPConfigurationID(int x)
void setTTCFConfigurationID(int x)
void insertConfig() noexcept(false)
std::string getCycleTag() const
oracle::occi::Connection * m_conn
void setLTSConfigurationID(int x)
void insertConfig() noexcept(false)
void insertConfig() noexcept(false)
void setCycleNumber(int n)
void setTTCciConfigurationID(int x)
void insertConfig() noexcept(false)
void checkConnection() const noexcept(false)
void setLTCConfigurationID(int x)
void insertConfig() noexcept(false)
void insertConfig() noexcept(false)
void insertConfig() noexcept(false)
void insertConfig() noexcept(false)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void setDescription(std::string x)
std::string m_cycle_description
void setSequenceID(int x)
void setJBH4ConfigurationID(int x)
oracle::occi::Environment * m_env
int getSequenceId() const
void setDCCConfigurationID(int x)
void insertConfig() noexcept(false)
void setTag(std::string x)