Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:12:44

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : F.Gaede
0011 //
0012 //==========================================================================
0013 #ifndef DDREC_DETECTORSURFACES_H
0014 #define DDREC_DETECTORSURFACES_H
0015 
0016 #include "DDRec/Surface.h"
0017 
0018 namespace dd4hep {
0019   namespace rec {
0020 
0021     /** View on DetElements for accessing the surfaces assigned to this DetElement
0022      *  in detector construction.
0023      *
0024      * @author F.Gaede, DESY
0025      * @date Apr, 10 2014
0026      * @version $Id$
0027      */
0028     class DetectorSurfaces: virtual public DetElement {
0029 
0030     public:
0031       typedef DetElement DetElement;
0032 
0033       DetectorSurfaces(const DetElement& e);
0034 
0035       virtual ~DetectorSurfaces();
0036 
0037       /// get the list of surfaces added to this DetElement
0038       const SurfaceList& surfaceList() { return *_sL ; }
0039 
0040     protected :
0041       SurfaceList* _sL ;
0042 
0043       /// initializes surfaces from VolSurfaces assigned to this DetElement in detector construction
0044       void initialize() ;
0045 
0046     };
0047 
0048   } /* namespace rec */
0049 } /* namespace dd4hep */
0050 
0051 
0052 
0053 #endif // DDREC_DETECTORSURFACES_H