DD4hep  01.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
dd4hep::rec::SurfaceManager Class Reference

Surface manager class that holds maps of surfaces for all known sensitive detector types and individual sub detectors. More...

#include <SurfaceManager.h>

Public Member Functions

 SurfaceManager (Detector &theDetector)
 The constructor. More...
 
 SurfaceManager ()=delete
 No default constructor. More...
 
 SurfaceManager (const SurfaceManager &copy)=delete
 No copy constructor. More...
 
 ~SurfaceManager ()
 Default destructor. More...
 
SurfaceManageroperator= (const SurfaceManager &copy)=delete
 No assignment operator. More...
 
const SurfaceMapmap (const std::string name) const
 Get the maps of all surfaces associated to the given detector or type of detectors, e.g. More...
 
std::string toString () const
 create a string with all available maps and their size (number of surfaces) More...
 

Protected Member Functions

void initialize (Detector &theDetector)
 initialize all known surface maps More...
 

Protected Attributes

SurfaceMapsMap _map
 

Private Types

typedef std::map< std::string,
SurfaceMap
SurfaceMapsMap
 

Detailed Description

Surface manager class that holds maps of surfaces for all known sensitive detector types and individual sub detectors.

Maps can be retrieved via detector name.

Author
F.Gaede, DESY
Date
May, 11 2015
Version
$Id$

Definition at line 35 of file SurfaceManager.h.

Member Typedef Documentation

Definition at line 37 of file SurfaceManager.h.

Constructor & Destructor Documentation

dd4hep::rec::SurfaceManager::SurfaceManager ( Detector &  theDetector)

The constructor.

Definition at line 28 of file SurfaceManager.cpp.

dd4hep::rec::SurfaceManager::SurfaceManager ( )
delete

No default constructor.

dd4hep::rec::SurfaceManager::SurfaceManager ( const SurfaceManager copy)
delete

No copy constructor.

dd4hep::rec::SurfaceManager::~SurfaceManager ( )

Default destructor.

Definition at line 38 of file SurfaceManager.cpp.

Member Function Documentation

void dd4hep::rec::SurfaceManager::initialize ( Detector &  theDetector)
protected
const SurfaceMap * dd4hep::rec::SurfaceManager::map ( const std::string  name) const

Get the maps of all surfaces associated to the given detector or type of detectors, e.g.

map("tracker") returns a map with all surfaces assigned to tracking detectors. Returns 0 if no map exists.

Definition at line 43 of file SurfaceManager.cpp.

References std::multimap< K, T >::find().

SurfaceManager& dd4hep::rec::SurfaceManager::operator= ( const SurfaceManager copy)
delete

No assignment operator.

std::string dd4hep::rec::SurfaceManager::toString ( ) const

create a string with all available maps and their size (number of surfaces)

Definition at line 92 of file SurfaceManager.cpp.

References std::endl(), and std::stringstream::str().

Referenced by dd4hep::rec::createSurfaceManager().

Member Data Documentation

SurfaceMapsMap dd4hep::rec::SurfaceManager::_map
protected

Definition at line 74 of file SurfaceManager.h.


The documentation for this class was generated from the following files: