From 220cc964e29fd9f0ccfadb6016ef634e5e2cfd47 Mon Sep 17 00:00:00 2001 From: Juraj Smiesko <34742917+kjvbrt@users.noreply.github.com> Date: Thu, 8 Feb 2024 17:43:41 +0100 Subject: [PATCH] Revert "Remove the deprecated lcdd() (#58)" This reverts commit 5c3826dc5bdffe3310d5b9d4e83001d75b74db74. --- Detector/DetComponents/src/GeoSvc.cpp | 2 ++ Detector/DetComponents/src/GeoSvc.h | 2 ++ 2 files changed, 4 insertions(+) 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