#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_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 wei2, int spi, int tim, int bxt, int btt, int bst, int cok, 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) |
int | writeToConfDB_TPGWeight_doubleWeights (const std::map< EcalLogicID, FEConfigOddWeightGroupDat > &lutgroupset, const std::map< EcalLogicID, FEConfigOddWeightDat > &lutset, const std::map< EcalLogicID, FEConfigOddWeightModeDat > &tpmode, int ngr, 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) | |
EcalCondDBInterface ()=delete | |
EcalCondDBInterface (const EcalCondDBInterface ©)=delete | |
CaliIOV | fetchCaliIOV (CaliTag *tag, const Tm &evenTm) noexcept(false) |
template<class DATT , class ICONF > | |
void | fetchConfigDataSet (std::vector< DATT > *fillMap, ICONF *iconf) noexcept(false) |
template<class ICONF > | |
void | fetchConfigSet (ICONF *iconf) noexcept(false) |
template<class DATT , class IOVT > | |
void | fetchDataSet (std::map< EcalLogicID, DATT > *fillMap, IOVT *iov) noexcept(false) |
template<class DATT , class IOVT > | |
void | fetchDataSetWithMap (std::map< EcalLogicID, DATT > *fillMap, IOVT *iov, std::string mapping_name) noexcept(false) |
template<class DATT > | |
void | fetchDCSDataSet (std::list< std::pair< Tm, std::map< EcalLogicID, DATT > > > *fillMap, const Tm &t) noexcept(false) |
DCSPTMTempList | fetchDCSPTMTempList (const EcalLogicID &ecid) noexcept(false) |
DCSPTMTempList | fetchDCSPTMTempList (const EcalLogicID &ecid, const Tm &start, const Tm &end) noexcept(false) |
DCUIOV | fetchDCUIOV (DCUTag *tag, const Tm &evenTm) noexcept(false) |
std::list< ODDelaysDat > | fetchFEDelaysForRun (RunIOV *iov) noexcept(false) |
RunList | fetchGlobalRunListByLocation (const RunTag &tag, int min_run, int max_run, const LocationDef &locDef) noexcept(false) |
template<class ICONF > | |
void | fetchLastConfigSet (ICONF *iconf) noexcept(false) |
RunIOV | fetchLMFLastRun () const |
LMFRunIOV | fetchLMFRunIOV (RunTag *runtag, LMFRunTag *lmftag, run_t run, subrun_t lmfrun) noexcept(false) |
bool | fetchLMFRunIOV (const LMFSeqDat &, LMFRunIOV &, int lmr, int type, int color) const |
MonRunIOV | fetchMonRunIOV (RunTag *runtag, MonRunTag *montag, run_t run, subrun_t monrun) noexcept(false) |
MonRunList | fetchMonRunList (const RunTag &tag, const MonRunTag &monruntag) noexcept(false) |
MonRunList | fetchMonRunList (const RunTag &tag, const MonRunTag &monruntag, int min_run, int max_run) noexcept(false) |
MonRunList | fetchMonRunListLastNRuns (const RunTag &tag, const MonRunTag &monruntag, int max_run, int n_runs) noexcept(false) |
RunList | fetchNonEmptyGlobalRunList (const RunTag &tag, int min_run, int max_run) noexcept(false) |
RunList | fetchNonEmptyRunList (const RunTag &tag, int min_run, int max_run) noexcept(false) |
RunIOV | fetchRunIOV (RunTag *tag, run_t run) noexcept(false) |
RunIOV | fetchRunIOV (std::string location, run_t run) noexcept(false) |
RunIOV | fetchRunIOV (std::string location, const Tm &t) noexcept(false) |
RunList | fetchRunList (const RunTag &tag) noexcept(false) |
RunList | fetchRunList (const RunTag &tag, int min_run, int max_run) noexcept(false) |
RunList | fetchRunListByLocation (const RunTag &tag, int min_run, int max_run, const LocationDef &locDef) noexcept(false) |
RunList | fetchRunListLastNRuns (const RunTag &tag, int max_run, int n_runs) noexcept(false) |
template<class DATT , class IOVT > | |
void | fetchValidDataSet (std::map< EcalLogicID, DATT > *fillMap, IOVT *fillIOV, RunTag *tag, run_t run=(unsigned int)-1) noexcept(false) |
template<class DATT , class IOVT > | |
void | fetchValidDataSet (std::map< EcalLogicID, DATT > *fillMap, IOVT *fillIOV, std::string location, run_t run=(unsigned int)-1) noexcept(false) |
DateHandler * | getDateHandler () |
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="") noexcept(false) |
EcalLogicID | getEcalLogicID (int logicID) noexcept(false) |
std::map< int, int > | getEcalLogicID2LmrMap () |
std::vector< EcalLogicID > | getEcalLogicIDForLMPN (int lmr_logic_id) |
std::vector< EcalLogicID > | getEcalLogicIDForLMPN (const EcalLogicID &lmr_logic_id) |
std::vector< EcalLogicID > | getEcalLogicIDForLMR (int lmr_logic_id) |
std::vector< EcalLogicID > | getEcalLogicIDForLMR (const EcalLogicID &lmr_logic_id) |
std::vector< EcalLogicID > | getEcalLogicIDMappedTo (int logic_id, std::string maps_to) |
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="") noexcept(false) |
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) noexcept(false) |
std::map< int, int > | getLogicId2DetIdMap () |
int | getLogicIdFromDetId (int det_id) |
template<class DATT , class ICONF > | |
void | insertConfigDataArraySet (const std::vector< DATT > &data, ICONF *iconf) noexcept(false) |
template<class DATT , class ICONF > | |
void | insertConfigDataSet (const std::vector< DATT > data, ICONF *iconf) noexcept(false) |
template<class ICONF > | |
void | insertConfigSet (ICONF *iconf) noexcept(false) |
template<class DATT , class IOVT > | |
void | insertDataArraySet (const std::map< EcalLogicID, DATT > *data, IOVT *iov) noexcept(false) |
template<class DATT , class IOVT > | |
void | insertDataSet (const std::map< EcalLogicID, DATT > *data, IOVT *iov) noexcept(false) |
template<class DATT , class IOVT > | |
void | insertDataSetVector (const std::vector< EcalLogicID > &ecid, const std::vector< IOVT > &run_iov, const std::vector< DATT > &data) noexcept(false) |
void | insertDCUIOV (DCUIOV *iov) noexcept(false) |
void | insertLmfDat (LMFDat *dat) noexcept(false) |
void | insertLmfDat (std::list< LMFDat * > dat) noexcept(false) |
void | insertLmfIOV (LMFIOV *iov) noexcept(false) |
void | insertLmfLmrSubIOV (LMFLmrSubIOV *iov) noexcept(false) |
void | insertLmfRunIOV (LMFRunIOV *iov) noexcept(false) |
void | insertLmfSeq (LMFSeqDat *iov) noexcept(false) |
void | insertMonRunIOV (MonRunIOV *iov) noexcept(false) |
void | insertRunIOV (RunIOV *iov) noexcept(false) |
void | updateRunConfig (ODRunConfigInfo *od) noexcept(false) |
void | updateRunIOV (RunIOV *iov) noexcept(false) |
void | updateRunIOVEndTime (RunIOV *iov) noexcept(false) |
void | updateRunIOVStartTime (RunIOV *iov) noexcept(false) |
~EcalCondDBInterface () noexcept(false) override | |
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) noexcept(false) | |
EcalDBConnection (std::string sid, std::string user, std::string pass) noexcept(false) | |
oracle::occi::Clob | getClobLocator () |
oracle::occi::Connection * | getConn () const |
oracle::occi::Environment * | getEnv () const |
void | rollback () |
void | terminateStatement (oracle::occi::Statement *stmt) |
virtual | ~EcalDBConnection () noexcept(false) |
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 16 of file EcalTPGDBApp.h.
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 | ||
) |
|
private |
Definition at line 419 of file EcalTPGDBApp.cc.
References RunIOV::getRunEnd(), RunIOV::getRunNumber(), RunIOV::getRunStart(), RunIOV::getRunTag(), printTag(), Tm::str(), and GlobalPosition_Frontier_DevDB_cff::tag.
|
private |
Definition at line 411 of file EcalTPGDBApp.cc.
References 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 151 of file EcalTPGDBApp.cc.
References EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchMonRunListLastNRuns(), MonRunList::getRuns(), cuy::ii, test_db_connect::my_locdef, test_db_connect::my_rundef, submitPVValidationJobs::run, MonRunTag::setGeneralTag(), RunTag::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 113 of file EcalTPGDBApp.cc.
References EcalCondDBInterface::fetchConfigSet(), EcalCondDBInterface::fetchDataSet(), EcalLogicID::getID2(), FEConfigPedDat::getPedMeanG1(), FEConfigPedDat::getPedMeanG12(), FEConfigPedDat::getPedMeanG6(), AlCaHLTBitMon_ParallelJobs::p, and FEConfigPedInfo::setId().
|
inline |
int EcalTPGDBApp::writeToConfDB_Delay | ( | const std::map< EcalLogicID, FEConfigTimingDat > & | delaygroupset, |
std::string | tag | ||
) |
Definition at line 387 of file EcalTPGDBApp.cc.
References FEConfigTimingInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), mps_fire::result, and IODConfig::setConfigTag().
Referenced by EcalTPGParamBuilder::analyze().
int EcalTPGDBApp::writeToConfDB_Spike | ( | const std::map< EcalLogicID, FEConfigSpikeDat > & | spikegroupset, |
std::string | tag | ||
) |
Definition at line 363 of file EcalTPGDBApp.cc.
References FEConfigSpikeInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), mps_fire::result, and IODConfig::setConfigTag().
Referenced by EcalTPGParamBuilder::analyze().
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 324 of file EcalTPGDBApp.cc.
References FEConfigFgrInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), mps_fire::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 38 of file EcalTPGDBApp.cc.
References FEConfigLinInfo::getID(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), mps_fire::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 226 of file EcalTPGDBApp.cc.
References FEConfigLUTInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), mps_fire::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 | wei2, | ||
int | spi, | ||
int | tim, | ||
int | bxt, | ||
int | btt, | ||
int | bst, | ||
int | cok, | ||
std::string | tag, | ||
int | ver | ||
) |
Definition at line 65 of file EcalTPGDBApp.cc.
References FEConfigMainInfo::getId(), EcalCondDBInterface::insertConfigSet(), mps_fire::result, FEConfigMainInfo::setBstId(), FEConfigMainInfo::setBttId(), FEConfigMainInfo::setBxtId(), FEConfigMainInfo::setCokeId(), IODConfig::setConfigTag(), FEConfigMainInfo::setFgrId(), FEConfigMainInfo::setLinId(), FEConfigMainInfo::setLUTId(), FEConfigMainInfo::setPedId(), FEConfigMainInfo::setSliId(), FEConfigMainInfo::setSpiId(), FEConfigMainInfo::setTimId(), FEConfigMainInfo::setVersion(), FEConfigMainInfo::setWei2Id(), 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 15 of file EcalTPGDBApp.cc.
References FEConfigPedInfo::getID(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), mps_fire::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 201 of file EcalTPGDBApp.cc.
References FEConfigSlidingInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), mps_fire::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 259 of file EcalTPGDBApp.cc.
References FEConfigWeightInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), mps_fire::result, IODConfig::setConfigTag(), and FEConfigWeightInfo::setNumberOfGroups().
Referenced by EcalTPGParamBuilder::analyze().
int EcalTPGDBApp::writeToConfDB_TPGWeight_doubleWeights | ( | const std::map< EcalLogicID, FEConfigOddWeightGroupDat > & | lutgroupset, |
const std::map< EcalLogicID, FEConfigOddWeightDat > & | lutset, | ||
const std::map< EcalLogicID, FEConfigOddWeightModeDat > & | tpmode, | ||
int | ngr, | ||
std::string | tag | ||
) |
Definition at line 290 of file EcalTPGDBApp.cc.
References FEConfigOddWeightInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), EcalCondDBInterface::insertDataSet(), mps_fire::result, IODConfig::setConfigTag(), and FEConfigOddWeightInfo::setNumberOfGroups().
Referenced by EcalTPGParamBuilder::analyze().
|
private |
Definition at line 79 of file EcalTPGDBApp.h.
|
private |
Definition at line 81 of file EcalTPGDBApp.h.
|
private |
Definition at line 78 of file EcalTPGDBApp.h.
|
private |
Definition at line 80 of file EcalTPGDBApp.h.