#include <RALHec.h>
Definition at line 20 of file RALHec.h.
◆ RALHec() [1/2]
LArGeo::RALHec::RALHec |
( |
| ) |
|
Definition at line 45 of file RALHec.cxx.
49 ISvcLocator* svcLocator = Gaudi::svcLocator();
52 StatusCode sc = svcLocator->service(
"GeoDbTagSvc",geoDbTagSvc);
53 if (
sc != StatusCode::SUCCESS) {
54 throw std::runtime_error (
"Cannot locate GeoDBTagSvc");
58 sc = svcLocator->service(geoDbTagSvc->getParamSvcName(),pAccessSvc);
59 if (
sc != StatusCode::SUCCESS) {
60 throw std::runtime_error (
"Cannot locate " + geoDbTagSvc->getParamSvcName());
63 std::string detectorKey;
64 std::string detectorNode;
66 if(geoDbTagSvc->getSqliteReader()==
nullptr) {
69 sc = svcLocator->service (
"GeoModelSvc",geoModel);
70 if (
sc != StatusCode::SUCCESS) {
71 throw std::runtime_error (
"Cannot locate GeoModelSvc");
75 std::string LArVersion = geoModel->LAr_VersionOverride();
77 detectorKey = LArVersion.empty() ?
AtlasVersion : LArVersion;
78 detectorNode = LArVersion.empty() ?
"ATLAS" :
"LAr";
82 m_c->
hadronicEndcap = pAccessSvc->getRecordsetPtr(
"HadronicEndcap",detectorKey, detectorNode);
83 m_c->
hecGridValues = pAccessSvc->getRecordsetPtr(
"HecGridValues",detectorKey, detectorNode);
◆ ~RALHec()
LArGeo::RALHec::~RALHec |
( |
| ) |
|
|
virtual |
◆ RALHec() [2/2]
◆ GetInstance()
Definition at line 29 of file VDetectorParameters.cxx.
33 std::cerr <<
"LArGeo::VDetectorParameters::GetInstance was called, but "
34 <<
"the pointer to the detector-parameter access object is 0."
◆ GetValue()
double LArGeo::RALHec::GetValue |
( |
const std::string & |
a_name, |
|
|
const int |
i0 = INT_MIN , |
|
|
const int |
i1 = INT_MIN , |
|
|
const int |
i2 = INT_MIN , |
|
|
const int |
i3 = INT_MIN , |
|
|
const int |
i4 = INT_MIN |
|
) |
| const |
|
overridevirtual |
Implements LArGeo::VDetectorParameters.
Definition at line 95 of file RALHec.cxx.
103 std::ostringstream A0STR;
105 const std::string A0 = A0STR.str();
108 if ( a_name ==
"LArHECmoduleNumber" )
return (*
m_c->
hadronicEndcap)[0]->getInt(
"NSCT");
131 std::string errMessage =
"RALHec::GetValue: could not find a match for the key '" + a_name;
132 std::cerr << errMessage << std::endl;
133 throw std::runtime_error (errMessage.c_str());
◆ operator=()
◆ SetInstance()
◆ ATLAS_THREAD_SAFE
◆ m_c
The documentation for this class was generated from the following files: