![]() |
![]() |
#include <EcalCondDBInterface.h>
Public Member Functions | |
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) |
![]() | |
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 | |
EcalCondDBInterface () | |
EcalCondDBInterface (const EcalCondDBInterface ©) | |
void | fillLogicId2DetIdMaps () |
Private Attributes | |
std::map< int, int > | _detId2LogicId |
std::map< int, int > | _logicId2DetId |
DateHandler * | dh |
Additional Inherited Members | |
![]() | |
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 38 of file EcalCondDBInterface.h.
|
inline |
Constructor, makes connection to DB without TNS_ADMIN === Parameters === host: DB host machine sid: DB SID (name) user: User to connect pass: Password for user port: port number to connect, default 1521
Definition at line 54 of file EcalCondDBInterface.h.
|
inline |
Constructor, makes connection to DB with TNS_ADMIN === Parameters === sid: DB SID (name) user: User to connect pass: Password for user
Definition at line 76 of file EcalCondDBInterface.h.
|
inlinevirtual |
Destructor
Definition at line 91 of file EcalCondDBInterface.h.
|
private |
|
private |
void EcalCondDBInterface::dummy | ( | ) |
Definition at line 919 of file EcalCondDBInterface.cc.
CaliIOV EcalCondDBInterface::fetchCaliIOV | ( | CaliTag * | tag, |
const Tm & | evenTm | ||
) | |||
throw | ( | std::runtime_error | |
) |
Return a Calibration IOV object
Definition at line 791 of file EcalCondDBInterface.cc.
|
inline |
Definition at line 557 of file EcalCondDBInterface.h.
|
inline |
Definition at line 448 of file EcalCondDBInterface.h.
|
inline |
Definition at line 580 of file EcalCondDBInterface.h.
|
inline |
Definition at line 624 of file EcalCondDBInterface.h.
|
inline |
Definition at line 601 of file EcalCondDBInterface.h.
DCSPTMTempList EcalCondDBInterface::fetchDCSPTMTempList | ( | const EcalLogicID & | ecid | ) | |
throw | ( | std::runtime_error | |||
) |
Return a PTM Temp List
Definition at line 800 of file EcalCondDBInterface.cc.
DCSPTMTempList EcalCondDBInterface::fetchDCSPTMTempList | ( | const EcalLogicID & | ecid, |
const Tm & | start, | ||
const Tm & | end | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 809 of file EcalCondDBInterface.cc.
DCUIOV EcalCondDBInterface::fetchDCUIOV | ( | DCUTag * | tag, |
const Tm & | evenTm | ||
) | |||
throw | ( | std::runtime_error | |
) |
Return a DCU IOV object
Definition at line 736 of file EcalCondDBInterface.cc.
std::list< ODDelaysDat > EcalCondDBInterface::fetchFEDelaysForRun | ( | RunIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Return run Fe Config Dat objects for a given run
Definition at line 106 of file EcalCondDBInterface.cc.
RunList EcalCondDBInterface::fetchGlobalRunListByLocation | ( | const RunTag & | tag, |
int | min_run, | ||
int | max_run, | ||
const LocationDef & | locDef | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 861 of file EcalCondDBInterface.cc.
|
inline |
Definition at line 464 of file EcalCondDBInterface.h.
RunIOV EcalCondDBInterface::fetchLMFLastRun | ( | ) | const |
Definition at line 745 of file EcalCondDBInterface.cc.
LMFRunIOV EcalCondDBInterface::fetchLMFRunIOV | ( | RunTag * | runtag, |
LMFRunTag * | lmftag, | ||
run_t | run, | ||
subrun_t | lmfrun | ||
) | |||
throw | ( | std::runtime_error | |
) |
Return a laser monitoring farm run object
Definition at line 750 of file EcalCondDBInterface.cc.
bool EcalCondDBInterface::fetchLMFRunIOV | ( | const LMFSeqDat & | seq, |
LMFRunIOV & | iov, | ||
int | lmr, | ||
int | type, | ||
int | color | ||
) | const |
Definition at line 760 of file EcalCondDBInterface.cc.
MonRunIOV EcalCondDBInterface::fetchMonRunIOV | ( | RunTag * | runtag, |
MonRunTag * | montag, | ||
run_t | run, | ||
subrun_t | monrun | ||
) | |||
throw | ( | std::runtime_error | |
) |
Return a monitoring run object
Definition at line 724 of file EcalCondDBInterface.cc.
Referenced by EcalCondDBReader::EcalCondDBReader().
MonRunList EcalCondDBInterface::fetchMonRunList | ( | const RunTag & | tag, |
const MonRunTag & | monruntag | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 884 of file EcalCondDBInterface.cc.
MonRunList EcalCondDBInterface::fetchMonRunList | ( | const RunTag & | tag, |
const MonRunTag & | monruntag, | ||
int | min_run, | ||
int | max_run | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 895 of file EcalCondDBInterface.cc.
MonRunList EcalCondDBInterface::fetchMonRunListLastNRuns | ( | const RunTag & | tag, |
const MonRunTag & | monruntag, | ||
int | max_run, | ||
int | n_runs | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 906 of file EcalCondDBInterface.cc.
RunList EcalCondDBInterface::fetchNonEmptyGlobalRunList | ( | const RunTag & | tag, |
int | min_run, | ||
int | max_run | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 844 of file EcalCondDBInterface.cc.
RunList EcalCondDBInterface::fetchNonEmptyRunList | ( | const RunTag & | tag, |
int | min_run, | ||
int | max_run | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 836 of file EcalCondDBInterface.cc.
Return a run IOV object for a given tag
Definition at line 666 of file EcalCondDBInterface.cc.
Referenced by EcalCondDBReader::EcalCondDBReader().
RunIOV EcalCondDBInterface::fetchRunIOV | ( | std::string | location, |
run_t | run | ||
) | |||
throw | ( | std::runtime_error | |
) |
Return a run IOV object for a given location. It is not guarunteed that a run is unique for a location only, so an exception is thrown if more than one result exists.
Definition at line 677 of file EcalCondDBInterface.cc.
RunIOV EcalCondDBInterface::fetchRunIOV | ( | std::string | location, |
const Tm & | t | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 686 of file EcalCondDBInterface.cc.
Return a Run List
Definition at line 818 of file EcalCondDBInterface.cc.
RunList EcalCondDBInterface::fetchRunList | ( | const RunTag & | tag, |
int | min_run, | ||
int | max_run | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 828 of file EcalCondDBInterface.cc.
RunList EcalCondDBInterface::fetchRunListByLocation | ( | const RunTag & | tag, |
int | min_run, | ||
int | max_run, | ||
const LocationDef & | locDef | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 852 of file EcalCondDBInterface.cc.
RunList EcalCondDBInterface::fetchRunListLastNRuns | ( | const RunTag & | tag, |
int | max_run, | ||
int | n_runs | ||
) | |||
throw | ( | std::runtime_error | |
) |
Definition at line 870 of file EcalCondDBInterface.cc.
|
inline |
Definition at line 646 of file EcalCondDBInterface.h.
|
inline |
Definition at line 670 of file EcalCondDBInterface.h.
|
private |
Private method: fill a private map used to associate logicIds to DetIds
Definition at line 28 of file EcalCondDBInterface.cc.
|
inline |
Return a date handler associated with this connection
Definition at line 104 of file EcalCondDBInterface.h.
|
inline |
Definition at line 715 of file EcalCondDBInterface.h.
|
inline |
Definition at line 686 of file EcalCondDBInterface.h.
EcalLogicID EcalCondDBInterface::getEcalLogicID | ( | std::string | name, |
int | id1 = EcalLogicID::NULLID , |
||
int | id2 = EcalLogicID::NULLID , |
||
int | id3 = EcalLogicID::NULLID , |
||
std::string | mapsTo = "" |
||
) | |||
throw | ( | std::runtime_error | |
) |
Look up the "human readable" ids and return an EcalLogicID object which contains the "database readable" logic_id === Parameters === name: name of the channel type you are specifying id1, id2, id3: ids of the channel type mapsTo: name of the channel type you are mapping to
EcalLogicID EcalCondDBInterface::getEcalLogicID | ( | int | logicID | ) | |
throw | ( | std::runtime_error | |||
) |
Look up the database logic_id and return the EcalLogicID object which contains the "human readable" ids === Parameters === logicID: DB logic_id
Definition at line 69 of file EcalCondDBInterface.cc.
std::map< int, int > EcalCondDBInterface::getEcalLogicID2LmrMap | ( | ) |
Definition at line 294 of file EcalCondDBInterface.cc.
std::vector< EcalLogicID > EcalCondDBInterface::getEcalLogicIDForLMPN | ( | int | lmr_logic_id | ) |
Definition at line 388 of file EcalCondDBInterface.cc.
std::vector< EcalLogicID > EcalCondDBInterface::getEcalLogicIDForLMPN | ( | const EcalLogicID & | lmr_logic_id | ) |
Definition at line 396 of file EcalCondDBInterface.cc.
std::vector< EcalLogicID > EcalCondDBInterface::getEcalLogicIDForLMR | ( | int | lmr_logic_id | ) |
Definition at line 380 of file EcalCondDBInterface.cc.
std::vector< EcalLogicID > EcalCondDBInterface::getEcalLogicIDForLMR | ( | const EcalLogicID & | lmr_logic_id | ) |
Definition at line 384 of file EcalCondDBInterface.cc.
std::vector< EcalLogicID > EcalCondDBInterface::getEcalLogicIDMappedTo | ( | int | logic_id, |
std::string | maps_to | ||
) |
Build various reverse maps Map an LMR, or a Ex_LM_PN into the set of components
Definition at line 333 of file EcalCondDBInterface.cc.
std::vector< EcalLogicID > EcalCondDBInterface::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 | |
) |
Get a set of EcalLogicID in one transaction === Parameters === name: name of the channel type you are specifying fromId1, toId1: Range of id1 in the DB to retrieve fromId2, toId2: Range of id2 in the DB to retrieve fromId3, toId3: Range of id3 in the DB to retrieve string mapsTo: channel type name these ids map to
Definition at line 202 of file EcalCondDBInterface.cc.
std::vector< EcalLogicID > EcalCondDBInterface::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 | |
) |
Definition at line 400 of file EcalCondDBInterface.cc.
|
inline |
Definition at line 708 of file EcalCondDBInterface.h.
|
inline |
Definition at line 697 of file EcalCondDBInterface.h.
|
inline |
Definition at line 521 of file EcalCondDBInterface.h.
|
inline |
Definition at line 482 of file EcalCondDBInterface.h.
|
inline |
Definition at line 424 of file EcalCondDBInterface.h.
|
inline |
Definition at line 347 of file EcalCondDBInterface.h.
|
inline |
Definition at line 307 of file EcalCondDBInterface.h.
|
inline |
Definition at line 382 of file EcalCondDBInterface.h.
void EcalCondDBInterface::insertDCUIOV | ( | DCUIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Insert a DCU IOV object. Nothing is committed in the event of an exception
Definition at line 708 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::insertLmfDat | ( | LMFDat * | dat | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 570 of file EcalCondDBInterface.cc.
Definition at line 583 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::insertLmfIOV | ( | LMFIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 557 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::insertLmfLmrSubIOV | ( | LMFLmrSubIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 544 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::insertLmfRunIOV | ( | LMFRunIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 601 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::insertLmfSeq | ( | LMFSeqDat * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 531 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::insertMonRunIOV | ( | MonRunIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Insert a monitoring run object. Nothing is committed in the event of an exception
Definition at line 695 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::insertRunIOV | ( | RunIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Insert a run IOV object. Nothing is committed in the event of an exception
Definition at line 518 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::updateRunConfig | ( | ODRunConfigInfo * | od | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 653 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::updateRunIOV | ( | RunIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 614 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::updateRunIOVEndTime | ( | RunIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 627 of file EcalCondDBInterface.cc.
void EcalCondDBInterface::updateRunIOVStartTime | ( | RunIOV * | iov | ) | |
throw | ( | std::runtime_error | |||
) |
Definition at line 640 of file EcalCondDBInterface.cc.
|
private |
Definition at line 742 of file EcalCondDBInterface.h.
|
private |
Definition at line 741 of file EcalCondDBInterface.h.
|
private |
Definition at line 736 of file EcalCondDBInterface.h.