From 3f99f2acf2cfa776b8a164c2710ad921ec1dc04e Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Fri, 2 Aug 2024 14:35:21 +0200 Subject: [PATCH] remove now unused initialize function --- DDRec/include/DDRec/SurfaceManager.h | 4 --- DDRec/src/SurfaceManager.cpp | 37 ---------------------------- 2 files changed, 41 deletions(-) diff --git a/DDRec/include/DDRec/SurfaceManager.h b/DDRec/include/DDRec/SurfaceManager.h index 5435a7513..f12e7d508 100644 --- a/DDRec/include/DDRec/SurfaceManager.h +++ b/DDRec/include/DDRec/SurfaceManager.h @@ -68,10 +68,6 @@ namespace dd4hep { protected : - - /// initialize all known surface maps - void initialize(const Detector& theDetector) ; - /// name has to be the name of a single detector! not e.g. tracker or world. const SurfaceMap& getOrConstruct(const std::string name); diff --git a/DDRec/src/SurfaceManager.cpp b/DDRec/src/SurfaceManager.cpp index 6aea7aecb..563ad2ead 100644 --- a/DDRec/src/SurfaceManager.cpp +++ b/DDRec/src/SurfaceManager.cpp @@ -146,43 +146,6 @@ namespace dd4hep { return maps[0].get().second; } - void SurfaceManager::initialize(const Detector& description) { - - const std::vector& types = description.detectorTypes() ; - - for(unsigned i=0,N=types.size();i& dets = description.detectors( types[i] ) ; - - for(unsigned j=0,M=dets.size();jid(), surf ); - - // enter surface into map for detector type - _map[ types[i] ].emplace(surf->id(), surf ); - - // enter surface into world map - _map[ "world" ].emplace(surf->id(), surf ); - - } - } - } - - } - std::string SurfaceManager::toString() const { std::stringstream sstr ;