diff --git a/Detector/DetComponents/src/GeoSvc.cpp b/Detector/DetComponents/src/GeoSvc.cpp index 981c92e..0c85607 100644 --- a/Detector/DetComponents/src/GeoSvc.cpp +++ b/Detector/DetComponents/src/GeoSvc.cpp @@ -84,6 +84,8 @@ StatusCode GeoSvc::buildDD4HepGeo() { return StatusCode::SUCCESS; } +dd4hep::Detector* GeoSvc::lcdd() { return m_dd4hepgeo; } + dd4hep::Detector* GeoSvc::getDetector() { return m_dd4hepgeo; } dd4hep::DetElement GeoSvc::getDD4HepGeo() { return m_dd4hepgeo->world(); } diff --git a/Detector/DetComponents/src/GeoSvc.h b/Detector/DetComponents/src/GeoSvc.h index eb07327..2626b33 100644 --- a/Detector/DetComponents/src/GeoSvc.h +++ b/Detector/DetComponents/src/GeoSvc.h @@ -37,6 +37,8 @@ class GeoSvc : public extends { StatusCode buildGeant4Geo(); // receive DD4hep Geometry virtual dd4hep::DetElement getDD4HepGeo() override; + [[deprecated("Use getDetector() instead")]] + virtual dd4hep::Detector* lcdd() override; virtual dd4hep::Detector* getDetector() override; virtual std::string constantAsString(std::string const& name) override; // receive Geant4 Geometry