#include <DatabaseAccessTool.h>
Definition at line 16 of file DatabaseAccessTool.h.
◆ DatabaseAccessTool() [1/2]
DatabaseAccessTool::DatabaseAccessTool |
( |
| ) |
|
Definition at line 25 of file DatabaseAccessTool.cxx.
26 :
m_cw(
new Clockwork())
28 ISvcLocator *svcLocator=Gaudi::svcLocator();
29 SmartIF<IGeoModelSvc> geoModel{svcLocator->service(
"GeoModelSvc")};
30 if (!geoModel.isValid()) {
31 throw std::runtime_error (
"Cannot locate GeoModelSvc!!");
34 SmartIF<IRDBAccessSvc> rdbAccess{svcLocator->service(
"RDBAccessSvc")};
35 if(!rdbAccess.isValid()) {
36 throw std::runtime_error (
"Cannot locate RDBAccessSvc!!");
43 std::string LArVersion = geoModel->LAr_VersionOverride();
◆ ~DatabaseAccessTool()
DatabaseAccessTool::~DatabaseAccessTool |
( |
| ) |
|
◆ DatabaseAccessTool() [2/2]
◆ getDouble()
double DatabaseAccessTool::getDouble |
( |
const std::string & |
TableName, |
|
|
const std::string & |
FallbackVersion, |
|
|
const std::string & |
ColumnName |
|
) |
| const |
Definition at line 55 of file DatabaseAccessTool.cxx.
65 throw std::runtime_error((std::string(
"Cannot find the Table: ") + TableName).c_str());
68 double retval = (*rec)[0]->getDouble(ColumnName);
◆ operator=()
◆ m_cw
The documentation for this class was generated from the following files:
virtual IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="", const std::string &connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.