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
FEConfigOddWeightModeDat Class Reference

#include <FEConfigOddWeightModeDat.h>

Inheritance diagram for FEConfigOddWeightModeDat:
IDataItem IDBObject

Public Member Functions

 FEConfigOddWeightModeDat ()
 
float getDisableEBEvenPeakFinder () const
 
float getDisableEEEvenPeakFinder () const
 
float getEnableEBOddFilter () const
 
float getEnableEBOddPeakFinder () const
 
float getEnableEEOddFilter () const
 
float getEnableEEOddPeakFinder () const
 
float getFenixEBStripInfobit2 () const
 
float getFenixEBStripOutput () const
 
float getFenixEBTcpInfobit1 () const
 
float getFenixEBTcpOutput () const
 
float getFenixEEStripInfobit2 () const
 
float getFenixEEStripOutput () const
 
float getFenixEETcpInfobit1 () const
 
float getFenixEETcpOutput () const
 
float getFenixPar1 () const
 
float getFenixPar10 () const
 
float getFenixPar11 () const
 
float getFenixPar12 () const
 
float getFenixPar13 () const
 
float getFenixPar14 () const
 
float getFenixPar15 () const
 
float getFenixPar16 () const
 
float getFenixPar17 () const
 
float getFenixPar18 () const
 
float getFenixPar2 () const
 
float getFenixPar3 () const
 
float getFenixPar4 () const
 
float getFenixPar5 () const
 
float getFenixPar6 () const
 
float getFenixPar7 () const
 
float getFenixPar8 () const
 
float getFenixPar9 () const
 
std::string getTable () override
 
void setDisableEBEvenPeakFinder (int x)
 
void setDisableEEEvenPeakFinder (int x)
 
void setEnableEBOddFilter (int x)
 
void setEnableEBOddPeakFinder (int x)
 
void setEnableEEOddFilter (int x)
 
void setEnableEEOddPeakFinder (int x)
 
void setFenixEBStripInfobit2 (int x)
 
void setFenixEBStripOutput (int x)
 
void setFenixEBTcpInfoBit1 (int x)
 
void setFenixEBTcpOutput (int x)
 
void setFenixEEStripInfobit2 (int x)
 
void setFenixEEStripOutput (int x)
 
void setFenixEETcpInfoBit1 (int x)
 
void setFenixEETcpOutput (int x)
 
void setFenixPar1 (int x)
 
void setFenixPar10 (int x)
 
void setFenixPar11 (int x)
 
void setFenixPar12 (int x)
 
void setFenixPar13 (int x)
 
void setFenixPar14 (int x)
 
void setFenixPar15 (int x)
 
void setFenixPar16 (int x)
 
void setFenixPar17 (int x)
 
void setFenixPar18 (int x)
 
void setFenixPar2 (int x)
 
void setFenixPar3 (int x)
 
void setFenixPar4 (int x)
 
void setFenixPar5 (int x)
 
void setFenixPar6 (int x)
 
void setFenixPar7 (int x)
 
void setFenixPar8 (int x)
 
void setFenixPar9 (int x)
 
 ~FEConfigOddWeightModeDat () override
 
- Public Member Functions inherited from IDataItem
 IDataItem ()
 
- 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 fetchData (std::map< EcalLogicID, FEConfigOddWeightModeDat > *fillMap, FEConfigOddWeightInfo *iconf) noexcept(false)
 
void prepareWrite () noexcept(false) override
 
void writeArrayDB (const std::map< EcalLogicID, FEConfigOddWeightModeDat > *data, FEConfigOddWeightInfo *iconf) noexcept(false)
 
void writeDB (const EcalLogicID *ecid, const FEConfigOddWeightModeDat *item, FEConfigOddWeightInfo *iconf) noexcept(false)
 

Private Attributes

int m_dis_EB_even_pf
 
int m_dis_EE_even_pf
 
int m_en_EB_flt
 
int m_en_EB_pf
 
int m_en_EE_flt
 
int m_en_EE_pf
 
int m_fe_EB_strib2
 
int m_fe_EB_strout
 
int m_fe_EB_tcpib1
 
int m_fe_EB_tcpout
 
int m_fe_EE_strib2
 
int m_fe_EE_strout
 
int m_fe_EE_tcpib1
 
int m_fe_EE_tcpout
 
int m_fe_par15
 
int m_fe_par16
 
int m_fe_par17
 
int m_fe_par18
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS = 1024
 
- Protected Member Functions inherited from IDataItem
void checkPrepare () noexcept(false)
 
void createReadStatement () 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 IDataItem
oracle::occi::Statement * m_readStmt
 
oracle::occi::Statement * m_writeStmt
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

Definition at line 11 of file FEConfigOddWeightModeDat.h.

Constructor & Destructor Documentation

FEConfigOddWeightModeDat::FEConfigOddWeightModeDat ( )

Definition at line 12 of file FEConfigOddWeightModeDat.cc.

12  {
13  m_env = nullptr;
14  m_conn = nullptr;
15  m_writeStmt = nullptr;
16  m_readStmt = nullptr;
17 
18  m_en_EB_flt = 0;
19  m_en_EE_flt = 0;
20  m_en_EB_pf = 0;
21  m_en_EE_pf = 0;
22  m_dis_EB_even_pf = 0;
23  m_dis_EE_even_pf = 0;
24  m_fe_EB_strout = 0;
25  m_fe_EE_strout = 0;
26  m_fe_EB_strib2 = 0;
27  m_fe_EE_strib2 = 0;
28  m_fe_EB_tcpout = 0;
29  m_fe_EB_tcpib1 = 0;
30  m_fe_EE_tcpout = 0;
31  m_fe_EE_tcpib1 = 0;
32  m_fe_par15 = 0;
33  m_fe_par16 = 0;
34  m_fe_par17 = 0;
35  m_fe_par18 = 0;
36 }
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
oracle::occi::Statement * m_writeStmt
Definition: IDataItem.h:23
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
oracle::occi::Statement * m_readStmt
Definition: IDataItem.h:24
FEConfigOddWeightModeDat::~FEConfigOddWeightModeDat ( )
override

Definition at line 38 of file FEConfigOddWeightModeDat.cc.

38 {}

Member Function Documentation

void FEConfigOddWeightModeDat::fetchData ( std::map< EcalLogicID, FEConfigOddWeightModeDat > *  fillMap,
FEConfigOddWeightInfo iconf 
)
privatenoexcept

Definition at line 98 of file FEConfigOddWeightModeDat.cc.

References dat, alignCSCRings::e, Exception, AlCaHLTBitMon_ParallelJobs::p, setFenixPar1(), setFenixPar10(), setFenixPar11(), setFenixPar12(), setFenixPar13(), setFenixPar14(), setFenixPar15(), setFenixPar16(), setFenixPar17(), setFenixPar18(), setFenixPar2(), setFenixPar3(), setFenixPar4(), setFenixPar5(), setFenixPar6(), setFenixPar7(), setFenixPar8(), and setFenixPar9().

99  {
100  this->checkConnection();
101  fillMap->clear();
102 
103  iconf->setConnection(m_env, m_conn);
104  int iconfID = iconf->fetchID();
105  if (!iconfID) {
106  throw(std::runtime_error("FEConfigOddWeightModeDat::fetchData: ICONF not in DB"));
107  return;
108  }
109 
110  try {
111  m_readStmt->setSQL(
112  "SELECT enableEBOddFilter, enableEEOddFilter, enableEBOddPeakFinder,enableEEOddPeakFinder, "
113  "disableEBEvenPeakFinder, DISABLEEEEVENPEAKFINDER, fenixEBStripOutput, fenixEBStripOutput, "
114  "FenixEBStripInfoBit2, fenixEEStripInfobit2, EBfenixTcpOutput, EBfenixTCPInfobit1,EEFENIXTCPOUTPUT, "
115  "EEFENIXTCPINFOBIT1 ,fenixpar15, fenixpar16, fenixpar17, fenixpar18 "
116  "FROM " +
117  getTable() +
118  " d "
119  "WHERE wei2_conf_id = :wei2_conf_id ");
120  m_readStmt->setInt(1, iconfID);
121  ResultSet* rset = m_readStmt->executeQuery();
122 
123  std::pair<EcalLogicID, FEConfigOddWeightModeDat> p;
125  int ig = -1;
126  while (rset->next()) {
127  ig++; // we create a dummy logic_id
128  p.first = EcalLogicID("Group_id", // name
129  ig); // logic_id
130 
131  dat.setFenixPar1(rset->getInt(1));
132  dat.setFenixPar2(rset->getInt(2));
133  dat.setFenixPar3(rset->getInt(3));
134  dat.setFenixPar4(rset->getInt(4));
135  dat.setFenixPar5(rset->getInt(5));
136  dat.setFenixPar6(rset->getInt(6));
137  dat.setFenixPar7(rset->getInt(7));
138  dat.setFenixPar8(rset->getInt(8));
139  dat.setFenixPar9(rset->getInt(9));
140  dat.setFenixPar10(rset->getInt(10));
141  dat.setFenixPar11(rset->getInt(11));
142  dat.setFenixPar12(rset->getInt(12));
143  dat.setFenixPar13(rset->getInt(13));
144  dat.setFenixPar14(rset->getInt(14));
145  dat.setFenixPar15(rset->getInt(15));
146  dat.setFenixPar16(rset->getInt(16));
147  dat.setFenixPar17(rset->getInt(17));
148  dat.setFenixPar18(rset->getInt(18));
149 
150  p.second = dat;
151  fillMap->insert(p);
152  }
153  } catch (SQLException& e) {
154  throw cms::Exception("SQLException") << "FEConfigOddWeightModeDat::fetchData: " << e.getMessage();
155  }
156 }
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
std::string getTable() override
int fetchID() noexcept(false)
oracle::occi::Statement * m_readStmt
Definition: IDataItem.h:24
static std::vector< std::string > checklist dat
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
Definition: IDBObject.h:23
float FEConfigOddWeightModeDat::getDisableEBEvenPeakFinder ( ) const
inline
float FEConfigOddWeightModeDat::getDisableEEEvenPeakFinder ( ) const
inline
float FEConfigOddWeightModeDat::getEnableEBOddFilter ( ) const
inline
float FEConfigOddWeightModeDat::getEnableEBOddPeakFinder ( ) const
inline
float FEConfigOddWeightModeDat::getEnableEEOddFilter ( ) const
inline
float FEConfigOddWeightModeDat::getEnableEEOddPeakFinder ( ) const
inline
float FEConfigOddWeightModeDat::getFenixEBStripInfobit2 ( ) const
inline
float FEConfigOddWeightModeDat::getFenixEBStripOutput ( ) const
inline
float FEConfigOddWeightModeDat::getFenixEBTcpInfobit1 ( ) const
inline
float FEConfigOddWeightModeDat::getFenixEBTcpOutput ( ) const
inline
float FEConfigOddWeightModeDat::getFenixEEStripInfobit2 ( ) const
inline
float FEConfigOddWeightModeDat::getFenixEEStripOutput ( ) const
inline
float FEConfigOddWeightModeDat::getFenixEETcpInfobit1 ( ) const
inline
float FEConfigOddWeightModeDat::getFenixEETcpOutput ( ) const
inline
float FEConfigOddWeightModeDat::getFenixPar1 ( ) const
inline

Definition at line 58 of file FEConfigOddWeightModeDat.h.

References m_en_EB_flt.

float FEConfigOddWeightModeDat::getFenixPar10 ( ) const
inline

Definition at line 81 of file FEConfigOddWeightModeDat.h.

References m_fe_EE_strib2.

float FEConfigOddWeightModeDat::getFenixPar11 ( ) const
inline

Definition at line 84 of file FEConfigOddWeightModeDat.h.

References m_fe_EB_tcpout.

float FEConfigOddWeightModeDat::getFenixPar12 ( ) const
inline

Definition at line 86 of file FEConfigOddWeightModeDat.h.

References m_fe_EB_tcpib1.

float FEConfigOddWeightModeDat::getFenixPar13 ( ) const
inline

Definition at line 89 of file FEConfigOddWeightModeDat.h.

References m_fe_EE_tcpout.

float FEConfigOddWeightModeDat::getFenixPar14 ( ) const
inline

Definition at line 91 of file FEConfigOddWeightModeDat.h.

References m_fe_EE_tcpib1.

float FEConfigOddWeightModeDat::getFenixPar15 ( ) const
inline

Definition at line 96 of file FEConfigOddWeightModeDat.h.

References m_fe_par15.

float FEConfigOddWeightModeDat::getFenixPar16 ( ) const
inline

Definition at line 98 of file FEConfigOddWeightModeDat.h.

References m_fe_par16.

float FEConfigOddWeightModeDat::getFenixPar17 ( ) const
inline

Definition at line 100 of file FEConfigOddWeightModeDat.h.

References m_fe_par17.

float FEConfigOddWeightModeDat::getFenixPar18 ( ) const
inline

Definition at line 102 of file FEConfigOddWeightModeDat.h.

References m_fe_par18.

float FEConfigOddWeightModeDat::getFenixPar2 ( ) const
inline

Definition at line 60 of file FEConfigOddWeightModeDat.h.

References m_en_EE_flt.

float FEConfigOddWeightModeDat::getFenixPar3 ( ) const
inline

Definition at line 63 of file FEConfigOddWeightModeDat.h.

References m_en_EB_pf.

float FEConfigOddWeightModeDat::getFenixPar4 ( ) const
inline

Definition at line 65 of file FEConfigOddWeightModeDat.h.

References m_en_EE_pf.

float FEConfigOddWeightModeDat::getFenixPar5 ( ) const
inline

Definition at line 68 of file FEConfigOddWeightModeDat.h.

References m_dis_EB_even_pf.

float FEConfigOddWeightModeDat::getFenixPar6 ( ) const
inline

Definition at line 71 of file FEConfigOddWeightModeDat.h.

References m_dis_EE_even_pf.

float FEConfigOddWeightModeDat::getFenixPar7 ( ) const
inline

Definition at line 74 of file FEConfigOddWeightModeDat.h.

References m_fe_EB_strout.

float FEConfigOddWeightModeDat::getFenixPar8 ( ) const
inline

Definition at line 76 of file FEConfigOddWeightModeDat.h.

References m_fe_EE_strout.

float FEConfigOddWeightModeDat::getFenixPar9 ( ) const
inline

Definition at line 79 of file FEConfigOddWeightModeDat.h.

References m_fe_EB_strib2.

std::string FEConfigOddWeightModeDat::getTable ( )
inlineoverridevirtual

Implements IDataItem.

Definition at line 18 of file FEConfigOddWeightModeDat.h.

18 { return "FE_WEIGHT2_MODE_DAT"; }
void FEConfigOddWeightModeDat::prepareWrite ( )
overrideprivatevirtualnoexcept

Implements IDataItem.

Definition at line 40 of file FEConfigOddWeightModeDat.cc.

References alignCSCRings::e, and Exception.

40  {
41  this->checkConnection();
42 
43  try {
44  m_writeStmt = m_conn->createStatement();
45  m_writeStmt->setSQL(
46  "INSERT INTO " + getTable() +
47  " (wei2_conf_id, "
48  " enableEBOddFilter, enableEEOddFilter, enableEBOddPeakFinder,enableEEOddPeakFinder, disableEBEvenPeakFinder, "
49  "DISABLEEEEVENPEAKFINDER, fenixEBStripOutput, fenixEEStripOutput, FenixEBStripInfoBit2, fenixEEStripInfobit2, "
50  "EBfenixTcpOutput, EBfenixTCPInfobit1,EEFENIXTCPOUTPUT, EEFENIXTCPINFOBIT1 ,fenixpar15, fenixpar16, "
51  "fenixpar17, fenixpar18 ) "
52  "VALUES (:wei2_conf_id, "
53  " :w1, :w2, :w3, :w4, :w5, :w6, :w7, :w8, :w9, :w10, :w11, :w12, :w13, :w14, :w15 , :w16, :w17, :w18 )");
54  } catch (SQLException& e) {
55  throw cms::Exception("SQLException") << "FEConfigOddWeightModeDat::prepareWrite(): " << e.getMessage();
56  }
57 }
oracle::occi::Statement * m_writeStmt
Definition: IDataItem.h:23
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
std::string getTable() override
void FEConfigOddWeightModeDat::setDisableEBEvenPeakFinder ( int  x)
inline
void FEConfigOddWeightModeDat::setDisableEEEvenPeakFinder ( int  x)
inline
void FEConfigOddWeightModeDat::setEnableEBOddFilter ( int  x)
inline

Definition at line 20 of file FEConfigOddWeightModeDat.h.

References m_en_EB_flt, and x.

Referenced by EcalTPGParamBuilder::analyze().

void FEConfigOddWeightModeDat::setEnableEBOddPeakFinder ( int  x)
inline

Definition at line 25 of file FEConfigOddWeightModeDat.h.

References m_en_EB_pf, and x.

Referenced by EcalTPGParamBuilder::analyze().

void FEConfigOddWeightModeDat::setEnableEEOddFilter ( int  x)
inline

Definition at line 22 of file FEConfigOddWeightModeDat.h.

References m_en_EE_flt, and x.

Referenced by EcalTPGParamBuilder::analyze().

void FEConfigOddWeightModeDat::setEnableEEOddPeakFinder ( int  x)
inline

Definition at line 27 of file FEConfigOddWeightModeDat.h.

References m_en_EE_pf, and x.

Referenced by EcalTPGParamBuilder::analyze().

void FEConfigOddWeightModeDat::setFenixEBStripInfobit2 ( int  x)
inline
void FEConfigOddWeightModeDat::setFenixEBStripOutput ( int  x)
inline
void FEConfigOddWeightModeDat::setFenixEBTcpInfoBit1 ( int  x)
inline
void FEConfigOddWeightModeDat::setFenixEBTcpOutput ( int  x)
inline
void FEConfigOddWeightModeDat::setFenixEEStripInfobit2 ( int  x)
inline
void FEConfigOddWeightModeDat::setFenixEEStripOutput ( int  x)
inline
void FEConfigOddWeightModeDat::setFenixEETcpInfoBit1 ( int  x)
inline
void FEConfigOddWeightModeDat::setFenixEETcpOutput ( int  x)
inline
void FEConfigOddWeightModeDat::setFenixPar1 ( int  x)
inline

Definition at line 57 of file FEConfigOddWeightModeDat.h.

References m_en_EB_flt, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar10 ( int  x)
inline

Definition at line 80 of file FEConfigOddWeightModeDat.h.

References m_fe_EE_strib2, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar11 ( int  x)
inline

Definition at line 83 of file FEConfigOddWeightModeDat.h.

References m_fe_EB_tcpout, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar12 ( int  x)
inline

Definition at line 85 of file FEConfigOddWeightModeDat.h.

References m_fe_EB_tcpib1, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar13 ( int  x)
inline

Definition at line 88 of file FEConfigOddWeightModeDat.h.

References m_fe_EE_tcpout, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar14 ( int  x)
inline

Definition at line 90 of file FEConfigOddWeightModeDat.h.

References m_fe_EE_tcpib1, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar15 ( int  x)
inline

Definition at line 95 of file FEConfigOddWeightModeDat.h.

References m_fe_par15, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar16 ( int  x)
inline

Definition at line 97 of file FEConfigOddWeightModeDat.h.

References m_fe_par16, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar17 ( int  x)
inline

Definition at line 99 of file FEConfigOddWeightModeDat.h.

References m_fe_par17, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar18 ( int  x)
inline

Definition at line 101 of file FEConfigOddWeightModeDat.h.

References m_fe_par18, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar2 ( int  x)
inline

Definition at line 59 of file FEConfigOddWeightModeDat.h.

References m_en_EE_flt, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar3 ( int  x)
inline

Definition at line 62 of file FEConfigOddWeightModeDat.h.

References m_en_EB_pf, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar4 ( int  x)
inline

Definition at line 64 of file FEConfigOddWeightModeDat.h.

References m_en_EE_pf, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar5 ( int  x)
inline

Definition at line 67 of file FEConfigOddWeightModeDat.h.

References m_dis_EB_even_pf, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar6 ( int  x)
inline

Definition at line 70 of file FEConfigOddWeightModeDat.h.

References m_dis_EE_even_pf, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar7 ( int  x)
inline

Definition at line 73 of file FEConfigOddWeightModeDat.h.

References m_fe_EB_strout, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar8 ( int  x)
inline

Definition at line 75 of file FEConfigOddWeightModeDat.h.

References m_fe_EE_strout, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::setFenixPar9 ( int  x)
inline

Definition at line 78 of file FEConfigOddWeightModeDat.h.

References m_fe_EB_strib2, and x.

Referenced by fetchData().

void FEConfigOddWeightModeDat::writeArrayDB ( const std::map< EcalLogicID, FEConfigOddWeightModeDat > *  data,
FEConfigOddWeightInfo iconf 
)
privatenoexcept

Definition at line 158 of file FEConfigOddWeightModeDat.cc.

References data, and AlCaHLTBitMon_ParallelJobs::p.

159  {
160  const EcalLogicID* channel;
161  const FEConfigOddWeightModeDat* dataitem;
162 
163  typedef map<EcalLogicID, FEConfigOddWeightModeDat>::const_iterator CI;
164  for (CI p = data->begin(); p != data->end(); ++p) {
165  channel = &(p->first);
166  dataitem = &(p->second);
167  writeDB(channel, dataitem, iconf);
168  }
169 }
void writeDB(const EcalLogicID *ecid, const FEConfigOddWeightModeDat *item, FEConfigOddWeightInfo *iconf) noexcept(false)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void FEConfigOddWeightModeDat::writeDB ( const EcalLogicID ecid,
const FEConfigOddWeightModeDat item,
FEConfigOddWeightInfo iconf 
)
privatenoexcept

Definition at line 59 of file FEConfigOddWeightModeDat.cc.

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

61  {
62  this->checkConnection();
63  this->checkPrepare();
64 
65  int iconfID = iconf->fetchID();
66  if (!iconfID) {
67  throw(std::runtime_error("FEConfigOddWeightModeDat::writeDB: ICONF not in DB"));
68  }
69 
70  try {
71  m_writeStmt->setInt(1, iconfID);
72 
73  m_writeStmt->setInt(2, item->getFenixPar1());
74  m_writeStmt->setInt(3, item->getFenixPar2());
75  m_writeStmt->setInt(4, item->getFenixPar3());
76  m_writeStmt->setInt(5, item->getFenixPar4());
77  m_writeStmt->setInt(6, item->getFenixPar5());
78  m_writeStmt->setInt(7, item->getFenixPar6());
79  m_writeStmt->setInt(8, item->getFenixPar7());
80  m_writeStmt->setInt(9, item->getFenixPar8());
81  m_writeStmt->setInt(10, item->getFenixPar9());
82  m_writeStmt->setInt(11, item->getFenixPar10());
83  m_writeStmt->setInt(12, item->getFenixPar11());
84  m_writeStmt->setInt(13, item->getFenixPar12());
85  m_writeStmt->setInt(14, item->getFenixPar13());
86  m_writeStmt->setInt(15, item->getFenixPar14());
87  m_writeStmt->setInt(16, item->getFenixPar15());
88  m_writeStmt->setInt(17, item->getFenixPar16());
89  m_writeStmt->setInt(18, item->getFenixPar17());
90  m_writeStmt->setInt(19, item->getFenixPar18());
91 
92  m_writeStmt->executeUpdate();
93  } catch (SQLException& e) {
94  throw cms::Exception("SQLException") << "FEConfigOddWeightModeDat::writeDB(): " << e.getMessage();
95  }
96 }
oracle::occi::Statement * m_writeStmt
Definition: IDataItem.h:23
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
void checkPrepare() noexcept(false)
Definition: IDataItem.h:26
int fetchID() noexcept(false)

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 13 of file FEConfigOddWeightModeDat.h.

Member Data Documentation

int FEConfigOddWeightModeDat::m_dis_EB_even_pf
private
int FEConfigOddWeightModeDat::m_dis_EE_even_pf
private
int FEConfigOddWeightModeDat::m_en_EB_flt
private
int FEConfigOddWeightModeDat::m_en_EB_pf
private
int FEConfigOddWeightModeDat::m_en_EE_flt
private
int FEConfigOddWeightModeDat::m_en_EE_pf
private
int FEConfigOddWeightModeDat::m_fe_EB_strib2
private
int FEConfigOddWeightModeDat::m_fe_EB_strout
private
int FEConfigOddWeightModeDat::m_fe_EB_tcpib1
private
int FEConfigOddWeightModeDat::m_fe_EB_tcpout
private
int FEConfigOddWeightModeDat::m_fe_EE_strib2
private
int FEConfigOddWeightModeDat::m_fe_EE_strout
private
int FEConfigOddWeightModeDat::m_fe_EE_tcpib1
private
int FEConfigOddWeightModeDat::m_fe_EE_tcpout
private
int FEConfigOddWeightModeDat::m_fe_par15
private

Definition at line 133 of file FEConfigOddWeightModeDat.h.

Referenced by getFenixPar15(), and setFenixPar15().

int FEConfigOddWeightModeDat::m_fe_par16
private

Definition at line 134 of file FEConfigOddWeightModeDat.h.

Referenced by getFenixPar16(), and setFenixPar16().

int FEConfigOddWeightModeDat::m_fe_par17
private

Definition at line 135 of file FEConfigOddWeightModeDat.h.

Referenced by getFenixPar17(), and setFenixPar17().

int FEConfigOddWeightModeDat::m_fe_par18
private

Definition at line 136 of file FEConfigOddWeightModeDat.h.

Referenced by getFenixPar18(), and setFenixPar18().