#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) 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< ODDelaysDat > | fetchFEDelaysForRun (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) |
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="") throw (std::runtime_error) |
EcalLogicID | getEcalLogicID (int logicID) throw (std::runtime_error) |
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="") 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) |
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 |
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(), printTag(), 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().
Referenced by printIOV().
int EcalTPGDBApp::readFromCondDB_Pedestals | ( | std::map< EcalLogicID, MonPedestalsDat > & | pedset, |
int | runNb | ||
) |
Definition at line 142 of file EcalTPGDBApp.cc.
References gather_cfg::cout, EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchMonRunListLastNRuns(), MonRunList::getRuns(), cuy::ii, 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 102 of file EcalTPGDBApp.cc.
References gather_cfg::cout, 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 355 of file EcalTPGDBApp.cc.
References gather_cfg::cout, FEConfigTimingInfo::getId(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), query::result, and IODConfig::setConfigTag().
Referenced by EcalTPGParamBuilder::analyze().
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(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), query::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 288 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 222 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 | 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(), EcalCondDBInterface::insertConfigSet(), query::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().
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 194 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 255 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 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.