CMS 3D CMS Logo

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

#include <EcalTPGDBApp.h>

Inheritance diagram for EcalTPGDBApp:
EcalCondDBInterface EcalDBConnection

Public Member Functions

 EcalTPGDBApp (std::string host, std::string sid, std::string user, std::string pass, int port)
 
 EcalTPGDBApp (std::string sid, std::string user, std::string pass)
 
int readFromCondDB_Pedestals (std::map< EcalLogicID, MonPedestalsDat > &pedset, int runNb)
 
void readFromConfDB_TPGPedestals (int iconf_req)
 
std::string to_string (char value[])
 
int writeToConfDB_Delay (const std::map< EcalLogicID, FEConfigTimingDat > &delaygroupset, std::string tag)
 
int writeToConfDB_Spike (const std::map< EcalLogicID, FEConfigSpikeDat > &spikegroupset, std::string tag)
 
int writeToConfDB_TPGFgr (const std::map< EcalLogicID, FEConfigFgrGroupDat > &lutgroup, const std::map< EcalLogicID, FEConfigFgrDat > &lutdat, const std::map< EcalLogicID, FEConfigFgrParamDat > &fgrparamset, const std::map< EcalLogicID, FEConfigFgrEETowerDat > &dataset3, const std::map< EcalLogicID, FEConfigFgrEEStripDat > &dataset4, int iovId, std::string tag)
 
int writeToConfDB_TPGLinearCoef (const std::map< EcalLogicID, FEConfigLinDat > &linset, const std::map< EcalLogicID, FEConfigLinParamDat > &linparamset, int iovId, std::string tag)
 
int writeToConfDB_TPGLUT (const std::map< EcalLogicID, FEConfigLUTGroupDat > &lutgroup, const std::map< EcalLogicID, FEConfigLUTDat > &lutdat, const std::map< EcalLogicID, FEConfigLUTParamDat > &lutparamset, int iovId, std::string tag)
 
int writeToConfDB_TPGMain (int ped, int lin, int lut, int fgr, int sli, int wei, int spi, int tim, int bxt, int btt, int bst, std::string tag, int ver)
 
int writeToConfDB_TPGPedestals (const std::map< EcalLogicID, FEConfigPedDat > &pedset, int iovId, std::string tag)
 
int writeToConfDB_TPGSliding (const std::map< EcalLogicID, FEConfigSlidingDat > &sliset, int iovId, std::string tag)
 
int writeToConfDB_TPGWeight (const std::map< EcalLogicID, FEConfigWeightGroupDat > &lutgroup, const std::map< EcalLogicID, FEConfigWeightDat > &lutdat, int iovId, std::string tag)
 
- Public Member Functions inherited from EcalCondDBInterface
void dummy ()
 
 EcalCondDBInterface (std::string host, std::string sid, std::string user, std::string pass, int port=1521)
 
 EcalCondDBInterface (std::string sid, std::string user, std::string pass)
 
CaliIOV fetchCaliIOV (CaliTag *tag, const Tm &evenTm) throw (std::runtime_error)
 
template<class DATT , class ICONF >
void fetchConfigDataSet (std::vector< DATT > *fillMap, ICONF *iconf) throw (std::runtime_error)
 
template<class ICONF >
void fetchConfigSet (ICONF *iconf) throw (std::runtime_error)
 
template<class DATT , class IOVT >
void fetchDataSet (std::map< EcalLogicID, DATT > *fillMap, IOVT *iov) throw (std::runtime_error)
 
template<class DATT , class IOVT >
void fetchDataSetWithMap (std::map< EcalLogicID, DATT > *fillMap, IOVT *iov, std::string mapping_name) throw (std::runtime_error)
 
template<class DATT >
void fetchDCSDataSet (std::list< std::pair< Tm, std::map< EcalLogicID, DATT > > > *fillMap, const Tm &t) throw (std::runtime_error)
 
DCSPTMTempList fetchDCSPTMTempList (const EcalLogicID &ecid) throw (std::runtime_error)
 
DCSPTMTempList fetchDCSPTMTempList (const EcalLogicID &ecid, const Tm &start, const Tm &end) throw (std::runtime_error)
 
DCUIOV fetchDCUIOV (DCUTag *tag, const Tm &evenTm) throw (std::runtime_error)
 
std::list< ODDelaysDatfetchFEDelaysForRun (RunIOV *iov) throw (std::runtime_error)
 
RunList fetchGlobalRunListByLocation (const RunTag &tag, int min_run, int max_run, const LocationDef &locDef) throw (std::runtime_error)
 
template<class ICONF >
void fetchLastConfigSet (ICONF *iconf) throw (std::runtime_error)
 
RunIOV fetchLMFLastRun () const
 
LMFRunIOV fetchLMFRunIOV (RunTag *runtag, LMFRunTag *lmftag, run_t run, subrun_t lmfrun) throw (std::runtime_error)
 
bool fetchLMFRunIOV (const LMFSeqDat &, LMFRunIOV &, int lmr, int type, int color) const
 
MonRunIOV fetchMonRunIOV (RunTag *runtag, MonRunTag *montag, run_t run, subrun_t monrun) throw (std::runtime_error)
 
MonRunList fetchMonRunList (const RunTag &tag, const MonRunTag &monruntag) throw (std::runtime_error)
 
MonRunList fetchMonRunList (const RunTag &tag, const MonRunTag &monruntag, int min_run, int max_run) throw (std::runtime_error)
 
MonRunList fetchMonRunListLastNRuns (const RunTag &tag, const MonRunTag &monruntag, int max_run, int n_runs) throw (std::runtime_error)
 
RunList fetchNonEmptyGlobalRunList (const RunTag &tag, int min_run, int max_run) throw (std::runtime_error)
 
RunList fetchNonEmptyRunList (const RunTag &tag, int min_run, int max_run) throw (std::runtime_error)
 
RunIOV fetchRunIOV (RunTag *tag, run_t run) throw (std::runtime_error)
 
RunIOV fetchRunIOV (std::string location, run_t run) throw (std::runtime_error)
 
RunIOV fetchRunIOV (std::string location, const Tm &t) throw (std::runtime_error)
 
RunList fetchRunList (const RunTag &tag) throw (std::runtime_error)
 
RunList fetchRunList (const RunTag &tag, int min_run, int max_run) throw (std::runtime_error)
 
RunList fetchRunListByLocation (const RunTag &tag, int min_run, int max_run, const LocationDef &locDef) throw (std::runtime_error)
 
RunList fetchRunListLastNRuns (const RunTag &tag, int max_run, int n_runs) throw (std::runtime_error)
 
template<class DATT , class IOVT >
void fetchValidDataSet (std::map< EcalLogicID, DATT > *fillMap, IOVT *fillIOV, RunTag *tag, run_t run=(unsigned int)-1) throw (std::runtime_error)
 
template<class DATT , class IOVT >
void fetchValidDataSet (std::map< EcalLogicID, DATT > *fillMap, IOVT *fillIOV, std::string location, run_t run=(unsigned int)-1) throw (std::runtime_error)
 
DateHandlergetDateHandler ()
 
std::map< int, int > getDetId2LogicIdMap ()
 
int getDetIdFromLogicId (int logic_id)
 
EcalLogicID getEcalLogicID (std::string name, int id1=EcalLogicID::NULLID, int id2=EcalLogicID::NULLID, int id3=EcalLogicID::NULLID, std::string mapsTo="") throw (std::runtime_error)
 
EcalLogicID getEcalLogicID (int logicID) throw (std::runtime_error)
 
std::map< int, int > getEcalLogicID2LmrMap ()
 
std::vector< EcalLogicIDgetEcalLogicIDForLMPN (int lmr_logic_id)
 
std::vector< EcalLogicIDgetEcalLogicIDForLMPN (const EcalLogicID &lmr_logic_id)
 
std::vector< EcalLogicIDgetEcalLogicIDForLMR (int lmr_logic_id)
 
std::vector< EcalLogicIDgetEcalLogicIDForLMR (const EcalLogicID &lmr_logic_id)
 
std::vector< EcalLogicIDgetEcalLogicIDMappedTo (int logic_id, std::string maps_to)
 
std::vector< EcalLogicIDgetEcalLogicIDSet (std::string name, int fromId1=EcalLogicID::NULLID, int toId1=EcalLogicID::NULLID, int fromId2=EcalLogicID::NULLID, int toId2=EcalLogicID::NULLID, int fromId3=EcalLogicID::NULLID, int toId3=EcalLogicID::NULLID, std::string mapsTo="") throw (std::runtime_error)
 
std::vector< EcalLogicIDgetEcalLogicIDSetOrdered (std::string name, int fromId1, int toId1, int fromId2=EcalLogicID::NULLID, int toId2=EcalLogicID::NULLID, int fromId3=EcalLogicID::NULLID, int toId3=EcalLogicID::NULLID, std::string mapsTo="", int orderedBy=EcalLogicID::NULLID) throw (std::runtime_error)
 
std::map< int, int > getLogicId2DetIdMap ()
 
int getLogicIdFromDetId (int det_id)
 
template<class DATT , class ICONF >
void insertConfigDataArraySet (const std::vector< DATT > &data, ICONF *iconf) throw (std::runtime_error)
 
template<class DATT , class ICONF >
void insertConfigDataSet (const std::vector< DATT > data, ICONF *iconf) throw (std::runtime_error)
 
template<class ICONF >
void insertConfigSet (ICONF *iconf) throw (std::runtime_error)
 
template<class DATT , class IOVT >
void insertDataArraySet (const std::map< EcalLogicID, DATT > *data, IOVT *iov) throw (std::runtime_error)
 
template<class DATT , class IOVT >
void insertDataSet (const std::map< EcalLogicID, DATT > *data, IOVT *iov) throw (std::runtime_error)
 
template<class DATT , class IOVT >
void insertDataSetVector (const std::vector< EcalLogicID > &ecid, const std::vector< IOVT > &run_iov, const std::vector< DATT > &data) throw (std::runtime_error)
 
void insertDCUIOV (DCUIOV *iov) throw (std::runtime_error)
 
void insertLmfDat (LMFDat *dat) throw (std::runtime_error)
 
void insertLmfDat (std::list< LMFDat * > dat) throw (std::runtime_error)
 
void insertLmfIOV (LMFIOV *iov) throw (std::runtime_error)
 
void insertLmfLmrSubIOV (LMFLmrSubIOV *iov) throw (std::runtime_error)
 
void insertLmfRunIOV (LMFRunIOV *iov) throw (std::runtime_error)
 
void insertLmfSeq (LMFSeqDat *iov) throw (std::runtime_error)
 
void insertMonRunIOV (MonRunIOV *iov) throw (std::runtime_error)
 
void insertRunIOV (RunIOV *iov) throw (std::runtime_error)
 
void updateRunConfig (ODRunConfigInfo *od) throw (std::runtime_error)
 
void updateRunIOV (RunIOV *iov) throw (std::runtime_error)
 
void updateRunIOVEndTime (RunIOV *iov) throw (std::runtime_error)
 
void updateRunIOVStartTime (RunIOV *iov) throw (std::runtime_error)
 
virtual ~EcalCondDBInterface () throw (std::runtime_error)
 
- Public Member Functions inherited from EcalDBConnection
void commit ()
 
oracle::occi::Statement * createStatement ()
 
 EcalDBConnection (std::string host, std::string sid, std::string user, std::string pass, int port=1521) throw (std::runtime_error)
 
 EcalDBConnection (std::string sid, std::string user, std::string pass) throw (std::runtime_error)
 
oracle::occi::Clob getClobLocator ()
 
oracle::occi::Connection * getConn () const
 
oracle::occi::Environment * getEnv () const
 
void rollback ()
 
void terminateStatement (oracle::occi::Statement *stmt)
 
virtual ~EcalDBConnection () throw (std::runtime_error)
 

Private Member Functions

void printIOV (const RunIOV *iov) const
 
void printTag (const RunTag *tag) const
 

Private Attributes

uint64_t endmicros
 
run_t endrun
 
uint64_t startmicros
 
run_t startrun
 

Additional Inherited Members

- Protected Attributes inherited from EcalDBConnection
oracle::occi::Connection * conn
 
oracle::occi::Environment * env
 
std::string host
 
std::string pass
 
int port
 
std::string sid
 
oracle::occi::Statement * stmt
 
std::string user
 

Detailed Description

Definition at line 16 of file EcalTPGDBApp.h.

Constructor & Destructor Documentation

EcalTPGDBApp::EcalTPGDBApp ( std::string  host,
std::string  sid,
std::string  user,
std::string  pass,
int  port 
)
EcalTPGDBApp::EcalTPGDBApp ( std::string  sid,
std::string  user,
std::string  pass 
)

Member Function Documentation

void EcalTPGDBApp::printIOV ( const RunIOV iov) const
private

Definition at line 394 of file EcalTPGDBApp.cc.

void EcalTPGDBApp::printTag ( const RunTag tag) const
private

Definition at line 384 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::readFromCondDB_Pedestals ( std::map< EcalLogicID, MonPedestalsDat > &  pedset,
int  runNb 
)

Definition at line 142 of file EcalTPGDBApp.cc.

void EcalTPGDBApp::readFromConfDB_TPGPedestals ( int  iconf_req)

Definition at line 102 of file EcalTPGDBApp.cc.

std::string EcalTPGDBApp::to_string ( char  value[])
inline

Definition at line 22 of file EcalTPGDBApp.h.

References relativeConstraints::value.

23  {
24  std::ostringstream streamOut;
25  streamOut << value;
26  return streamOut.str();
27  }
int EcalTPGDBApp::writeToConfDB_Delay ( const std::map< EcalLogicID, FEConfigTimingDat > &  delaygroupset,
std::string  tag 
)

Definition at line 355 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::writeToConfDB_Spike ( const std::map< EcalLogicID, FEConfigSpikeDat > &  spikegroupset,
std::string  tag 
)

Definition at line 328 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::writeToConfDB_TPGFgr ( const std::map< EcalLogicID, FEConfigFgrGroupDat > &  lutgroup,
const std::map< EcalLogicID, FEConfigFgrDat > &  lutdat,
const std::map< EcalLogicID, FEConfigFgrParamDat > &  fgrparamset,
const std::map< EcalLogicID, FEConfigFgrEETowerDat > &  dataset3,
const std::map< EcalLogicID, FEConfigFgrEEStripDat > &  dataset4,
int  iovId,
std::string  tag 
)

Definition at line 288 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::writeToConfDB_TPGLinearCoef ( const std::map< EcalLogicID, FEConfigLinDat > &  linset,
const std::map< EcalLogicID, FEConfigLinParamDat > &  linparamset,
int  iovId,
std::string  tag 
)

Definition at line 42 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::writeToConfDB_TPGLUT ( const std::map< EcalLogicID, FEConfigLUTGroupDat > &  lutgroup,
const std::map< EcalLogicID, FEConfigLUTDat > &  lutdat,
const std::map< EcalLogicID, FEConfigLUTParamDat > &  lutparamset,
int  iovId,
std::string  tag 
)

Definition at line 222 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::writeToConfDB_TPGMain ( int  ped,
int  lin,
int  lut,
int  fgr,
int  sli,
int  wei,
int  spi,
int  tim,
int  bxt,
int  btt,
int  bst,
std::string  tag,
int  ver 
)

Definition at line 68 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::writeToConfDB_TPGPedestals ( const std::map< EcalLogicID, FEConfigPedDat > &  pedset,
int  iovId,
std::string  tag 
)

Definition at line 17 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::writeToConfDB_TPGSliding ( const std::map< EcalLogicID, FEConfigSlidingDat > &  sliset,
int  iovId,
std::string  tag 
)

Definition at line 194 of file EcalTPGDBApp.cc.

int EcalTPGDBApp::writeToConfDB_TPGWeight ( const std::map< EcalLogicID, FEConfigWeightGroupDat > &  lutgroup,
const std::map< EcalLogicID, FEConfigWeightDat > &  lutdat,
int  iovId,
std::string  tag 
)

Definition at line 255 of file EcalTPGDBApp.cc.

Member Data Documentation

uint64_t EcalTPGDBApp::endmicros
private

Definition at line 54 of file EcalTPGDBApp.h.

run_t EcalTPGDBApp::endrun
private

Definition at line 56 of file EcalTPGDBApp.h.

uint64_t EcalTPGDBApp::startmicros
private

Definition at line 53 of file EcalTPGDBApp.h.

run_t EcalTPGDBApp::startrun
private

Definition at line 55 of file EcalTPGDBApp.h.