14 #include "GaudiKernel/Bootstrap.h"
15 #include "GaudiKernel/ISvcLocator.h"
18 #include "CLHEP/Units/PhysicalConstants.h"
47 ISvcLocator* svcLocator = Gaudi::svcLocator();
50 StatusCode sc = svcLocator->service(
"GeoDbTagSvc",geoDbTagSvc);
51 if (
sc != StatusCode::SUCCESS) {
52 throw std::runtime_error (
"Cannot locate GeoDBTagSvc");
56 sc = svcLocator->service(geoDbTagSvc->getParamSvcName(),pAccessSvc);
57 if (
sc != StatusCode::SUCCESS) {
58 throw std::runtime_error (
"Cannot locate " + geoDbTagSvc->getParamSvcName());
63 if(geoDbTagSvc->getSqliteReader()==
nullptr) {
66 sc = svcLocator->service (
"GeoModelSvc",geoModel);
67 if (
sc != StatusCode::SUCCESS) {
68 throw std::runtime_error (
"Cannot locate GeoModelSvc");
92 if ( a_name ==
"LArExpHallOutOfTimeCut" )
return 2.5*
CLHEP::ns;
93 if ( a_name ==
"LArExpHallInnerRadius" )
return (*m_c->atlasMother)[1]->getDouble(
"RMIN")*
CLHEP::cm;
94 if ( a_name ==
"LArExpHallOuterRadius" )
return (*m_c->atlasMother)[1]->getDouble(
"RMAX")*
CLHEP::cm;
95 if ( a_name ==
"LArExpHallZmax" )
return (*m_c->atlasMother)[1]->getDouble(
"ZMAX")*
CLHEP::cm;
98 std::string errMessage =
"RALExperimentalHall::GetValue: could not find a match for the key '" + a_name;
99 std::cerr << errMessage << std::endl;
100 throw std::runtime_error (errMessage.c_str());