Skip to content

Commit

Permalink
Revert "Remove the deprecated lcdd() (#58)" (#65)
Browse files Browse the repository at this point in the history
This reverts commit 5c3826d.
  • Loading branch information
kjvbrt authored Feb 8, 2024
1 parent 5c3826d commit 8ac4e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Detector/DetComponents/src/GeoSvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down
2 changes: 2 additions & 0 deletions Detector/DetComponents/src/GeoSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class GeoSvc : public extends<Service, IGeoSvc> {
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
Expand Down

0 comments on commit 8ac4e81

Please sign in to comment.