#include <EcalTPGDBApp.h>
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_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 bxt, int btt, 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, 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, Tm t) throw (std::runtime_error) |
DCSPTMTempList | fetchDCSPTMTempList (EcalLogicID ecid) throw (std::runtime_error) |
DCSPTMTempList | fetchDCSPTMTempList (EcalLogicID ecid, Tm start, Tm end) throw (std::runtime_error) |
DCUIOV | fetchDCUIOV (DCUTag *tag, Tm evenTm) throw (std::runtime_error) |
RunList | fetchGlobalRunListByLocation (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 (RunTag tag, MonRunTag monruntag) throw (std::runtime_error) |
MonRunList | fetchMonRunList (RunTag tag, MonRunTag monruntag, int min_run, int max_run) throw (std::runtime_error) |
MonRunList | fetchMonRunListLastNRuns (RunTag tag, MonRunTag monruntag, int max_run, int n_runs) 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) |
RunList | fetchRunList (RunTag tag) throw (std::runtime_error) |
RunList | fetchRunList (RunTag tag, int min_run, int max_run) throw (std::runtime_error) |
RunList | fetchRunListByLocation (RunTag tag, int min_run, int max_run, const LocationDef locDef) throw (std::runtime_error) |
RunList | fetchRunListLastNRuns (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) |
DateHandler * | getDateHandler () |
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< EcalLogicID > | getEcalLogicIDSet (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< EcalLogicID > | getEcalLogicIDSetOrdered (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) |
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 (std::vector< EcalLogicID > ecid, std::vector< IOVT > run_iov, 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 () |
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 |
Definition at line 14 of file EcalTPGDBApp.h.
EcalTPGDBApp::EcalTPGDBApp | ( | std::string | host, |
std::string | sid, | ||
std::string | user, | ||
std::string | pass, | ||
int | port | ||
) |
Definition at line 9 of file EcalTPGDBApp.cc.
EcalTPGDBApp::EcalTPGDBApp | ( | std::string | sid, |
std::string | user, | ||
std::string | pass | ||
) |
Definition at line 13 of file EcalTPGDBApp.cc.
|
private |
Definition at line 345 of file EcalTPGDBApp.cc.
References gather_cfg::cout, RunIOV::getRunEnd(), RunIOV::getRunNumber(), RunIOV::getRunStart(), RunIOV::getRunTag(), printTag(), Tm::str(), and GlobalPosition_Frontier_DevDB_cff::tag.
|
private |
Definition at line 335 of file EcalTPGDBApp.cc.
References gather_cfg::cout, RunTag::getGeneralTag(), LocationDef::getLocation(), RunTag::getLocationDef(), RunTypeDef::getRunType(), and RunTag::getRunTypeDef().
Referenced by printIOV().
int EcalTPGDBApp::readFromCondDB_Pedestals | ( | std::map< EcalLogicID, MonPedestalsDat > & | pedset, |
int | runNb | ||
) |
Definition at line 148 of file EcalTPGDBApp.cc.
References gather_cfg::cout, EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchMonRunListLastNRuns(), MonRunList::getRuns(), DTTTrigCorrFirst::run, RunTag::setGeneralTag(), MonRunTag::setGeneralTag(), LocationDef::setLocation(), RunTag::setLocationDef(), MonVersionDef::setMonitoringVersion(), MonRunList::setMonRunTag(), MonRunTag::setMonVersionDef(), MonRunList::setRunTag(), RunTypeDef::setRunType(), and RunTag::setRunTypeDef().
void EcalTPGDBApp::readFromConfDB_TPGPedestals | ( | int | iconf_req | ) |
Definition at line 99 of file EcalTPGDBApp.cc.
References gather_cfg::cout, EcalCondDBInterface::fetchConfigSet(), EcalCondDBInterface::fetchDataSet(), EcalLogicID::getID2(), FEConfigPedDat::getPedMeanG1(), FEConfigPedDat::getPedMeanG12(), FEConfigPedDat::getPedMeanG6(), i, L1TEmulatorMonitor_cff::p, and FEConfigPedInfo::setId().
|
inline |
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 293 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigFgrInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), query::result, IODConfig::setConfigTag(), and FEConfigFgrInfo::setNumberOfGroups().
Referenced by EcalTPGParamBuilder::analyze().
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.
References gather_cfg::cout, FEConfigLinInfo::getID(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), query::result, IODConfig::setConfigTag(), and FEConfigLinInfo::setIOVId().
Referenced by EcalTPGParamBuilder::analyze().
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 227 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigLUTInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), query::result, IODConfig::setConfigTag(), and FEConfigLUTInfo::setNumberOfGroups().
Referenced by EcalTPGParamBuilder::analyze().
int EcalTPGDBApp::writeToConfDB_TPGMain | ( | int | ped, |
int | lin, | ||
int | lut, | ||
int | fgr, | ||
int | sli, | ||
int | wei, | ||
int | bxt, | ||
int | btt, | ||
std::string | tag, | ||
int | ver | ||
) |
Definition at line 68 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigMainInfo::getId(), EcalCondDBInterface::insertConfigSet(), query::result, FEConfigMainInfo::setBttId(), FEConfigMainInfo::setBxtId(), IODConfig::setConfigTag(), FEConfigMainInfo::setFgrId(), FEConfigMainInfo::setLinId(), FEConfigMainInfo::setLUTId(), FEConfigMainInfo::setPedId(), FEConfigMainInfo::setSliId(), FEConfigMainInfo::setVersion(), and FEConfigMainInfo::setWeiId().
Referenced by EcalTPGParamBuilder::analyze().
int EcalTPGDBApp::writeToConfDB_TPGPedestals | ( | const std::map< EcalLogicID, FEConfigPedDat > & | pedset, |
int | iovId, | ||
std::string | tag | ||
) |
Definition at line 17 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigPedInfo::getID(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), query::result, IODConfig::setConfigTag(), and FEConfigPedInfo::setIOVId().
Referenced by EcalTPGParamBuilder::analyze().
int EcalTPGDBApp::writeToConfDB_TPGSliding | ( | const std::map< EcalLogicID, FEConfigSlidingDat > & | sliset, |
int | iovId, | ||
std::string | tag | ||
) |
Definition at line 200 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigSlidingInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), query::result, IODConfig::setConfigTag(), and FEConfigSlidingInfo::setIOVId().
Referenced by EcalTPGParamBuilder::analyze().
int EcalTPGDBApp::writeToConfDB_TPGWeight | ( | const std::map< EcalLogicID, FEConfigWeightGroupDat > & | lutgroup, |
const std::map< EcalLogicID, FEConfigWeightDat > & | lutdat, | ||
int | iovId, | ||
std::string | tag | ||
) |
Definition at line 260 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigWeightInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), query::result, IODConfig::setConfigTag(), and FEConfigWeightInfo::setNumberOfGroups().
Referenced by EcalTPGParamBuilder::analyze().
|
private |
Definition at line 49 of file EcalTPGDBApp.h.
|
private |
Definition at line 51 of file EcalTPGDBApp.h.
|
private |
Definition at line 48 of file EcalTPGDBApp.h.
|
private |
Definition at line 50 of file EcalTPGDBApp.h.