Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:17:41

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 #include "DD4hep/Detector.h"
0014 #include "DD4hep/Factories.h"
0015 #include "DD4hep/Printout.h"
0016 
0017 #include "DDRec/SurfaceManager.h"
0018 
0019 namespace dd4hep{
0020   namespace rec{
0021     
0022     using namespace detail ;
0023 
0024 
0025     /**
0026     \addtogroup SurfacePlugin
0027     @{
0028     \package SurfaceManager
0029 
0030     *  \brief Plugin that creates a SurfaceManager object and attaches it to description as a user extension object.
0031     *
0032     @}
0033     *
0034     *  @author  F.Gaede, CERN/DESY
0035     *  @date May, 11 2015
0036     *  @version $Id: $
0037     */
0038 
0039 
0040     static long createSurfaceManager(Detector& description, int /*argc*/, char** /*argv*/) {
0041 
0042       printout(INFO,"InstallSurfaceManager","**** running plugin InstallSurfaceManager ! " );
0043 
0044       description.addExtension<SurfaceManager>(  new SurfaceManager(description) ) ;
0045 
0046       printout(INFO,"InstallSurfaceManager","%s" , description.extension<SurfaceManager>()->toString().c_str() );
0047 
0048       return 1;
0049     }
0050   }
0051 }
0052 
0053 DECLARE_APPLY( InstallSurfaceManager, dd4hep::rec::createSurfaceManager )
0054 
0055