#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 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) 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 394 of file EcalTPGDBApp.cc.
References gather_cfg::cout, RunIOV::getRunEnd(), RunIOV::getRunNumber(), RunIOV::getRunStart(), RunIOV::getRunTag(), Tm::str(), and GlobalPosition_Frontier_DevDB_cff::tag.
|
private |
Definition at line 384 of file EcalTPGDBApp.cc.
References gather_cfg::cout, RunTag::getGeneralTag(), LocationDef::getLocation(), RunTag::getLocationDef(), RunTypeDef::getRunType(), and RunTag::getRunTypeDef().
int EcalTPGDBApp::readFromCondDB_Pedestals | ( | std::map< EcalLogicID, MonPedestalsDat > & | pedset, |
int | runNb | ||
) |
Definition at line 142 of file EcalTPGDBApp.cc.
References gather_cfg::cout, MonRunList::getRuns(), cuy::ii, createfilelist::int, findQualityFiles::run, RunTag::setGeneralTag(), MonRunTag::setGeneralTag(), LocationDef::setLocation(), RunTag::setLocationDef(), MonVersionDef::setMonitoringVersion(), MonRunList::setMonRunTag(), MonRunTag::setMonVersionDef(), MonRunList::setRunTag(), RunTypeDef::setRunType(), and RunTag::setRunTypeDef().
Referenced by to_string().
void EcalTPGDBApp::readFromConfDB_TPGPedestals | ( | int | iconf_req | ) |
Definition at line 102 of file EcalTPGDBApp.cc.
References gather_cfg::cout, EcalLogicID::getID2(), FEConfigPedDat::getPedMeanG1(), FEConfigPedDat::getPedMeanG12(), FEConfigPedDat::getPedMeanG6(), AlCaHLTBitMon_ParallelJobs::p, and FEConfigPedInfo::setId().
Referenced by to_string().
|
inline |
Definition at line 22 of file EcalTPGDBApp.h.
References lumiPlot::lut, readFromCondDB_Pedestals(), readFromConfDB_TPGPedestals(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, relativeConstraints::value, writeToConfDB_Delay(), writeToConfDB_Spike(), writeToConfDB_TPGFgr(), writeToConfDB_TPGLinearCoef(), writeToConfDB_TPGLUT(), writeToConfDB_TPGMain(), writeToConfDB_TPGPedestals(), writeToConfDB_TPGSliding(), and writeToConfDB_TPGWeight().
int EcalTPGDBApp::writeToConfDB_Delay | ( | const std::map< EcalLogicID, FEConfigTimingDat > & | delaygroupset, |
std::string | tag | ||
) |
Definition at line 355 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigTimingInfo::getId(), mps_fire::result, and IODConfig::setConfigTag().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
int EcalTPGDBApp::writeToConfDB_Spike | ( | const std::map< EcalLogicID, FEConfigSpikeDat > & | spikegroupset, |
std::string | tag | ||
) |
Definition at line 328 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigSpikeInfo::getId(), mps_fire::result, and IODConfig::setConfigTag().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
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.
References gather_cfg::cout, FEConfigFgrInfo::getId(), mps_fire::result, IODConfig::setConfigTag(), and FEConfigFgrInfo::setNumberOfGroups().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
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(), mps_fire::result, IODConfig::setConfigTag(), and FEConfigLinInfo::setIOVId().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
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.
References gather_cfg::cout, FEConfigLUTInfo::getId(), mps_fire::result, IODConfig::setConfigTag(), and FEConfigLUTInfo::setNumberOfGroups().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
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.
References gather_cfg::cout, FEConfigMainInfo::getId(), mps_fire::result, FEConfigMainInfo::setBstId(), FEConfigMainInfo::setBttId(), FEConfigMainInfo::setBxtId(), IODConfig::setConfigTag(), FEConfigMainInfo::setFgrId(), FEConfigMainInfo::setLinId(), FEConfigMainInfo::setLUTId(), FEConfigMainInfo::setPedId(), FEConfigMainInfo::setSliId(), FEConfigMainInfo::setSpiId(), FEConfigMainInfo::setTimId(), FEConfigMainInfo::setVersion(), and FEConfigMainInfo::setWeiId().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
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(), mps_fire::result, IODConfig::setConfigTag(), and FEConfigPedInfo::setIOVId().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
int EcalTPGDBApp::writeToConfDB_TPGSliding | ( | const std::map< EcalLogicID, FEConfigSlidingDat > & | sliset, |
int | iovId, | ||
std::string | tag | ||
) |
Definition at line 194 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigSlidingInfo::getId(), mps_fire::result, IODConfig::setConfigTag(), and FEConfigSlidingInfo::setIOVId().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
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.
References gather_cfg::cout, FEConfigWeightInfo::getId(), mps_fire::result, IODConfig::setConfigTag(), and FEConfigWeightInfo::setNumberOfGroups().
Referenced by EcalTPGParamBuilder::analyze(), and to_string().
|
private |
Definition at line 54 of file EcalTPGDBApp.h.
|
private |
Definition at line 56 of file EcalTPGDBApp.h.
|
private |
Definition at line 53 of file EcalTPGDBApp.h.
|
private |
Definition at line 55 of file EcalTPGDBApp.h.