CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
ODEcalCycle Class Reference

#include <ODEcalCycle.h>

Inheritance diagram for ODEcalCycle:
IODConfig IDBObject

Public Member Functions

int getCCSId () const
 
std::string getCycleDescription () const
 
int getCycleNum () const
 
std::string getCycleTag () const
 
int getDCCId () const
 
int getDCUId () const
 
int getId () const
 
int getJBH4Id () const
 
int getLaserId () const
 
int getLTCId () const
 
int getLTSId () const
 
int getMataqId () const
 
int getScanId () const
 
int getSeqNum () const
 
int getSequenceId () const
 
int getSRPId () const
 
std::string getTable () override
 
std::string getTag () const
 
int getTCCEEId () const
 
int getTCCId () const
 
int getTTCCIId () const
 
int getTTCFId () const
 
int getVersion () const
 
 ODEcalCycle ()
 
void printout ()
 
void setCCSId (int x)
 
void setCycleDescription (std::string x)
 
void setCycleNum (int x)
 
void setCycleTag (std::string x)
 
void setDCCId (int x)
 
void setDCUId (int x)
 
void setId (int id)
 
void setJBH4Id (int x)
 
void setLaserId (int x)
 
void setLTCId (int x)
 
void setLTSId (int x)
 
void setMataqId (int x)
 
void setScanId (int x)
 
void setSeqNum (int x)
 
void setSequenceId (int x)
 
void setSRPId (int x)
 
void setTag (std::string x)
 
void setTCCEEId (int x)
 
void setTCCId (int x)
 
void setTTCCIId (int x)
 
void setTTCFId (int x)
 
void setVersion (int x)
 
 ~ODEcalCycle () override
 
- Public Member Functions inherited from IODConfig
std::string getConfigTag ()
 
void setConfigTag (std::string x)
 
- 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 clear ()
 
void fetchData (ODEcalCycle *result) noexcept(false)
 
int fetchID () noexcept(false)
 
void prepareWrite () noexcept(false) override
 
void setByID (int id) noexcept(false)
 
void writeDB () noexcept(false)
 

Private Attributes

int m_ccs
 
std::string m_cycle_description
 
int m_cycle_num
 
std::string m_cycle_tag
 
int m_dcc
 
int m_dcu
 
int m_ID
 
int m_jbh4
 
int m_laser
 
int m_ltc
 
int m_lts
 
int m_mataq
 
int m_scan
 
int m_seq_id
 
int m_seq_num
 
int m_srp
 
std::string m_tag
 
int m_tcc
 
int m_tcc_ee
 
int m_ttcci
 
int m_ttcf
 
int m_version
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Public Types inherited from IODConfig
typedef oracle::occi::Clob Clob
 
typedef oracle::occi::SQLException SQLException
 
typedef oracle::occi::Statement Statement
 
typedef oracle::occi::Stream Stream
 
- Public Attributes inherited from IODConfig
std::string m_config_tag
 
- Static Public Attributes inherited from IDBObject
static const int ECALDB_NROWS = 1024
 
- Protected Member Functions inherited from IODConfig
void checkPrepare () noexcept(false)
 
void createReadStatement () noexcept(false)
 
void populateClob (Clob &clob, std::string fname, unsigned int bufsize) noexcept(false)
 
unsigned char * readClob (Clob &clob, int size) 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 IODConfig
Statementm_readStmt
 
Statementm_writeStmt
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

Definition at line 9 of file ODEcalCycle.h.

Constructor & Destructor Documentation

◆ ODEcalCycle()

ODEcalCycle::ODEcalCycle ( )

Definition at line 25 of file ODEcalCycle.cc.

25  {
26  m_env = nullptr;
27  m_conn = nullptr;
28  m_writeStmt = nullptr;
29  m_readStmt = nullptr;
30 
31  m_ID = 0;
32  clear();
33 }

References clear().

◆ ~ODEcalCycle()

ODEcalCycle::~ODEcalCycle ( )
override

Definition at line 35 of file ODEcalCycle.cc.

35 {}

Member Function Documentation

◆ clear()

void ODEcalCycle::clear ( void  )
private

Definition at line 160 of file ODEcalCycle.cc.

160  {
161  m_tag = "";
162  m_version = 0;
163  m_seq_num = 0;
164  m_cycle_num = 0;
165  m_cycle_tag = "";
166  m_cycle_description = "";
167  m_ccs = 0;
168  m_dcc = 0;
169  m_laser = 0;
170  m_ltc = 0;
171  m_lts = 0;
172  m_dcu = 0;
173  m_tcc = 0;
174  m_tcc_ee = 0;
175  m_ttcci = 0;
176  m_jbh4 = 0;
177  m_scan = 0;
178  // m_seq_id=0;
179  m_ttcf = 0;
180  m_srp = 0;
181 }

◆ fetchData()

void ODEcalCycle::fetchData ( ODEcalCycle result)
privatenoexcept

Definition at line 281 of file ODEcalCycle.cc.

281  {
282  this->checkConnection();
283  // result->clear();
284  if (result->getId() == 0) {
285  // throw(std::runtime_error("ODEcalCycle::fetchData(): no Id defined for this ODEcalCycle "));
286  result->fetchID();
287  }
288 
289  try {
290  m_readStmt->setSQL(
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 ");
297  m_readStmt->setInt(1, result->getId());
298  ResultSet* rset = m_readStmt->executeQuery();
299 
300  rset->next();
301 
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));
315 
316  result->setJBH4Id(rset->getInt(14));
317  result->setScanId(rset->getInt(15));
318 
319  result->setTTCFId(rset->getInt(16));
320  result->setSRPId(rset->getInt(17));
321  result->setDCUId(rset->getInt(18));
322  result->setTCCEEId(rset->getInt(19));
323 
324  } catch (SQLException& e) {
325  throw(std::runtime_error("ODEcalCycle::fetchData(): " + e.getMessage()));
326  }
327 }

References MillePedeFileConverter_cfg::e, and mps_fire::result.

◆ fetchID()

int ODEcalCycle::fetchID ( )
privatenoexcept

Definition at line 183 of file ODEcalCycle.cc.

183  {
184  // Return from memory if available
185  if (m_ID > 0) {
186  return m_ID;
187  }
188 
189  this->checkConnection();
190 
192 
193  try {
194  Statement* stmt = m_conn->createStatement();
195  stmt->setSQL(
196  "SELECT cycle_id from ECAL_CYCLE_DAT "
197  "WHERE sequence_id = :1 ");
198  stmt->setInt(1, m_seq_id);
199 
200  ResultSet* rset = stmt->executeQuery();
201 
202  if (rset->next()) {
203  m_ID = rset->getInt(1);
204  } else {
205  m_ID = 0;
206  }
207  m_conn->terminateStatement(stmt);
208  } catch (SQLException& e) {
209  throw(std::runtime_error("ODEcalCycle::fetchID: " + e.getMessage()));
210  }
211  setByID(m_ID);
212  return m_ID;
213 }

References cuy::dh, and MillePedeFileConverter_cfg::e.

◆ getCCSId()

int ODEcalCycle::getCCSId ( ) const
inline

Definition at line 38 of file ODEcalCycle.h.

38 { return m_ccs; }

References m_ccs.

◆ getCycleDescription()

std::string ODEcalCycle::getCycleDescription ( ) const
inline

Definition at line 36 of file ODEcalCycle.h.

36 { return m_cycle_description; }

References m_cycle_description.

◆ getCycleNum()

int ODEcalCycle::getCycleNum ( ) const
inline

Definition at line 32 of file ODEcalCycle.h.

32 { return m_cycle_num; }

References m_cycle_num.

◆ getCycleTag()

std::string ODEcalCycle::getCycleTag ( ) const
inline

Definition at line 34 of file ODEcalCycle.h.

34 { return m_cycle_tag; }

References m_cycle_tag.

◆ getDCCId()

int ODEcalCycle::getDCCId ( ) const
inline

Definition at line 40 of file ODEcalCycle.h.

40 { return m_dcc; }

References m_dcc.

Referenced by popcon::EcalSRPHandler::getNewObjects().

◆ getDCUId()

int ODEcalCycle::getDCUId ( ) const
inline

Definition at line 48 of file ODEcalCycle.h.

48 { return m_dcu; }

References m_dcu.

◆ getId()

int ODEcalCycle::getId ( void  ) const
inline

Definition at line 20 of file ODEcalCycle.h.

20 { return m_ID; }

References m_ID.

Referenced by popcon::EcalSRPHandler::getNewObjects().

◆ getJBH4Id()

int ODEcalCycle::getJBH4Id ( ) const
inline

Definition at line 58 of file ODEcalCycle.h.

58 { return m_jbh4; }

References m_jbh4.

◆ getLaserId()

int ODEcalCycle::getLaserId ( ) const
inline

Definition at line 42 of file ODEcalCycle.h.

42 { return m_laser; }

References m_laser.

◆ getLTCId()

int ODEcalCycle::getLTCId ( ) const
inline

Definition at line 44 of file ODEcalCycle.h.

44 { return m_ltc; }

References m_ltc.

◆ getLTSId()

int ODEcalCycle::getLTSId ( ) const
inline

Definition at line 46 of file ODEcalCycle.h.

46 { return m_lts; }

References m_lts.

◆ getMataqId()

int ODEcalCycle::getMataqId ( ) const
inline

Definition at line 56 of file ODEcalCycle.h.

56 { return m_mataq; }

References m_mataq.

◆ getScanId()

int ODEcalCycle::getScanId ( ) const
inline

Definition at line 60 of file ODEcalCycle.h.

60 { return m_scan; }

References m_scan.

◆ getSeqNum()

int ODEcalCycle::getSeqNum ( ) const
inline

Definition at line 26 of file ODEcalCycle.h.

26 { return m_seq_num; }

References m_seq_num.

◆ getSequenceId()

int ODEcalCycle::getSequenceId ( ) const
inline

Definition at line 29 of file ODEcalCycle.h.

29 { return m_seq_id; }

References m_seq_id.

◆ getSRPId()

int ODEcalCycle::getSRPId ( ) const
inline

Definition at line 64 of file ODEcalCycle.h.

64 { return m_srp; }

References m_srp.

Referenced by popcon::EcalSRPHandler::getNewObjects().

◆ getTable()

std::string ODEcalCycle::getTable ( )
inlineoverridevirtual

Implements IODConfig.

Definition at line 17 of file ODEcalCycle.h.

17 { return "ECAL_CYCLE"; }

◆ getTag()

std::string ODEcalCycle::getTag ( ) const
inline

Definition at line 22 of file ODEcalCycle.h.

22 { return m_tag; }

References m_tag.

◆ getTCCEEId()

int ODEcalCycle::getTCCEEId ( ) const
inline

Definition at line 52 of file ODEcalCycle.h.

52 { return m_tcc_ee; }

References m_tcc_ee.

◆ getTCCId()

int ODEcalCycle::getTCCId ( ) const
inline

Definition at line 50 of file ODEcalCycle.h.

50 { return m_tcc; }

References m_tcc.

◆ getTTCCIId()

int ODEcalCycle::getTTCCIId ( ) const
inline

Definition at line 54 of file ODEcalCycle.h.

54 { return m_ttcci; }

References m_ttcci.

◆ getTTCFId()

int ODEcalCycle::getTTCFId ( ) const
inline

Definition at line 62 of file ODEcalCycle.h.

62 { return m_ttcf; }

References m_ttcf.

◆ getVersion()

int ODEcalCycle::getVersion ( ) const
inline

Definition at line 24 of file ODEcalCycle.h.

24 { return m_version; }

References m_version.

◆ prepareWrite()

void ODEcalCycle::prepareWrite ( )
overrideprivatevirtualnoexcept

Implements IODConfig.

Definition at line 37 of file ODEcalCycle.cc.

37  {
38  std::cout << "ODEcalCycle::prepareWrite(): this is a view writing specific tables " << endl;
39 }

References gather_cfg::cout.

◆ printout()

void ODEcalCycle::printout ( )

Definition at line 263 of file ODEcalCycle.cc.

263  {
264  std::cout << "**** ODEcalCycle ****" << std::endl;
265  std::cout << "**** id: " << m_ID << std::endl;
266  std::cout << "**** tag: " << m_tag << std::endl;
267  std::cout << "**** version: " << m_version << std::endl;
268  std::cout << "**** seq_num: " << m_seq_num << std::endl;
269  std::cout << "**** cycle num: " << m_cycle_num << std::endl;
270  std::cout << "**** cycle tag: " << m_cycle_tag << std::endl;
271  std::cout << "**** cycle description: " << m_cycle_description << std::endl;
272  std::cout << "**** ccs_id: " << m_ccs << std::endl;
273  std::cout << "**** dcc_id: " << m_dcc << std::endl;
274  std::cout << "**** laser: " << m_laser << std::endl;
275  std::cout << "**** ttcf_id: " << m_ttcf << std::endl;
276  std::cout << "**** srp_id: " << m_srp << std::endl;
277  std::cout << "**** scan_id: " << m_scan << std::endl;
278  std::cout << "**** ODEcalCycle ****" << std::endl;
279 }

References gather_cfg::cout.

◆ setByID()

void ODEcalCycle::setByID ( int  id)
privatenoexcept

Definition at line 215 of file ODEcalCycle.cc.

215  {
216  this->checkConnection();
217 
219 
220  try {
221  Statement* stmt = m_conn->createStatement();
222 
223  stmt->setSQL(
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 ");
230  stmt->setInt(1, id);
231 
232  ResultSet* rset = stmt->executeQuery();
233  if (rset->next()) {
234  m_tag = rset->getString(1);
235  m_version = rset->getInt(2);
236  m_seq_num = rset->getInt(3);
237  m_cycle_num = rset->getInt(4);
238  m_cycle_tag = rset->getString(5);
239  m_cycle_description = rset->getString(6);
240  m_ccs = rset->getInt(7);
241  m_dcc = rset->getInt(8);
242  m_laser = rset->getInt(9);
243  m_ltc = rset->getInt(10);
244  m_lts = rset->getInt(11);
245  m_tcc = rset->getInt(12);
246  m_ttcci = rset->getInt(13);
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);
252  m_tcc_ee = rset->getInt(19);
253 
254  } else {
255  throw(std::runtime_error("ODEcalCycle::setByID: Given config_id is not in the database"));
256  }
257  m_conn->terminateStatement(stmt);
258  } catch (SQLException& e) {
259  throw(std::runtime_error("ODEcalCycle::setByID: " + e.getMessage()));
260  }
261 }

References cuy::dh, and MillePedeFileConverter_cfg::e.

◆ setCCSId()

void ODEcalCycle::setCCSId ( int  x)
inline

Definition at line 37 of file ODEcalCycle.h.

37 { m_ccs = x; }

References m_ccs, and x.

◆ setCycleDescription()

void ODEcalCycle::setCycleDescription ( std::string  x)
inline

Definition at line 35 of file ODEcalCycle.h.

References m_cycle_description, and x.

◆ setCycleNum()

void ODEcalCycle::setCycleNum ( int  x)
inline

Definition at line 31 of file ODEcalCycle.h.

31 { m_cycle_num = x; }

References m_cycle_num, and x.

◆ setCycleTag()

void ODEcalCycle::setCycleTag ( std::string  x)
inline

Definition at line 33 of file ODEcalCycle.h.

33 { m_cycle_tag = x; }

References m_cycle_tag, and x.

◆ setDCCId()

void ODEcalCycle::setDCCId ( int  x)
inline

Definition at line 39 of file ODEcalCycle.h.

39 { m_dcc = x; }

References m_dcc, and x.

◆ setDCUId()

void ODEcalCycle::setDCUId ( int  x)
inline

Definition at line 47 of file ODEcalCycle.h.

47 { m_dcu = x; }

References m_dcu, and x.

◆ setId()

void ODEcalCycle::setId ( int  id)
inline

Definition at line 19 of file ODEcalCycle.h.

19 { m_ID = id; }

References triggerObjects_cff::id, and m_ID.

◆ setJBH4Id()

void ODEcalCycle::setJBH4Id ( int  x)
inline

Definition at line 57 of file ODEcalCycle.h.

57 { m_jbh4 = x; }

References m_jbh4, and x.

◆ setLaserId()

void ODEcalCycle::setLaserId ( int  x)
inline

Definition at line 41 of file ODEcalCycle.h.

41 { m_laser = x; }

References m_laser, and x.

◆ setLTCId()

void ODEcalCycle::setLTCId ( int  x)
inline

Definition at line 43 of file ODEcalCycle.h.

43 { m_ltc = x; }

References m_ltc, and x.

◆ setLTSId()

void ODEcalCycle::setLTSId ( int  x)
inline

Definition at line 45 of file ODEcalCycle.h.

45 { m_lts = x; }

References m_lts, and x.

◆ setMataqId()

void ODEcalCycle::setMataqId ( int  x)
inline

Definition at line 55 of file ODEcalCycle.h.

55 { m_mataq = x; }

References m_mataq, and x.

◆ setScanId()

void ODEcalCycle::setScanId ( int  x)
inline

Definition at line 59 of file ODEcalCycle.h.

59 { m_scan = x; }

References m_scan, and x.

◆ setSeqNum()

void ODEcalCycle::setSeqNum ( int  x)
inline

Definition at line 25 of file ODEcalCycle.h.

25 { m_seq_num = x; }

References m_seq_num, and x.

◆ setSequenceId()

void ODEcalCycle::setSequenceId ( int  x)
inline

Definition at line 28 of file ODEcalCycle.h.

28 { m_seq_id = x; }

References m_seq_id, and x.

Referenced by popcon::EcalSRPHandler::getNewObjects().

◆ setSRPId()

void ODEcalCycle::setSRPId ( int  x)
inline

Definition at line 63 of file ODEcalCycle.h.

63 { m_srp = x; }

References m_srp, and x.

◆ setTag()

void ODEcalCycle::setTag ( std::string  x)
inline

Definition at line 21 of file ODEcalCycle.h.

21 { m_tag = x; }

References m_tag, and x.

◆ setTCCEEId()

void ODEcalCycle::setTCCEEId ( int  x)
inline

Definition at line 51 of file ODEcalCycle.h.

51 { m_tcc_ee = x; }

References m_tcc_ee, and x.

◆ setTCCId()

void ODEcalCycle::setTCCId ( int  x)
inline

Definition at line 49 of file ODEcalCycle.h.

49 { m_tcc = x; }

References m_tcc, and x.

◆ setTTCCIId()

void ODEcalCycle::setTTCCIId ( int  x)
inline

Definition at line 53 of file ODEcalCycle.h.

53 { m_ttcci = x; }

References m_ttcci, and x.

◆ setTTCFId()

void ODEcalCycle::setTTCFId ( int  x)
inline

Definition at line 61 of file ODEcalCycle.h.

61 { m_ttcf = x; }

References m_ttcf, and x.

◆ setVersion()

void ODEcalCycle::setVersion ( int  x)
inline

Definition at line 23 of file ODEcalCycle.h.

23 { m_version = x; }

References m_version, and x.

◆ writeDB()

void ODEcalCycle::writeDB ( )
privatenoexcept

Definition at line 41 of file ODEcalCycle.cc.

41  {
43  cyc.setTag(this->getCycleTag());
45  cyc.setCycleNumber(this->getCycleNum());
46  cyc.setSequenceID(this->getSequenceId());
47  // here we insert the cycle and get back the id
49  cyc.insertConfig();
50  int cyc_id = cyc.getId();
51  cout << "Cycle inserted with ID " << cyc_id << endl;
52  m_ID = cyc_id;
53 
54  if (getCCSId() != 0) {
55  ODCCSCycle ccs_cycle;
56  ccs_cycle.setId(cyc_id);
57  ccs_cycle.setCCSConfigurationID(getCCSId());
58  ccs_cycle.setConnection(m_env, m_conn);
59  ccs_cycle.insertConfig();
60  cout << "Inserting CCS-cycle in DB..." << flush;
61  }
62  if (getDCCId() != 0) {
63  ODDCCCycle dcc_cycle;
64  dcc_cycle.setId(cyc_id);
65  dcc_cycle.setDCCConfigurationID(getDCCId());
66  dcc_cycle.setConnection(m_env, m_conn);
67  dcc_cycle.insertConfig();
68  cout << "Inserting DCC-cycle in DB..." << flush;
69  }
70  if (getLaserId() != 0) {
71  ODLaserCycle laser_cycle;
72  laser_cycle.setId(cyc_id);
73  laser_cycle.setLaserConfigurationID(getLaserId());
74  laser_cycle.setConnection(m_env, m_conn);
75  laser_cycle.insertConfig();
76  cout << "Inserting LASER-cycle in DB..." << flush;
77  }
78  if (getLTCId() != 0) {
79  ODLTCCycle ltc_cycle;
80  ltc_cycle.setId(cyc_id);
81  ltc_cycle.setLTCConfigurationID(getLTCId());
82  ltc_cycle.setConnection(m_env, m_conn);
83  ltc_cycle.insertConfig();
84  cout << "Inserting LTC-cycle in DB..." << flush;
85  }
86  if (getLTSId() != 0) {
87  ODLTSCycle lts_cycle;
88  lts_cycle.setId(cyc_id);
89  lts_cycle.setLTSConfigurationID(getLTSId());
90  lts_cycle.setConnection(m_env, m_conn);
91  lts_cycle.insertConfig();
92  cout << "Inserting LTS-cycle in DB..." << flush;
93  }
94  if (getDCUId() != 0) {
95  ODDCUCycle dcu_cycle;
96  dcu_cycle.setId(cyc_id);
97  dcu_cycle.setDCUConfigurationID(getDCUId());
98  dcu_cycle.setConnection(m_env, m_conn);
99  dcu_cycle.insertConfig();
100  cout << "Inserting DCU-cycle in DB..." << flush;
101  }
102  if (getTCCId() != 0) {
103  ODTCCCycle tcc_cycle;
104  tcc_cycle.setId(cyc_id);
105  tcc_cycle.setTCCConfigurationID(getTCCId());
106  tcc_cycle.setConnection(m_env, m_conn);
107  tcc_cycle.insertConfig();
108  cout << "Inserting TCC-cycle in DB..." << flush;
109  }
110  if (getTCCEEId() != 0) {
111  ODTCCEECycle tcc_ee_cycle;
112  tcc_ee_cycle.setId(cyc_id);
113  tcc_ee_cycle.setTCCConfigurationID(getTCCEEId());
114  tcc_ee_cycle.setConnection(m_env, m_conn);
115  tcc_ee_cycle.insertConfig();
116  cout << "Inserting TCCEE-cycle in DB..." << flush;
117  }
118  if (getTTCCIId() != 0) {
119  ODTTCciCycle ttcci_cycle;
120  ttcci_cycle.setId(cyc_id);
121  ttcci_cycle.setTTCciConfigurationID(getTTCCIId());
122  ttcci_cycle.setConnection(m_env, m_conn);
123  ttcci_cycle.insertConfig();
124  cout << "Inserting TTCCI-cycle in DB..." << flush;
125  }
126  if (getTTCFId() != 0) {
127  ODTTCFCycle ttcf_cycle;
128  ttcf_cycle.setId(cyc_id);
129  ttcf_cycle.setTTCFConfigurationID(getTTCFId());
130  ttcf_cycle.setConnection(m_env, m_conn);
131  ttcf_cycle.insertConfig();
132  cout << "Inserting TTCF-cycle in DB..." << flush;
133  }
134  if (getSRPId() != 0) {
135  ODSRPCycle srp_cycle;
136  srp_cycle.setId(cyc_id);
137  srp_cycle.setSRPConfigurationID(getSRPId());
138  srp_cycle.setConnection(m_env, m_conn);
139  srp_cycle.insertConfig();
140  cout << "Inserting SRP-cycle in DB..." << flush;
141  }
142  if (getJBH4Id() != 0) {
143  ODJBH4Cycle jbh4_cycle;
144  jbh4_cycle.setId(cyc_id);
145  jbh4_cycle.setJBH4ConfigurationID(getJBH4Id());
146  jbh4_cycle.setConnection(m_env, m_conn);
147  jbh4_cycle.insertConfig();
148  cout << "Inserting JBH4-cycle in DB..." << flush;
149  }
150  if (getScanId() != 0) {
151  ODScanCycle scan_cycle;
152  scan_cycle.setId(cyc_id);
153  scan_cycle.setScanConfigurationID(getScanId());
154  scan_cycle.setConnection(m_env, m_conn);
155  scan_cycle.insertConfig();
156  cout << "Inserting SCAN-cycle in DB..." << flush;
157  }
158 }

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().

Friends And Related Function Documentation

◆ EcalCondDBInterface

friend class EcalCondDBInterface
friend

Definition at line 11 of file ODEcalCycle.h.

Member Data Documentation

◆ m_ccs

int ODEcalCycle::m_ccs
private

Definition at line 85 of file ODEcalCycle.h.

Referenced by getCCSId(), and setCCSId().

◆ m_cycle_description

std::string ODEcalCycle::m_cycle_description
private

Definition at line 84 of file ODEcalCycle.h.

Referenced by getCycleDescription(), and setCycleDescription().

◆ m_cycle_num

int ODEcalCycle::m_cycle_num
private

Definition at line 82 of file ODEcalCycle.h.

Referenced by getCycleNum(), and setCycleNum().

◆ m_cycle_tag

std::string ODEcalCycle::m_cycle_tag
private

Definition at line 83 of file ODEcalCycle.h.

Referenced by getCycleTag(), and setCycleTag().

◆ m_dcc

int ODEcalCycle::m_dcc
private

Definition at line 86 of file ODEcalCycle.h.

Referenced by getDCCId(), and setDCCId().

◆ m_dcu

int ODEcalCycle::m_dcu
private

Definition at line 90 of file ODEcalCycle.h.

Referenced by getDCUId(), and setDCUId().

◆ m_ID

int ODEcalCycle::m_ID
private

Definition at line 77 of file ODEcalCycle.h.

Referenced by getId(), and setId().

◆ m_jbh4

int ODEcalCycle::m_jbh4
private

Definition at line 95 of file ODEcalCycle.h.

Referenced by getJBH4Id(), and setJBH4Id().

◆ m_laser

int ODEcalCycle::m_laser
private

Definition at line 87 of file ODEcalCycle.h.

Referenced by getLaserId(), and setLaserId().

◆ m_ltc

int ODEcalCycle::m_ltc
private

Definition at line 88 of file ODEcalCycle.h.

Referenced by getLTCId(), and setLTCId().

◆ m_lts

int ODEcalCycle::m_lts
private

Definition at line 89 of file ODEcalCycle.h.

Referenced by getLTSId(), and setLTSId().

◆ m_mataq

int ODEcalCycle::m_mataq
private

Definition at line 94 of file ODEcalCycle.h.

Referenced by getMataqId(), and setMataqId().

◆ m_scan

int ODEcalCycle::m_scan
private

Definition at line 96 of file ODEcalCycle.h.

Referenced by getScanId(), and setScanId().

◆ m_seq_id

int ODEcalCycle::m_seq_id
private

Definition at line 81 of file ODEcalCycle.h.

Referenced by getSequenceId(), and setSequenceId().

◆ m_seq_num

int ODEcalCycle::m_seq_num
private

Definition at line 80 of file ODEcalCycle.h.

Referenced by getSeqNum(), and setSeqNum().

◆ m_srp

int ODEcalCycle::m_srp
private

Definition at line 97 of file ODEcalCycle.h.

Referenced by getSRPId(), and setSRPId().

◆ m_tag

std::string ODEcalCycle::m_tag
private

Definition at line 78 of file ODEcalCycle.h.

Referenced by getTag(), and setTag().

◆ m_tcc

int ODEcalCycle::m_tcc
private

Definition at line 91 of file ODEcalCycle.h.

Referenced by getTCCId(), and setTCCId().

◆ m_tcc_ee

int ODEcalCycle::m_tcc_ee
private

Definition at line 92 of file ODEcalCycle.h.

Referenced by getTCCEEId(), and setTCCEEId().

◆ m_ttcci

int ODEcalCycle::m_ttcci
private

Definition at line 93 of file ODEcalCycle.h.

Referenced by getTTCCIId(), and setTTCCIId().

◆ m_ttcf

int ODEcalCycle::m_ttcf
private

Definition at line 98 of file ODEcalCycle.h.

Referenced by getTTCFId(), and setTTCFId().

◆ m_version

int ODEcalCycle::m_version
private

Definition at line 79 of file ODEcalCycle.h.

Referenced by getVersion(), and setVersion().

ODRunConfigCycleInfo::insertConfig
void insertConfig() noexcept(false)
Definition: ODRunConfigCycleInfo.cc:186
ODEcalCycle::m_ltc
int m_ltc
Definition: ODEcalCycle.h:88
ODEcalCycle::getSRPId
int getSRPId() const
Definition: ODEcalCycle.h:64
ODRunConfigCycleInfo
Definition: ODRunConfigCycleInfo.h:12
ODLaserCycle::setLaserConfigurationID
void setLaserConfigurationID(int x)
Definition: ODLaserCycle.h:23
ODTCCEECycle
Definition: ODTCCEECycle.h:9
ODSRPCycle
Definition: ODSRPCycle.h:9
ODEcalCycle::m_lts
int m_lts
Definition: ODEcalCycle.h:89
ODScanCycle::setScanConfigurationID
void setScanConfigurationID(int x)
Definition: ODScanCycle.h:23
ODTCCCycle::setTCCConfigurationID
void setTCCConfigurationID(int x)
Definition: ODTCCCycle.h:23
ODEcalCycle::m_version
int m_version
Definition: ODEcalCycle.h:79
ODEcalCycle::getCycleDescription
std::string getCycleDescription() const
Definition: ODEcalCycle.h:36
ODTTCFCycle
Definition: ODTTCFCycle.h:9
ODEcalCycle::getCycleNum
int getCycleNum() const
Definition: ODEcalCycle.h:32
ODEcalCycle::getDCCId
int getDCCId() const
Definition: ODEcalCycle.h:40
IODConfig::Statement
oracle::occi::Statement Statement
Definition: IODConfig.h:21
ODCCSCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODCCSCycle.cc:134
gather_cfg.cout
cout
Definition: gather_cfg.py:144
ODEcalCycle::getCCSId
int getCCSId() const
Definition: ODEcalCycle.h:38
ODSRPCycle::setId
void setId(int id)
Definition: ODSRPCycle.h:19
ODScanCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODScanCycle.cc:134
ODRunConfigCycleInfo::getId
int getId() const
Definition: ODRunConfigCycleInfo.h:24
ODEcalCycle::getTTCCIId
int getTTCCIId() const
Definition: ODEcalCycle.h:54
ODEcalCycle::getTTCFId
int getTTCFId() const
Definition: ODEcalCycle.h:62
ODTCCCycle::setId
void setId(int id)
Definition: ODTCCCycle.h:19
ODTCCCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODTCCCycle.cc:134
ODTTCFCycle::setId
void setId(int id)
Definition: ODTTCFCycle.h:19
ODTCCEECycle::setTCCConfigurationID
void setTCCConfigurationID(int x)
Definition: ODTCCEECycle.h:23
DDAxes::x
ODDCUCycle
Definition: ODDCUCycle.h:9
ODEcalCycle::m_dcu
int m_dcu
Definition: ODEcalCycle.h:90
ODEcalCycle::m_mataq
int m_mataq
Definition: ODEcalCycle.h:94
ODLTSCycle
Definition: ODLTSCycle.h:9
IODConfig::SQLException
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
ODEcalCycle::setByID
void setByID(int id) noexcept(false)
Definition: ODEcalCycle.cc:215
ODDCUCycle::setDCUConfigurationID
void setDCUConfigurationID(int x)
Definition: ODDCUCycle.h:23
ODCCSCycle::setCCSConfigurationID
void setCCSConfigurationID(int x)
Definition: ODCCSCycle.h:23
ODSRPCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODSRPCycle.cc:134
ODSRPCycle::setSRPConfigurationID
void setSRPConfigurationID(int x)
Definition: ODSRPCycle.h:23
ODTTCFCycle::setTTCFConfigurationID
void setTTCFConfigurationID(int x)
Definition: ODTTCFCycle.h:23
ODLTSCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODLTSCycle.cc:134
ODEcalCycle::getCycleTag
std::string getCycleTag() const
Definition: ODEcalCycle.h:34
ODEcalCycle::clear
void clear()
Definition: ODEcalCycle.cc:160
IDBObject::m_conn
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
ODLTSCycle::setLTSConfigurationID
void setLTSConfigurationID(int x)
Definition: ODLTSCycle.h:23
ODEcalCycle::getLTSId
int getLTSId() const
Definition: ODEcalCycle.h:46
ODTCCCycle
Definition: ODTCCCycle.h:9
ODEcalCycle::m_seq_id
int m_seq_id
Definition: ODEcalCycle.h:81
ODEcalCycle::m_ID
int m_ID
Definition: ODEcalCycle.h:77
ODLTCCycle::setId
void setId(int id)
Definition: ODLTCCycle.h:19
ODDCCCycle
Definition: ODDCCCycle.h:9
ODJBH4Cycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODJBH4Cycle.cc:134
ODDCCCycle::setId
void setId(int id)
Definition: ODDCCCycle.h:19
ODLaserCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODLaserCycle.cc:134
ODScanCycle::setId
void setId(int id)
Definition: ODScanCycle.h:19
ODRunConfigCycleInfo::setCycleNumber
void setCycleNumber(int n)
Definition: ODRunConfigCycleInfo.h:35
ODTTCciCycle::setTTCciConfigurationID
void setTTCciConfigurationID(int x)
Definition: ODTTCciCycle.h:23
ODTTCFCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODTTCFCycle.cc:134
ODLTCCycle
Definition: ODLTCCycle.h:9
ODEcalCycle::m_ttcci
int m_ttcci
Definition: ODEcalCycle.h:93
ODLaserCycle::setId
void setId(int id)
Definition: ODLaserCycle.h:19
ODEcalCycle::m_seq_num
int m_seq_num
Definition: ODEcalCycle.h:80
IDBObject::checkConnection
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
ODTTCciCycle
Definition: ODTTCciCycle.h:9
ODEcalCycle::getTCCId
int getTCCId() const
Definition: ODEcalCycle.h:50
IODConfig::m_readStmt
Statement * m_readStmt
Definition: IODConfig.h:34
ODEcalCycle::m_srp
int m_srp
Definition: ODEcalCycle.h:97
ODEcalCycle::m_ccs
int m_ccs
Definition: ODEcalCycle.h:85
ODEcalCycle::m_dcc
int m_dcc
Definition: ODEcalCycle.h:86
ODLTCCycle::setLTCConfigurationID
void setLTCConfigurationID(int x)
Definition: ODLTCCycle.h:23
ODTCCEECycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODTCCEECycle.cc:134
ODDCCCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODDCCCycle.cc:134
ODLTCCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODLTCCycle.cc:134
ODJBH4Cycle::setId
void setId(int id)
Definition: ODJBH4Cycle.h:19
ODEcalCycle::m_ttcf
int m_ttcf
Definition: ODEcalCycle.h:98
ODEcalCycle::m_scan
int m_scan
Definition: ODEcalCycle.h:96
ODEcalCycle::m_laser
int m_laser
Definition: ODEcalCycle.h:87
ODEcalCycle::getId
int getId() const
Definition: ODEcalCycle.h:20
ODDCUCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODDCUCycle.cc:134
ODEcalCycle::m_tcc
int m_tcc
Definition: ODEcalCycle.h:91
IDBObject::setConnection
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
Definition: IDBObject.h:23
ODLTSCycle::setId
void setId(int id)
Definition: ODLTSCycle.h:19
IODConfig::m_writeStmt
Statement * m_writeStmt
Definition: IODConfig.h:33
ODEcalCycle::getDCUId
int getDCUId() const
Definition: ODEcalCycle.h:48
ODRunConfigCycleInfo::setDescription
void setDescription(std::string x)
Definition: ODRunConfigCycleInfo.h:26
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ODDCUCycle::setId
void setId(int id)
Definition: ODDCUCycle.h:19
ODEcalCycle::m_jbh4
int m_jbh4
Definition: ODEcalCycle.h:95
ODEcalCycle::getLaserId
int getLaserId() const
Definition: ODEcalCycle.h:42
ODCCSCycle
Definition: ODCCSCycle.h:9
ODEcalCycle::getLTCId
int getLTCId() const
Definition: ODEcalCycle.h:44
ODCCSCycle::setId
void setId(int id)
Definition: ODCCSCycle.h:19
ODEcalCycle::m_cycle_description
std::string m_cycle_description
Definition: ODEcalCycle.h:84
ODRunConfigCycleInfo::setSequenceID
void setSequenceID(int x)
Definition: ODRunConfigCycleInfo.h:32
ODEcalCycle::getJBH4Id
int getJBH4Id() const
Definition: ODEcalCycle.h:58
ODJBH4Cycle
Definition: ODJBH4Cycle.h:9
ODTCCEECycle::setId
void setId(int id)
Definition: ODTCCEECycle.h:19
ODEcalCycle::getScanId
int getScanId() const
Definition: ODEcalCycle.h:60
ODJBH4Cycle::setJBH4ConfigurationID
void setJBH4ConfigurationID(int x)
Definition: ODJBH4Cycle.h:23
IDBObject::m_env
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
mps_fire.result
result
Definition: mps_fire.py:303
ODEcalCycle::m_tcc_ee
int m_tcc_ee
Definition: ODEcalCycle.h:92
ODEcalCycle::m_cycle_num
int m_cycle_num
Definition: ODEcalCycle.h:82
ODScanCycle
Definition: ODScanCycle.h:9
ODEcalCycle::getSequenceId
int getSequenceId() const
Definition: ODEcalCycle.h:29
ODEcalCycle::m_tag
std::string m_tag
Definition: ODEcalCycle.h:78
DateHandler
Definition: DateHandler.h:7
ODLaserCycle
Definition: ODLaserCycle.h:9
ODEcalCycle::m_cycle_tag
std::string m_cycle_tag
Definition: ODEcalCycle.h:83
ODDCCCycle::setDCCConfigurationID
void setDCCConfigurationID(int x)
Definition: ODDCCCycle.h:23
ODEcalCycle::getTCCEEId
int getTCCEEId() const
Definition: ODEcalCycle.h:52
cuy.dh
dh
Definition: cuy.py:355
ODTTCciCycle::insertConfig
void insertConfig() noexcept(false)
Definition: ODTTCciCycle.cc:134
ODRunConfigCycleInfo::setTag
void setTag(std::string x)
Definition: ODRunConfigCycleInfo.h:29
ODTTCciCycle::setId
void setId(int id)
Definition: ODTTCciCycle.h:19
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37