Skip to content

Commit

Permalink
remove now unused initialize function
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel committed Aug 2, 2024
1 parent 25d13d1 commit 3f99f2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
4 changes: 0 additions & 4 deletions DDRec/include/DDRec/SurfaceManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
37 changes: 0 additions & 37 deletions DDRec/src/SurfaceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,43 +146,6 @@ namespace dd4hep {
return maps[0].get().second;
}

void SurfaceManager::initialize(const Detector& description) {

const std::vector<std::string>& types = description.detectorTypes() ;

for(unsigned i=0,N=types.size();i<N;++i){

const std::vector<DetElement>& dets = description.detectors( types[i] ) ;

for(unsigned j=0,M=dets.size();j<M;++j){

std::string name = dets[j].name() ;

SurfaceHelper surfH( dets[j] ) ;

const SurfaceList& detSL = surfH.surfaceList() ;

// add an empty map for this detector in case there are no surfaces attached
_map.emplace(name , SurfaceMap());

for( SurfaceList::const_iterator it = detSL.begin() ; it != detSL.end() ; ++it ){
ISurface* surf = *it ;

// enter surface into map for this detector
_map[ name ].emplace(surf->id(), 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 ;
Expand Down

0 comments on commit 3f99f2a

Please sign in to comment.