10 #include "GaudiKernel/ISvcLocator.h"
11 #include "GaudiKernel/Bootstrap.h"
21 std::map<std::string, IRDBRecordset_ptr>
recMap;
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();
56 const std::string & FallbackVersion,
57 const std::string & ColumnName)
const {
65 throw std::runtime_error((std::string(
"Cannot find the Table: ") + TableName).c_str());
68 double retval = (*rec)[0]->getDouble(ColumnName);