 |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
37 SurfaceMapsMap::const_iterator it =
_map.find( name ) ;
39 if( it !=
_map.end() ){
51 const std::vector<DetElement>& dets = description.
detectors( type ) ;
53 for(
const auto&
det : dets) {
55 const std::string& name =
det.name() ;
64 for(
auto* surf : detSL ) {
66 _map[ name ].emplace(surf->id(), surf );
69 _map[ type ].emplace(surf->id(), surf );
72 _map[
"world" ].emplace(surf->id(), surf );
82 std::stringstream sstr ;
84 sstr <<
"-------- SurfaceManager contains the following maps : --------- " << std::endl ;
86 for( SurfaceMapsMap::const_iterator mi =
_map.begin() ; mi !=
_map.end() ; ++mi ) {
88 sstr <<
" key: " << mi->first <<
" \t number of surfaces : " << mi->second.size() << std::endl ;
90 sstr <<
"---------------------------------------------------------------- " << std::endl ;
const SurfaceMap * map(const std::string &name) const
virtual const HandleMap & detectors() const =0
Accessor to the map of sub-detectors.
std::string toString() const
create a string with all available maps and their size (number of surfaces)
std::multimap< unsigned long, ISurface * > SurfaceMap
typedef for surface maps, keyed by the cellID
void initialize(const Detector &theDetector)
initialize all known surface maps
const SurfaceList & surfaceList()
static VolumeManager getVolumeManager(const Detector &description)
static accessor calling DD4hepVolumeManagerPlugin if necessary
virtual std::vector< std::string > detectorTypes() const =0
Access the available detector types.
SurfaceManager()=delete
No default constructor.
Namespace for the AIDA detector description toolkit.
The main interface to the dd4hep detector description package.