CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
ODWeightsDat Class Reference

#include <ODWeightsDat.h>

Inheritance diagram for ODWeightsDat:
IODConfig IDBObject

Public Member Functions

int getCrystalId () const
 
int getFedId () const
 
int getId () const
 
int getSMId () const
 
std::string getTable () override
 
int getTTId () const
 
std::vector< std::vector< float > > getWeight () const
 
float getWeight0 () const
 
float getWeight1 () const
 
float getWeight2 () const
 
float getWeight3 () const
 
float getWeight4 () const
 
float getWeight5 () const
 
 ODWeightsDat ()
 
void setCrystalId (int dac)
 
void setFedId (int dac)
 
void setId (int dac)
 
void setSMId (int dac)
 
void setTTId (int dac)
 
void setWeight (int pos, float x)
 
void setWeight0 (float x)
 
void setWeight1 (float x)
 
void setWeight2 (float x)
 
void setWeight3 (float x)
 
void setWeight4 (float x)
 
void setWeight5 (float x)
 
 ~ODWeightsDat () 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 (std::vector< ODWeightsDat > *fillMap, ODFEWeightsInfo *iov) noexcept(false)
 
void fetchData (ODWeightsDat *p) noexcept(false)
 
void prepareWrite () noexcept(false) override
 
void writeArrayDB (const std::vector< ODWeightsDat > &data, ODFEWeightsInfo *iov) noexcept(false)
 
void writeDB (const ODWeightsDat *item, ODFEWeightsInfo *iov) noexcept(false)
 

Private Attributes

std::vector< std::vector< float > > dccw
 
int m_fed
 
int m_ID
 
int m_sm
 
int m_tt
 
float m_wei [6]
 
float m_wei0
 
float m_wei1
 
float m_wei2
 
float m_wei3
 
float m_wei4
 
float m_wei5
 
int m_xt
 

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 int const 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 12 of file ODWeightsDat.h.

Constructor & Destructor Documentation

ODWeightsDat::ODWeightsDat ( )

Definition at line 10 of file ODWeightsDat.cc.

10  {
11  m_env = nullptr;
12  m_conn = nullptr;
13  m_writeStmt = nullptr;
14  m_readStmt = nullptr;
15 
16  m_sm = 0;
17  m_fed = 0;
18  m_tt = 0;
19  m_xt = 0;
20 }
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
Statement * m_writeStmt
Definition: IODConfig.h:33
Statement * m_readStmt
Definition: IODConfig.h:34
ODWeightsDat::~ODWeightsDat ( )
override

Definition at line 22 of file ODWeightsDat.cc.

22 {}

Member Function Documentation

void ODWeightsDat::clear ( void  )
private

Definition at line 24 of file ODWeightsDat.cc.

24  {
25  m_sm = 0;
26  m_fed = 0;
27  m_tt = 0;
28  m_xt = 0;
29  m_wei0 = 0;
30  m_wei1 = 0;
31  m_wei2 = 0;
32  m_wei3 = 0;
33  m_wei4 = 0;
34  m_wei5 = 0;
35 }
void ODWeightsDat::fetchData ( std::vector< ODWeightsDat > *  fillMap,
ODFEWeightsInfo iov 
)
privatenoexcept

Definition at line 73 of file ODWeightsDat.cc.

References gather_cfg::cout, dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, setCrystalId(), setFedId(), setSMId(), setTTId(), and setWeight().

73  {
74  this->checkConnection();
75 
76  iov->setConnection(m_env, m_conn);
77  int iovID = iov->fetchID();
78  if (!iovID) {
79  std::cout << "ID not in the DB" << endl;
80  return;
81  }
82 
83  try {
84  m_readStmt->setSQL("SELECT * FROM " + getTable() + " WHERE rec_id = :rec_id order by sm_id, fed_id, tt_id, cry_id");
85  m_readStmt->setInt(1, iovID);
86  ResultSet* rset = m_readStmt->executeQuery();
87 
88  // std::vector< ODWeightsDat > p;
90  while (rset->next()) {
91  // dat.setId( rset->getInt(1) );
92  dat.setSMId(rset->getInt(2));
93  dat.setFedId(rset->getInt(3));
94  dat.setTTId(rset->getInt(4));
95  dat.setCrystalId(rset->getInt(5));
96  /*
97  dat.setWeight0( rset->getFloat(6) );
98  dat.setWeight1( rset->getFloat(7) );
99  dat.setWeight2( rset->getFloat(8) );
100  dat.setWeight3( rset->getFloat(9) );
101  dat.setWeight4( rset->getFloat(10) );
102  dat.setWeight5( rset->getFloat(11) );
103  */
104  p->push_back(dat);
105  for (int iwei = 0; iwei < 6; iwei++) {
106  dat.setWeight(iwei, rset->getFloat(6 + iwei));
107  }
108  std::vector<float> dccwei(m_wei, m_wei + 6);
109  dccw.push_back(dccwei); // vector vector
110  }
111 
112  } catch (SQLException& e) {
113  throw(std::runtime_error("ODWeightsDat::fetchData(): " + e.getMessage()));
114  }
115 }
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
std::string getTable() override
Definition: ODWeightsDat.h:19
void setSMId(int dac)
Definition: ODWeightsDat.h:24
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
void setWeight(int pos, float x)
Definition: ODWeightsDat.h:43
float m_wei[6]
Definition: ODWeightsDat.h:80
int fetchID() noexcept(false)
void setTTId(int dac)
Definition: ODWeightsDat.h:30
void setCrystalId(int dac)
Definition: ODWeightsDat.h:33
std::vector< std::vector< float > > dccw
Definition: ODWeightsDat.h:81
static std::vector< std::string > checklist dat
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
Statement * m_readStmt
Definition: IODConfig.h:34
tuple cout
Definition: gather_cfg.py:144
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
Definition: IDBObject.h:23
void setFedId(int dac)
Definition: ODWeightsDat.h:27
void ODWeightsDat::fetchData ( ODWeightsDat p)
privatenoexcept

Definition at line 117 of file ODWeightsDat.cc.

References gather_cfg::cout, alignCSCRings::e, and AlCaHLTBitMon_ParallelJobs::p.

117  {
118  this->checkConnection();
119 
120  try {
121  m_readStmt->setSQL("SELECT * FROM " + getTable() + " WHERE rec_id = :1 order by sm_id, fed_id, tt_id, cry_id");
122  m_readStmt->setInt(1, p->getId());
123  ResultSet* rset = m_readStmt->executeQuery();
124 
125  int row = 0;
126  while (rset->next()) {
127  row++;
128  p->setSMId(rset->getInt(2));
129  p->setFedId(rset->getInt(3));
130  p->setTTId(rset->getInt(4));
131  p->setCrystalId(rset->getInt(5));
132  for (int iwei = 0; iwei < 6; iwei++) {
133  p->setWeight(iwei, rset->getFloat(6 + iwei));
134  }
135  std::vector<float> dccwei(m_wei, m_wei + 6);
136  dccw.push_back(dccwei); // vector vector
137  } // loop on all rows in the table
138  std::cout << " table " << getTable() << " total nb of rows " << row << std::endl;
139 
140  } catch (SQLException& e) {
141  throw(std::runtime_error("ODWeightsDat::fetchData(): " + e.getMessage()));
142  }
143 }
int getId() const
Definition: ODWeightsDat.h:22
std::string getTable() override
Definition: ODWeightsDat.h:19
void setSMId(int dac)
Definition: ODWeightsDat.h:24
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
void setWeight(int pos, float x)
Definition: ODWeightsDat.h:43
float m_wei[6]
Definition: ODWeightsDat.h:80
void setTTId(int dac)
Definition: ODWeightsDat.h:30
void setCrystalId(int dac)
Definition: ODWeightsDat.h:33
std::vector< std::vector< float > > dccw
Definition: ODWeightsDat.h:81
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
Statement * m_readStmt
Definition: IODConfig.h:34
tuple cout
Definition: gather_cfg.py:144
void setFedId(int dac)
Definition: ODWeightsDat.h:27
int ODWeightsDat::getCrystalId ( ) const
inline

Definition at line 34 of file ODWeightsDat.h.

References m_xt.

Referenced by writeArrayDB().

34 { return m_xt; }
int ODWeightsDat::getFedId ( ) const
inline

Definition at line 28 of file ODWeightsDat.h.

References m_fed.

Referenced by writeArrayDB().

28 { return m_fed; }
int ODWeightsDat::getId ( void  ) const
inline

Definition at line 22 of file ODWeightsDat.h.

References m_ID.

22 { return m_ID; }
int ODWeightsDat::getSMId ( ) const
inline

Definition at line 25 of file ODWeightsDat.h.

References m_sm.

Referenced by writeArrayDB().

25 { return m_sm; }
std::string ODWeightsDat::getTable ( )
inlineoverridevirtual

Implements IODConfig.

Definition at line 19 of file ODWeightsDat.h.

19 { return "DCC_WEIGHTS_DAT"; }
int ODWeightsDat::getTTId ( ) const
inline

Definition at line 31 of file ODWeightsDat.h.

References m_tt.

Referenced by writeArrayDB().

31 { return m_tt; }
std::vector<std::vector<float> > ODWeightsDat::getWeight ( ) const
inline

Definition at line 52 of file ODWeightsDat.h.

References dccw.

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

52 { return dccw; }
std::vector< std::vector< float > > dccw
Definition: ODWeightsDat.h:81
float ODWeightsDat::getWeight0 ( ) const
inline

Definition at line 45 of file ODWeightsDat.h.

References m_wei0.

Referenced by writeArrayDB().

45 { return m_wei0; }
float ODWeightsDat::getWeight1 ( ) const
inline

Definition at line 46 of file ODWeightsDat.h.

References m_wei1.

Referenced by writeArrayDB().

46 { return m_wei1; }
float ODWeightsDat::getWeight2 ( ) const
inline

Definition at line 47 of file ODWeightsDat.h.

References m_wei2.

Referenced by writeArrayDB().

47 { return m_wei2; }
float ODWeightsDat::getWeight3 ( ) const
inline

Definition at line 48 of file ODWeightsDat.h.

References m_wei3.

Referenced by writeArrayDB().

48 { return m_wei3; }
float ODWeightsDat::getWeight4 ( ) const
inline

Definition at line 49 of file ODWeightsDat.h.

References m_wei4.

Referenced by writeArrayDB().

49 { return m_wei4; }
float ODWeightsDat::getWeight5 ( ) const
inline

Definition at line 50 of file ODWeightsDat.h.

References m_wei5.

Referenced by writeArrayDB().

50 { return m_wei5; }
void ODWeightsDat::prepareWrite ( )
overrideprivatevirtualnoexcept

Implements IODConfig.

Definition at line 37 of file ODWeightsDat.cc.

References alignCSCRings::e.

37  {
38  this->checkConnection();
39 
40  try {
41  m_writeStmt = m_conn->createStatement();
42  m_writeStmt->setSQL("INSERT INTO " + getTable() +
43  " (rec_id, sm_id, fed_id, tt_id, cry_id, wei0, wei1, wei2, wei3, wei4, wei5 ) "
44  "VALUES (:1, :2, :3, :4, :5, :6, :7, :8 , :9, :10, :11 )");
45  } catch (SQLException& e) {
46  throw(std::runtime_error("ODWeightsDat::prepareWrite(): " + e.getMessage()));
47  }
48 }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
Statement * m_writeStmt
Definition: IODConfig.h:33
std::string getTable() override
Definition: ODWeightsDat.h:19
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
void ODWeightsDat::setCrystalId ( int  dac)
inline

Definition at line 33 of file ODWeightsDat.h.

References m_xt.

Referenced by fetchData(), and EcalDccWeightBuilder::writeWeightToDB().

33 { m_xt = dac; }
void ODWeightsDat::setFedId ( int  dac)
inline

Definition at line 27 of file ODWeightsDat.h.

References m_fed.

Referenced by fetchData(), and EcalDccWeightBuilder::writeWeightToDB().

27 { m_fed = dac; }
void ODWeightsDat::setId ( int  dac)
inline

Definition at line 21 of file ODWeightsDat.h.

References m_ID.

Referenced by popcon::EcalSRPHandler::getNewObjects(), and EcalDccWeightBuilder::writeWeightToDB().

21 { m_ID = dac; }
void ODWeightsDat::setSMId ( int  dac)
inline

Definition at line 24 of file ODWeightsDat.h.

References m_sm.

Referenced by fetchData(), and EcalDccWeightBuilder::writeWeightToDB().

24 { m_sm = dac; }
void ODWeightsDat::setTTId ( int  dac)
inline

Definition at line 30 of file ODWeightsDat.h.

References m_tt.

Referenced by fetchData(), and EcalDccWeightBuilder::writeWeightToDB().

30 { m_tt = dac; }
void ODWeightsDat::setWeight ( int  pos,
float  x 
)
inline

Definition at line 43 of file ODWeightsDat.h.

References m_wei, and x.

Referenced by fetchData().

43 { m_wei[pos] = x; }
float m_wei[6]
Definition: ODWeightsDat.h:80
void ODWeightsDat::setWeight0 ( float  x)
inline

Definition at line 36 of file ODWeightsDat.h.

References m_wei0, and x.

Referenced by EcalDccWeightBuilder::writeWeightToDB().

36 { m_wei0 = x; }
void ODWeightsDat::setWeight1 ( float  x)
inline

Definition at line 37 of file ODWeightsDat.h.

References m_wei1, and x.

Referenced by EcalDccWeightBuilder::writeWeightToDB().

37 { m_wei1 = x; }
void ODWeightsDat::setWeight2 ( float  x)
inline

Definition at line 38 of file ODWeightsDat.h.

References m_wei2, and x.

Referenced by EcalDccWeightBuilder::writeWeightToDB().

38 { m_wei2 = x; }
void ODWeightsDat::setWeight3 ( float  x)
inline

Definition at line 39 of file ODWeightsDat.h.

References m_wei3, and x.

Referenced by EcalDccWeightBuilder::writeWeightToDB().

39 { m_wei3 = x; }
void ODWeightsDat::setWeight4 ( float  x)
inline

Definition at line 40 of file ODWeightsDat.h.

References m_wei4, and x.

Referenced by EcalDccWeightBuilder::writeWeightToDB().

40 { m_wei4 = x; }
void ODWeightsDat::setWeight5 ( float  x)
inline

Definition at line 41 of file ODWeightsDat.h.

References m_wei5, and x.

Referenced by EcalDccWeightBuilder::writeWeightToDB().

41 { m_wei5 = x; }
void ODWeightsDat::writeArrayDB ( const std::vector< ODWeightsDat > &  data,
ODFEWeightsInfo iov 
)
privatenoexcept

Definition at line 147 of file ODWeightsDat.cc.

References submitPVResolutionJobs::count, data, alignCSCRings::e, getCrystalId(), getFedId(), getSMId(), getTTId(), getWeight0(), getWeight1(), getWeight2(), getWeight3(), getWeight4(), and getWeight5().

147  {
148  this->checkConnection();
149 
150  int iovID = iov->fetchID();
151  if (!iovID) {
152  throw(std::runtime_error("ODDelays::writeArrayDB: ODFEDelaysInfo not in DB"));
153  }
154 
155  int nrows = data.size();
156  int* ids = new int[nrows];
157  int* xx = new int[nrows];
158  int* yy = new int[nrows];
159  int* zz = new int[nrows];
160  int* st = new int[nrows];
161  float* xx1 = new float[nrows];
162  float* yy1 = new float[nrows];
163  float* zz1 = new float[nrows];
164  float* xx2 = new float[nrows];
165  float* yy2 = new float[nrows];
166  float* zz2 = new float[nrows];
167 
168  ub2* ids_len = new ub2[nrows];
169  ub2* x_len = new ub2[nrows];
170  ub2* y_len = new ub2[nrows];
171  ub2* z_len = new ub2[nrows];
172  ub2* st_len = new ub2[nrows];
173  ub2* x1_len = new ub2[nrows];
174  ub2* y1_len = new ub2[nrows];
175  ub2* z1_len = new ub2[nrows];
176  ub2* x2_len = new ub2[nrows];
177  ub2* y2_len = new ub2[nrows];
178  ub2* z2_len = new ub2[nrows];
179 
180  ODWeightsDat dataitem;
181 
182  int n_data = (int)data.size();
183  for (int count = 0; count < n_data; count++) {
184  dataitem = data[count];
185  ids[count] = iovID;
186  xx[count] = dataitem.getSMId();
187  yy[count] = dataitem.getFedId();
188  zz[count] = dataitem.getTTId();
189  st[count] = dataitem.getCrystalId();
190  xx1[count] = dataitem.getWeight0();
191  yy1[count] = dataitem.getWeight1();
192  zz1[count] = dataitem.getWeight2();
193  xx2[count] = dataitem.getWeight3();
194  yy2[count] = dataitem.getWeight4();
195  zz2[count] = dataitem.getWeight5();
196 
197  ids_len[count] = sizeof(ids[count]);
198  x_len[count] = sizeof(xx[count]);
199  y_len[count] = sizeof(yy[count]);
200  z_len[count] = sizeof(zz[count]);
201  st_len[count] = sizeof(st[count]);
202  x1_len[count] = sizeof(xx1[count]);
203  y1_len[count] = sizeof(yy1[count]);
204  z1_len[count] = sizeof(zz1[count]);
205  x2_len[count] = sizeof(xx2[count]);
206  y2_len[count] = sizeof(yy2[count]);
207  z2_len[count] = sizeof(zz2[count]);
208  }
209 
210  try {
211  m_writeStmt->setDataBuffer(1, (dvoid*)ids, OCCIINT, sizeof(ids[0]), ids_len);
212  m_writeStmt->setDataBuffer(2, (dvoid*)xx, OCCIINT, sizeof(xx[0]), x_len);
213  m_writeStmt->setDataBuffer(3, (dvoid*)yy, OCCIINT, sizeof(yy[0]), y_len);
214  m_writeStmt->setDataBuffer(4, (dvoid*)zz, OCCIINT, sizeof(zz[0]), z_len);
215  m_writeStmt->setDataBuffer(5, (dvoid*)st, OCCIINT, sizeof(st[0]), st_len);
216  m_writeStmt->setDataBuffer(6, (dvoid*)xx1, OCCIFLOAT, sizeof(xx1[0]), x1_len);
217  m_writeStmt->setDataBuffer(7, (dvoid*)yy1, OCCIFLOAT, sizeof(yy1[0]), y1_len);
218  m_writeStmt->setDataBuffer(8, (dvoid*)zz1, OCCIFLOAT, sizeof(zz1[0]), z1_len);
219  m_writeStmt->setDataBuffer(9, (dvoid*)xx2, OCCIFLOAT, sizeof(xx2[0]), x2_len);
220  m_writeStmt->setDataBuffer(10, (dvoid*)yy2, OCCIFLOAT, sizeof(yy2[0]), y2_len);
221  m_writeStmt->setDataBuffer(11, (dvoid*)zz2, OCCIFLOAT, sizeof(zz2[0]), z2_len);
222 
223  m_writeStmt->executeArrayUpdate(nrows);
224 
225  delete[] ids;
226  delete[] xx;
227  delete[] yy;
228  delete[] zz;
229  delete[] st;
230  delete[] xx1;
231  delete[] yy1;
232  delete[] zz1;
233  delete[] xx2;
234  delete[] yy2;
235  delete[] zz2;
236 
237  delete[] ids_len;
238  delete[] x_len;
239  delete[] y_len;
240  delete[] z_len;
241  delete[] st_len;
242  delete[] x1_len;
243  delete[] y1_len;
244  delete[] z1_len;
245  delete[] x2_len;
246  delete[] y2_len;
247  delete[] z2_len;
248 
249  } catch (SQLException& e) {
250  throw(std::runtime_error("ODWeightsDat::writeArrayDB(): " + e.getMessage()));
251  }
252 }
float getWeight0() const
Definition: ODWeightsDat.h:45
Statement * m_writeStmt
Definition: IODConfig.h:33
float getWeight5() const
Definition: ODWeightsDat.h:50
int getCrystalId() const
Definition: ODWeightsDat.h:34
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
float getWeight3() const
Definition: ODWeightsDat.h:48
float getWeight4() const
Definition: ODWeightsDat.h:49
int getTTId() const
Definition: ODWeightsDat.h:31
int fetchID() noexcept(false)
float getWeight1() const
Definition: ODWeightsDat.h:46
float getWeight2() const
Definition: ODWeightsDat.h:47
int getSMId() const
Definition: ODWeightsDat.h:25
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
int getFedId() const
Definition: ODWeightsDat.h:28
void ODWeightsDat::writeDB ( const ODWeightsDat item,
ODFEWeightsInfo iov 
)
privatenoexcept

Definition at line 50 of file ODWeightsDat.cc.

References alignCSCRings::e, and B2GTnPMonitor_cfi::item.

50  {
51  this->checkConnection();
52 
53  try {
54  m_writeStmt->setInt(1, item->getId());
55  m_writeStmt->setInt(2, item->getSMId());
56  m_writeStmt->setInt(3, item->getFedId());
57  m_writeStmt->setInt(4, item->getTTId());
58  m_writeStmt->setInt(5, item->getCrystalId());
59 
60  m_writeStmt->setFloat(6, item->getWeight0());
61  m_writeStmt->setFloat(7, item->getWeight1());
62  m_writeStmt->setFloat(8, item->getWeight2());
63  m_writeStmt->setFloat(9, item->getWeight3());
64  m_writeStmt->setFloat(10, item->getWeight4());
65  m_writeStmt->setFloat(11, item->getWeight5());
66 
67  m_writeStmt->executeUpdate();
68  } catch (SQLException& e) {
69  throw(std::runtime_error("ODWeightsDat::writeDB(): " + e.getMessage()));
70  }
71 }
float getWeight0() const
Definition: ODWeightsDat.h:45
Statement * m_writeStmt
Definition: IODConfig.h:33
int getId() const
Definition: ODWeightsDat.h:22
float getWeight5() const
Definition: ODWeightsDat.h:50
int getCrystalId() const
Definition: ODWeightsDat.h:34
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
float getWeight3() const
Definition: ODWeightsDat.h:48
float getWeight4() const
Definition: ODWeightsDat.h:49
int getTTId() const
Definition: ODWeightsDat.h:31
float getWeight1() const
Definition: ODWeightsDat.h:46
float getWeight2() const
Definition: ODWeightsDat.h:47
int getSMId() const
Definition: ODWeightsDat.h:25
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
int getFedId() const
Definition: ODWeightsDat.h:28

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 14 of file ODWeightsDat.h.

Member Data Documentation

std::vector<std::vector<float> > ODWeightsDat::dccw
private

Definition at line 81 of file ODWeightsDat.h.

Referenced by getWeight().

int ODWeightsDat::m_fed
private

Definition at line 68 of file ODWeightsDat.h.

Referenced by getFedId(), and setFedId().

int ODWeightsDat::m_ID
private

Definition at line 71 of file ODWeightsDat.h.

Referenced by getId(), and setId().

int ODWeightsDat::m_sm
private

Definition at line 67 of file ODWeightsDat.h.

Referenced by getSMId(), and setSMId().

int ODWeightsDat::m_tt
private

Definition at line 69 of file ODWeightsDat.h.

Referenced by getTTId(), and setTTId().

float ODWeightsDat::m_wei[6]
private

Definition at line 80 of file ODWeightsDat.h.

Referenced by setWeight().

float ODWeightsDat::m_wei0
private

Definition at line 73 of file ODWeightsDat.h.

Referenced by getWeight0(), and setWeight0().

float ODWeightsDat::m_wei1
private

Definition at line 74 of file ODWeightsDat.h.

Referenced by getWeight1(), and setWeight1().

float ODWeightsDat::m_wei2
private

Definition at line 75 of file ODWeightsDat.h.

Referenced by getWeight2(), and setWeight2().

float ODWeightsDat::m_wei3
private

Definition at line 76 of file ODWeightsDat.h.

Referenced by getWeight3(), and setWeight3().

float ODWeightsDat::m_wei4
private

Definition at line 77 of file ODWeightsDat.h.

Referenced by getWeight4(), and setWeight4().

float ODWeightsDat::m_wei5
private

Definition at line 78 of file ODWeightsDat.h.

Referenced by getWeight5(), and setWeight5().

int ODWeightsDat::m_xt
private

Definition at line 70 of file ODWeightsDat.h.

Referenced by getCrystalId(), and setCrystalId().