CMS 3D CMS Logo

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 const int 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::FEConfigOddWeightModeDat ( )

Definition at line 11 of file FEConfigOddWeightModeDat.cc.

11  {
12  m_env = nullptr;
13  m_conn = nullptr;
14  m_writeStmt = nullptr;
15  m_readStmt = nullptr;
16 
17  m_en_EB_flt = 0;
18  m_en_EE_flt = 0;
19  m_en_EB_pf = 0;
20  m_en_EE_pf = 0;
21  m_dis_EB_even_pf = 0;
22  m_dis_EE_even_pf = 0;
23  m_fe_EB_strout = 0;
24  m_fe_EE_strout = 0;
25  m_fe_EB_strib2 = 0;
26  m_fe_EE_strib2 = 0;
27  m_fe_EB_tcpout = 0;
28  m_fe_EB_tcpib1 = 0;
29  m_fe_EE_tcpout = 0;
30  m_fe_EE_tcpib1 = 0;
31  m_fe_par15 = 0;
32  m_fe_par16 = 0;
33  m_fe_par17 = 0;
34  m_fe_par18 = 0;
35 }

◆ ~FEConfigOddWeightModeDat()

FEConfigOddWeightModeDat::~FEConfigOddWeightModeDat ( )
override

Definition at line 37 of file FEConfigOddWeightModeDat.cc.

37 {}

Member Function Documentation

◆ fetchData()

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

Definition at line 97 of file FEConfigOddWeightModeDat.cc.

98  {
99  this->checkConnection();
100  fillMap->clear();
101 
102  iconf->setConnection(m_env, m_conn);
103  int iconfID = iconf->fetchID();
104  if (!iconfID) {
105  throw(std::runtime_error("FEConfigOddWeightModeDat::fetchData: ICONF not in DB"));
106  return;
107  }
108 
109  try {
110  m_readStmt->setSQL(
111  "SELECT enableEBOddFilter, enableEEOddFilter, enableEBOddPeakFinder,enableEEOddPeakFinder, "
112  "disableEBEvenPeakFinder, DISABLEEEEVENPEAKFINDER, fenixEBStripOutput, fenixEBStripOutput, "
113  "FenixEBStripInfoBit2, fenixEEStripInfobit2, EBfenixTcpOutput, EBfenixTCPInfobit1,EEFENIXTCPOUTPUT, "
114  "EEFENIXTCPINFOBIT1 ,fenixpar15, fenixpar16, fenixpar17, fenixpar18 "
115  "FROM " +
116  getTable() +
117  " d "
118  "WHERE wei2_conf_id = :wei2_conf_id ");
119  m_readStmt->setInt(1, iconfID);
120  ResultSet* rset = m_readStmt->executeQuery();
121 
122  std::pair<EcalLogicID, FEConfigOddWeightModeDat> p;
124  int ig = -1;
125  while (rset->next()) {
126  ig++; // we create a dummy logic_id
127  p.first = EcalLogicID("Group_id", // name
128  ig); // logic_id
129 
130  dat.setFenixPar1(rset->getInt(1));
131  dat.setFenixPar2(rset->getInt(2));
132  dat.setFenixPar3(rset->getInt(3));
133  dat.setFenixPar4(rset->getInt(4));
134  dat.setFenixPar5(rset->getInt(5));
135  dat.setFenixPar6(rset->getInt(6));
136  dat.setFenixPar7(rset->getInt(7));
137  dat.setFenixPar8(rset->getInt(8));
138  dat.setFenixPar9(rset->getInt(9));
139  dat.setFenixPar10(rset->getInt(10));
140  dat.setFenixPar11(rset->getInt(11));
141  dat.setFenixPar12(rset->getInt(12));
142  dat.setFenixPar13(rset->getInt(13));
143  dat.setFenixPar14(rset->getInt(14));
144  dat.setFenixPar15(rset->getInt(15));
145  dat.setFenixPar16(rset->getInt(16));
146  dat.setFenixPar17(rset->getInt(17));
147  dat.setFenixPar18(rset->getInt(18));
148 
149  p.second = dat;
150  fillMap->insert(p);
151  }
152  } catch (SQLException& e) {
153  throw(std::runtime_error("FEConfigOddWeightModeDat::fetchData: " + e.getMessage()));
154  }
155 }

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

◆ getDisableEBEvenPeakFinder()

float FEConfigOddWeightModeDat::getDisableEBEvenPeakFinder ( ) const
inline

Definition at line 31 of file FEConfigOddWeightModeDat.h.

31 { return m_dis_EB_even_pf; }

References m_dis_EB_even_pf.

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

◆ getDisableEEEvenPeakFinder()

float FEConfigOddWeightModeDat::getDisableEEEvenPeakFinder ( ) const
inline

Definition at line 33 of file FEConfigOddWeightModeDat.h.

33 { return m_dis_EE_even_pf; }

References m_dis_EE_even_pf.

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

◆ getEnableEBOddFilter()

float FEConfigOddWeightModeDat::getEnableEBOddFilter ( ) const
inline

Definition at line 21 of file FEConfigOddWeightModeDat.h.

21 { return m_en_EB_flt; }

References m_en_EB_flt.

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

◆ getEnableEBOddPeakFinder()

float FEConfigOddWeightModeDat::getEnableEBOddPeakFinder ( ) const
inline

Definition at line 26 of file FEConfigOddWeightModeDat.h.

26 { return m_en_EB_pf; }

References m_en_EB_pf.

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

◆ getEnableEEOddFilter()

float FEConfigOddWeightModeDat::getEnableEEOddFilter ( ) const
inline

Definition at line 23 of file FEConfigOddWeightModeDat.h.

23 { return m_en_EE_flt; }

References m_en_EE_flt.

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

◆ getEnableEEOddPeakFinder()

float FEConfigOddWeightModeDat::getEnableEEOddPeakFinder ( ) const
inline

Definition at line 28 of file FEConfigOddWeightModeDat.h.

28 { return m_en_EE_pf; }

References m_en_EE_pf.

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

◆ getFenixEBStripInfobit2()

float FEConfigOddWeightModeDat::getFenixEBStripInfobit2 ( ) const
inline

Definition at line 41 of file FEConfigOddWeightModeDat.h.

41 { return m_fe_EB_strib2; }

References m_fe_EB_strib2.

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

◆ getFenixEBStripOutput()

float FEConfigOddWeightModeDat::getFenixEBStripOutput ( ) const
inline

Definition at line 36 of file FEConfigOddWeightModeDat.h.

36 { return m_fe_EB_strout; }

References m_fe_EB_strout.

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

◆ getFenixEBTcpInfobit1()

float FEConfigOddWeightModeDat::getFenixEBTcpInfobit1 ( ) const
inline

Definition at line 48 of file FEConfigOddWeightModeDat.h.

48 { return m_fe_EB_tcpib1; }

References m_fe_EB_tcpib1.

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

◆ getFenixEBTcpOutput()

float FEConfigOddWeightModeDat::getFenixEBTcpOutput ( ) const
inline

Definition at line 46 of file FEConfigOddWeightModeDat.h.

46 { return m_fe_EB_tcpout; }

References m_fe_EB_tcpout.

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

◆ getFenixEEStripInfobit2()

float FEConfigOddWeightModeDat::getFenixEEStripInfobit2 ( ) const
inline

Definition at line 43 of file FEConfigOddWeightModeDat.h.

43 { return m_fe_EE_strib2; }

References m_fe_EE_strib2.

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

◆ getFenixEEStripOutput()

float FEConfigOddWeightModeDat::getFenixEEStripOutput ( ) const
inline

Definition at line 38 of file FEConfigOddWeightModeDat.h.

38 { return m_fe_EE_strout; }

References m_fe_EE_strout.

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

◆ getFenixEETcpInfobit1()

float FEConfigOddWeightModeDat::getFenixEETcpInfobit1 ( ) const
inline

Definition at line 53 of file FEConfigOddWeightModeDat.h.

53 { return m_fe_EE_tcpib1; }

References m_fe_EE_tcpib1.

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

◆ getFenixEETcpOutput()

float FEConfigOddWeightModeDat::getFenixEETcpOutput ( ) const
inline

Definition at line 51 of file FEConfigOddWeightModeDat.h.

51 { return m_fe_EE_tcpout; }

References m_fe_EE_tcpout.

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

◆ getFenixPar1()

float FEConfigOddWeightModeDat::getFenixPar1 ( ) const
inline

Definition at line 58 of file FEConfigOddWeightModeDat.h.

58 { return m_en_EB_flt; }

References m_en_EB_flt.

◆ getFenixPar10()

float FEConfigOddWeightModeDat::getFenixPar10 ( ) const
inline

Definition at line 81 of file FEConfigOddWeightModeDat.h.

81 { return m_fe_EE_strib2; }

References m_fe_EE_strib2.

◆ getFenixPar11()

float FEConfigOddWeightModeDat::getFenixPar11 ( ) const
inline

Definition at line 84 of file FEConfigOddWeightModeDat.h.

84 { return m_fe_EB_tcpout; }

References m_fe_EB_tcpout.

◆ getFenixPar12()

float FEConfigOddWeightModeDat::getFenixPar12 ( ) const
inline

Definition at line 86 of file FEConfigOddWeightModeDat.h.

86 { return m_fe_EB_tcpib1; }

References m_fe_EB_tcpib1.

◆ getFenixPar13()

float FEConfigOddWeightModeDat::getFenixPar13 ( ) const
inline

Definition at line 89 of file FEConfigOddWeightModeDat.h.

89 { return m_fe_EE_tcpout; }

References m_fe_EE_tcpout.

◆ getFenixPar14()

float FEConfigOddWeightModeDat::getFenixPar14 ( ) const
inline

Definition at line 91 of file FEConfigOddWeightModeDat.h.

91 { return m_fe_EE_tcpib1; }

References m_fe_EE_tcpib1.

◆ getFenixPar15()

float FEConfigOddWeightModeDat::getFenixPar15 ( ) const
inline

Definition at line 96 of file FEConfigOddWeightModeDat.h.

96 { return m_fe_par15; }

References m_fe_par15.

◆ getFenixPar16()

float FEConfigOddWeightModeDat::getFenixPar16 ( ) const
inline

Definition at line 98 of file FEConfigOddWeightModeDat.h.

98 { return m_fe_par16; }

References m_fe_par16.

◆ getFenixPar17()

float FEConfigOddWeightModeDat::getFenixPar17 ( ) const
inline

Definition at line 100 of file FEConfigOddWeightModeDat.h.

100 { return m_fe_par17; }

References m_fe_par17.

◆ getFenixPar18()

float FEConfigOddWeightModeDat::getFenixPar18 ( ) const
inline

Definition at line 102 of file FEConfigOddWeightModeDat.h.

102 { return m_fe_par18; }

References m_fe_par18.

◆ getFenixPar2()

float FEConfigOddWeightModeDat::getFenixPar2 ( ) const
inline

Definition at line 60 of file FEConfigOddWeightModeDat.h.

60 { return m_en_EE_flt; }

References m_en_EE_flt.

◆ getFenixPar3()

float FEConfigOddWeightModeDat::getFenixPar3 ( ) const
inline

Definition at line 63 of file FEConfigOddWeightModeDat.h.

63 { return m_en_EB_pf; }

References m_en_EB_pf.

◆ getFenixPar4()

float FEConfigOddWeightModeDat::getFenixPar4 ( ) const
inline

Definition at line 65 of file FEConfigOddWeightModeDat.h.

65 { return m_en_EE_pf; }

References m_en_EE_pf.

◆ getFenixPar5()

float FEConfigOddWeightModeDat::getFenixPar5 ( ) const
inline

Definition at line 68 of file FEConfigOddWeightModeDat.h.

68 { return m_dis_EB_even_pf; }

References m_dis_EB_even_pf.

◆ getFenixPar6()

float FEConfigOddWeightModeDat::getFenixPar6 ( ) const
inline

Definition at line 71 of file FEConfigOddWeightModeDat.h.

71 { return m_dis_EE_even_pf; }

References m_dis_EE_even_pf.

◆ getFenixPar7()

float FEConfigOddWeightModeDat::getFenixPar7 ( ) const
inline

Definition at line 74 of file FEConfigOddWeightModeDat.h.

74 { return m_fe_EB_strout; }

References m_fe_EB_strout.

◆ getFenixPar8()

float FEConfigOddWeightModeDat::getFenixPar8 ( ) const
inline

Definition at line 76 of file FEConfigOddWeightModeDat.h.

76 { return m_fe_EE_strout; }

References m_fe_EE_strout.

◆ getFenixPar9()

float FEConfigOddWeightModeDat::getFenixPar9 ( ) const
inline

Definition at line 79 of file FEConfigOddWeightModeDat.h.

79 { return m_fe_EB_strib2; }

References m_fe_EB_strib2.

◆ getTable()

std::string FEConfigOddWeightModeDat::getTable ( )
inlineoverridevirtual

Implements IDataItem.

Definition at line 18 of file FEConfigOddWeightModeDat.h.

18 { return "FE_WEIGHT2_MODE_DAT"; }

◆ prepareWrite()

void FEConfigOddWeightModeDat::prepareWrite ( )
overrideprivatevirtualnoexcept

Implements IDataItem.

Definition at line 39 of file FEConfigOddWeightModeDat.cc.

39  {
40  this->checkConnection();
41 
42  try {
43  m_writeStmt = m_conn->createStatement();
44  m_writeStmt->setSQL(
45  "INSERT INTO " + getTable() +
46  " (wei2_conf_id, "
47  " enableEBOddFilter, enableEEOddFilter, enableEBOddPeakFinder,enableEEOddPeakFinder, disableEBEvenPeakFinder, "
48  "DISABLEEEEVENPEAKFINDER, fenixEBStripOutput, fenixEEStripOutput, FenixEBStripInfoBit2, fenixEEStripInfobit2, "
49  "EBfenixTcpOutput, EBfenixTCPInfobit1,EEFENIXTCPOUTPUT, EEFENIXTCPINFOBIT1 ,fenixpar15, fenixpar16, "
50  "fenixpar17, fenixpar18 ) "
51  "VALUES (:wei2_conf_id, "
52  " :w1, :w2, :w3, :w4, :w5, :w6, :w7, :w8, :w9, :w10, :w11, :w12, :w13, :w14, :w15 , :w16, :w17, :w18 )");
53  } catch (SQLException& e) {
54  throw(std::runtime_error("FEConfigOddWeightModeDat::prepareWrite(): " + e.getMessage()));
55  }
56 }

References MillePedeFileConverter_cfg::e.

◆ setDisableEBEvenPeakFinder()

void FEConfigOddWeightModeDat::setDisableEBEvenPeakFinder ( int  x)
inline

Definition at line 30 of file FEConfigOddWeightModeDat.h.

30 { m_dis_EB_even_pf = x; }

References m_dis_EB_even_pf, and x.

◆ setDisableEEEvenPeakFinder()

void FEConfigOddWeightModeDat::setDisableEEEvenPeakFinder ( int  x)
inline

Definition at line 32 of file FEConfigOddWeightModeDat.h.

32 { m_dis_EE_even_pf = x; }

References m_dis_EE_even_pf, and x.

◆ setEnableEBOddFilter()

void FEConfigOddWeightModeDat::setEnableEBOddFilter ( int  x)
inline

Definition at line 20 of file FEConfigOddWeightModeDat.h.

20 { m_en_EB_flt = x; }

References m_en_EB_flt, and x.

◆ setEnableEBOddPeakFinder()

void FEConfigOddWeightModeDat::setEnableEBOddPeakFinder ( int  x)
inline

Definition at line 25 of file FEConfigOddWeightModeDat.h.

25 { m_en_EB_pf = x; }

References m_en_EB_pf, and x.

◆ setEnableEEOddFilter()

void FEConfigOddWeightModeDat::setEnableEEOddFilter ( int  x)
inline

Definition at line 22 of file FEConfigOddWeightModeDat.h.

22 { m_en_EE_flt = x; }

References m_en_EE_flt, and x.

◆ setEnableEEOddPeakFinder()

void FEConfigOddWeightModeDat::setEnableEEOddPeakFinder ( int  x)
inline

Definition at line 27 of file FEConfigOddWeightModeDat.h.

27 { m_en_EE_pf = x; }

References m_en_EE_pf, and x.

◆ setFenixEBStripInfobit2()

void FEConfigOddWeightModeDat::setFenixEBStripInfobit2 ( int  x)
inline

Definition at line 40 of file FEConfigOddWeightModeDat.h.

40 { m_fe_EB_strib2 = x; }

References m_fe_EB_strib2, and x.

◆ setFenixEBStripOutput()

void FEConfigOddWeightModeDat::setFenixEBStripOutput ( int  x)
inline

Definition at line 35 of file FEConfigOddWeightModeDat.h.

35 { m_fe_EB_strout = x; }

References m_fe_EB_strout, and x.

◆ setFenixEBTcpInfoBit1()

void FEConfigOddWeightModeDat::setFenixEBTcpInfoBit1 ( int  x)
inline

Definition at line 47 of file FEConfigOddWeightModeDat.h.

47 { m_fe_EB_tcpib1 = x; }

References m_fe_EB_tcpib1, and x.

◆ setFenixEBTcpOutput()

void FEConfigOddWeightModeDat::setFenixEBTcpOutput ( int  x)
inline

Definition at line 45 of file FEConfigOddWeightModeDat.h.

45 { m_fe_EB_tcpout = x; }

References m_fe_EB_tcpout, and x.

◆ setFenixEEStripInfobit2()

void FEConfigOddWeightModeDat::setFenixEEStripInfobit2 ( int  x)
inline

Definition at line 42 of file FEConfigOddWeightModeDat.h.

42 { m_fe_EE_strib2 = x; }

References m_fe_EE_strib2, and x.

◆ setFenixEEStripOutput()

void FEConfigOddWeightModeDat::setFenixEEStripOutput ( int  x)
inline

Definition at line 37 of file FEConfigOddWeightModeDat.h.

37 { m_fe_EE_strout = x; }

References m_fe_EE_strout, and x.

◆ setFenixEETcpInfoBit1()

void FEConfigOddWeightModeDat::setFenixEETcpInfoBit1 ( int  x)
inline

Definition at line 52 of file FEConfigOddWeightModeDat.h.

52 { m_fe_EE_tcpib1 = x; }

References m_fe_EE_tcpib1, and x.

◆ setFenixEETcpOutput()

void FEConfigOddWeightModeDat::setFenixEETcpOutput ( int  x)
inline

Definition at line 50 of file FEConfigOddWeightModeDat.h.

50 { m_fe_EE_tcpout = x; }

References m_fe_EE_tcpout, and x.

◆ setFenixPar1()

void FEConfigOddWeightModeDat::setFenixPar1 ( int  x)
inline

Definition at line 57 of file FEConfigOddWeightModeDat.h.

57 { m_en_EB_flt = x; }

References m_en_EB_flt, and x.

Referenced by fetchData().

◆ setFenixPar10()

void FEConfigOddWeightModeDat::setFenixPar10 ( int  x)
inline

Definition at line 80 of file FEConfigOddWeightModeDat.h.

80 { m_fe_EE_strib2 = x; }

References m_fe_EE_strib2, and x.

Referenced by fetchData().

◆ setFenixPar11()

void FEConfigOddWeightModeDat::setFenixPar11 ( int  x)
inline

Definition at line 83 of file FEConfigOddWeightModeDat.h.

83 { m_fe_EB_tcpout = x; }

References m_fe_EB_tcpout, and x.

Referenced by fetchData().

◆ setFenixPar12()

void FEConfigOddWeightModeDat::setFenixPar12 ( int  x)
inline

Definition at line 85 of file FEConfigOddWeightModeDat.h.

85 { m_fe_EB_tcpib1 = x; }

References m_fe_EB_tcpib1, and x.

Referenced by fetchData().

◆ setFenixPar13()

void FEConfigOddWeightModeDat::setFenixPar13 ( int  x)
inline

Definition at line 88 of file FEConfigOddWeightModeDat.h.

88 { m_fe_EE_tcpout = x; }

References m_fe_EE_tcpout, and x.

Referenced by fetchData().

◆ setFenixPar14()

void FEConfigOddWeightModeDat::setFenixPar14 ( int  x)
inline

Definition at line 90 of file FEConfigOddWeightModeDat.h.

90 { m_fe_EE_tcpib1 = x; }

References m_fe_EE_tcpib1, and x.

Referenced by fetchData().

◆ setFenixPar15()

void FEConfigOddWeightModeDat::setFenixPar15 ( int  x)
inline

Definition at line 95 of file FEConfigOddWeightModeDat.h.

95 { m_fe_par15 = x; }

References m_fe_par15, and x.

Referenced by fetchData().

◆ setFenixPar16()

void FEConfigOddWeightModeDat::setFenixPar16 ( int  x)
inline

Definition at line 97 of file FEConfigOddWeightModeDat.h.

97 { m_fe_par16 = x; }

References m_fe_par16, and x.

Referenced by fetchData().

◆ setFenixPar17()

void FEConfigOddWeightModeDat::setFenixPar17 ( int  x)
inline

Definition at line 99 of file FEConfigOddWeightModeDat.h.

99 { m_fe_par17 = x; }

References m_fe_par17, and x.

Referenced by fetchData().

◆ setFenixPar18()

void FEConfigOddWeightModeDat::setFenixPar18 ( int  x)
inline

Definition at line 101 of file FEConfigOddWeightModeDat.h.

101 { m_fe_par18 = x; }

References m_fe_par18, and x.

Referenced by fetchData().

◆ setFenixPar2()

void FEConfigOddWeightModeDat::setFenixPar2 ( int  x)
inline

Definition at line 59 of file FEConfigOddWeightModeDat.h.

59 { m_en_EE_flt = x; }

References m_en_EE_flt, and x.

Referenced by fetchData().

◆ setFenixPar3()

void FEConfigOddWeightModeDat::setFenixPar3 ( int  x)
inline

Definition at line 62 of file FEConfigOddWeightModeDat.h.

62 { m_en_EB_pf = x; }

References m_en_EB_pf, and x.

Referenced by fetchData().

◆ setFenixPar4()

void FEConfigOddWeightModeDat::setFenixPar4 ( int  x)
inline

Definition at line 64 of file FEConfigOddWeightModeDat.h.

64 { m_en_EE_pf = x; }

References m_en_EE_pf, and x.

Referenced by fetchData().

◆ setFenixPar5()

void FEConfigOddWeightModeDat::setFenixPar5 ( int  x)
inline

Definition at line 67 of file FEConfigOddWeightModeDat.h.

67 { m_dis_EB_even_pf = x; }

References m_dis_EB_even_pf, and x.

Referenced by fetchData().

◆ setFenixPar6()

void FEConfigOddWeightModeDat::setFenixPar6 ( int  x)
inline

Definition at line 70 of file FEConfigOddWeightModeDat.h.

70 { m_dis_EE_even_pf = x; }

References m_dis_EE_even_pf, and x.

Referenced by fetchData().

◆ setFenixPar7()

void FEConfigOddWeightModeDat::setFenixPar7 ( int  x)
inline

Definition at line 73 of file FEConfigOddWeightModeDat.h.

73 { m_fe_EB_strout = x; }

References m_fe_EB_strout, and x.

Referenced by fetchData().

◆ setFenixPar8()

void FEConfigOddWeightModeDat::setFenixPar8 ( int  x)
inline

Definition at line 75 of file FEConfigOddWeightModeDat.h.

75 { m_fe_EE_strout = x; }

References m_fe_EE_strout, and x.

Referenced by fetchData().

◆ setFenixPar9()

void FEConfigOddWeightModeDat::setFenixPar9 ( int  x)
inline

Definition at line 78 of file FEConfigOddWeightModeDat.h.

78 { m_fe_EB_strib2 = x; }

References m_fe_EB_strib2, and x.

Referenced by fetchData().

◆ writeArrayDB()

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

Definition at line 157 of file FEConfigOddWeightModeDat.cc.

158  {
159  const EcalLogicID* channel;
160  const FEConfigOddWeightModeDat* dataitem;
161 
162  typedef map<EcalLogicID, FEConfigOddWeightModeDat>::const_iterator CI;
163  for (CI p = data->begin(); p != data->end(); ++p) {
164  channel = &(p->first);
165  dataitem = &(p->second);
166  writeDB(channel, dataitem, iconf);
167  }
168 }

References data, AlCaHLTBitMon_ParallelJobs::p, and dtFineDelayCorr_cfi::writeDB.

◆ writeDB()

void FEConfigOddWeightModeDat::writeDB ( const EcalLogicID ecid,
const FEConfigOddWeightModeDat item,
FEConfigOddWeightInfo iconf 
)
privatenoexcept

Definition at line 58 of file FEConfigOddWeightModeDat.cc.

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

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

Friends And Related Function Documentation

◆ EcalCondDBInterface

friend class EcalCondDBInterface
friend

Definition at line 13 of file FEConfigOddWeightModeDat.h.

Member Data Documentation

◆ m_dis_EB_even_pf

int FEConfigOddWeightModeDat::m_dis_EB_even_pf
private

◆ m_dis_EE_even_pf

int FEConfigOddWeightModeDat::m_dis_EE_even_pf
private

◆ m_en_EB_flt

int FEConfigOddWeightModeDat::m_en_EB_flt
private

◆ m_en_EB_pf

int FEConfigOddWeightModeDat::m_en_EB_pf
private

◆ m_en_EE_flt

int FEConfigOddWeightModeDat::m_en_EE_flt
private

◆ m_en_EE_pf

int FEConfigOddWeightModeDat::m_en_EE_pf
private

◆ m_fe_EB_strib2

int FEConfigOddWeightModeDat::m_fe_EB_strib2
private

◆ m_fe_EB_strout

int FEConfigOddWeightModeDat::m_fe_EB_strout
private

◆ m_fe_EB_tcpib1

int FEConfigOddWeightModeDat::m_fe_EB_tcpib1
private

◆ m_fe_EB_tcpout

int FEConfigOddWeightModeDat::m_fe_EB_tcpout
private

◆ m_fe_EE_strib2

int FEConfigOddWeightModeDat::m_fe_EE_strib2
private

◆ m_fe_EE_strout

int FEConfigOddWeightModeDat::m_fe_EE_strout
private

◆ m_fe_EE_tcpib1

int FEConfigOddWeightModeDat::m_fe_EE_tcpib1
private

◆ m_fe_EE_tcpout

int FEConfigOddWeightModeDat::m_fe_EE_tcpout
private

◆ m_fe_par15

int FEConfigOddWeightModeDat::m_fe_par15
private

Definition at line 133 of file FEConfigOddWeightModeDat.h.

Referenced by getFenixPar15(), and setFenixPar15().

◆ m_fe_par16

int FEConfigOddWeightModeDat::m_fe_par16
private

Definition at line 134 of file FEConfigOddWeightModeDat.h.

Referenced by getFenixPar16(), and setFenixPar16().

◆ m_fe_par17

int FEConfigOddWeightModeDat::m_fe_par17
private

Definition at line 135 of file FEConfigOddWeightModeDat.h.

Referenced by getFenixPar17(), and setFenixPar17().

◆ m_fe_par18

int FEConfigOddWeightModeDat::m_fe_par18
private

Definition at line 136 of file FEConfigOddWeightModeDat.h.

Referenced by getFenixPar18(), and setFenixPar18().

FEConfigOddWeightModeDat::m_en_EB_flt
int m_en_EB_flt
Definition: FEConfigOddWeightModeDat.h:119
FEConfigOddWeightModeDat::setFenixPar4
void setFenixPar4(int x)
Definition: FEConfigOddWeightModeDat.h:64
FEConfigOddWeightModeDat::m_fe_EE_strib2
int m_fe_EE_strib2
Definition: FEConfigOddWeightModeDat.h:128
FEConfigOddWeightModeDat::m_dis_EE_even_pf
int m_dis_EE_even_pf
Definition: FEConfigOddWeightModeDat.h:124
FEConfigOddWeightModeDat::m_fe_EB_tcpout
int m_fe_EB_tcpout
Definition: FEConfigOddWeightModeDat.h:129
FEConfigOddWeightModeDat::setFenixPar16
void setFenixPar16(int x)
Definition: FEConfigOddWeightModeDat.h:97
FEConfigOddWeightInfo::fetchID
int fetchID() noexcept(false)
Definition: FEConfigOddWeightInfo.cc:156
IDataItem::checkPrepare
void checkPrepare() noexcept(false)
Definition: IDataItem.h:26
DDAxes::x
FEConfigOddWeightModeDat::m_fe_EE_tcpib1
int m_fe_EE_tcpib1
Definition: FEConfigOddWeightModeDat.h:132
IDataItem::m_readStmt
oracle::occi::Statement * m_readStmt
Definition: IDataItem.h:24
FEConfigOddWeightModeDat::m_fe_EB_strib2
int m_fe_EB_strib2
Definition: FEConfigOddWeightModeDat.h:127
FEConfigOddWeightModeDat::setFenixPar11
void setFenixPar11(int x)
Definition: FEConfigOddWeightModeDat.h:83
FEConfigOddWeightModeDat::m_dis_EB_even_pf
int m_dis_EB_even_pf
Definition: FEConfigOddWeightModeDat.h:123
FEConfigOddWeightModeDat::m_fe_EE_strout
int m_fe_EE_strout
Definition: FEConfigOddWeightModeDat.h:126
FEConfigOddWeightModeDat::setFenixPar3
void setFenixPar3(int x)
Definition: FEConfigOddWeightModeDat.h:62
IDataItem::m_writeStmt
oracle::occi::Statement * m_writeStmt
Definition: IDataItem.h:23
IDBObject::m_conn
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
FEConfigOddWeightModeDat::m_fe_par18
int m_fe_par18
Definition: FEConfigOddWeightModeDat.h:136
FEConfigOddWeightModeDat::setFenixPar7
void setFenixPar7(int x)
Definition: FEConfigOddWeightModeDat.h:73
EcalLogicID
Definition: EcalLogicID.h:7
FEConfigOddWeightModeDat::m_fe_par16
int m_fe_par16
Definition: FEConfigOddWeightModeDat.h:134
FEConfigOddWeightModeDat::setFenixPar5
void setFenixPar5(int x)
Definition: FEConfigOddWeightModeDat.h:67
FEConfigOddWeightModeDat::m_fe_EE_tcpout
int m_fe_EE_tcpout
Definition: FEConfigOddWeightModeDat.h:131
IDBObject::checkConnection
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
FEConfigOddWeightModeDat::m_fe_EB_strout
int m_fe_EB_strout
Definition: FEConfigOddWeightModeDat.h:125
FEConfigOddWeightModeDat::setFenixPar10
void setFenixPar10(int x)
Definition: FEConfigOddWeightModeDat.h:80
FEConfigOddWeightModeDat::setFenixPar18
void setFenixPar18(int x)
Definition: FEConfigOddWeightModeDat.h:101
FEConfigOddWeightModeDat::writeDB
void writeDB(const EcalLogicID *ecid, const FEConfigOddWeightModeDat *item, FEConfigOddWeightInfo *iconf) noexcept(false)
Definition: FEConfigOddWeightModeDat.cc:58
FEConfigOddWeightModeDat::getTable
std::string getTable() override
Definition: FEConfigOddWeightModeDat.h:18
FEConfigOddWeightModeDat::setFenixPar13
void setFenixPar13(int x)
Definition: FEConfigOddWeightModeDat.h:88
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
FEConfigOddWeightModeDat::setFenixPar15
void setFenixPar15(int x)
Definition: FEConfigOddWeightModeDat.h:95
FEConfigOddWeightModeDat::m_en_EE_pf
int m_en_EE_pf
Definition: FEConfigOddWeightModeDat.h:122
FEConfigOddWeightModeDat::m_fe_par17
int m_fe_par17
Definition: FEConfigOddWeightModeDat.h:135
FEConfigOddWeightModeDat::m_fe_par15
int m_fe_par15
Definition: FEConfigOddWeightModeDat.h:133
FEConfigOddWeightModeDat
Definition: FEConfigOddWeightModeDat.h:11
FEConfigOddWeightModeDat::setFenixPar8
void setFenixPar8(int x)
Definition: FEConfigOddWeightModeDat.h:75
IDBObject::setConnection
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
Definition: IDBObject.h:23
FEConfigOddWeightModeDat::m_en_EB_pf
int m_en_EB_pf
Definition: FEConfigOddWeightModeDat.h:121
FEConfigOddWeightModeDat::m_fe_EB_tcpib1
int m_fe_EB_tcpib1
Definition: FEConfigOddWeightModeDat.h:130
FEConfigOddWeightModeDat::setFenixPar2
void setFenixPar2(int x)
Definition: FEConfigOddWeightModeDat.h:59
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
FEConfigOddWeightModeDat::setFenixPar6
void setFenixPar6(int x)
Definition: FEConfigOddWeightModeDat.h:70
FEConfigOddWeightModeDat::setFenixPar14
void setFenixPar14(int x)
Definition: FEConfigOddWeightModeDat.h:90
IDBObject::m_env
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
FEConfigOddWeightModeDat::setFenixPar17
void setFenixPar17(int x)
Definition: FEConfigOddWeightModeDat.h:99
FEConfigOddWeightModeDat::setFenixPar12
void setFenixPar12(int x)
Definition: FEConfigOddWeightModeDat.h:85
FEConfigOddWeightModeDat::setFenixPar9
void setFenixPar9(int x)
Definition: FEConfigOddWeightModeDat.h:78
FEConfigOddWeightModeDat::m_en_EE_flt
int m_en_EE_flt
Definition: FEConfigOddWeightModeDat.h:120
FEConfigOddWeightModeDat::setFenixPar1
void setFenixPar1(int x)
Definition: FEConfigOddWeightModeDat.h:57
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37