Skip to content
Snippets Groups Projects
Commit 53e71520 authored by Frank Gaede's avatar Frank Gaede
Browse files

implemented createSurfaceManager plugin (InstallSurfaceManager)

parent a3c3fa1c
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/DDCore/include)
file(GLOB sources src/*.cpp)
file(GLOB plugin_sources src/plugins/*.cpp)
set(rec_link_libraries DDCore ${DDSegmentation_LIBRARIES} ${ROOT_LIBRARIES} Geom Reflex)
......
#include "DD4hep/LCDD.h"
#include "DD4hep/Factories.h"
#include "DD4hep/DD4hepUnits.h"
#include "DD4hep/Printout.h"
#include "DDRec/SurfaceManager.h"
namespace DD4hep{
namespace DDRec{
......@@ -8,29 +10,25 @@ namespace DD4hep{
using namespace Geometry ;
/** Plugin that creates a SurfaceManager object and attaches
* to lcdd as user extension.
* it to lcdd as a user extension object.
*
* @author F.Gaede, CERN/DESY
* @date May, 11 2015
* @version $Id: $
*/
static long createSurfaceManager(LCDD& lcdd, int /*argc*/, char** /*argv*/) {
std::cout << " ************* " << std::endl
<< " **** running plugin SurfaceManagerPlugin ! " << std::endl
<< " ************* " << std::endl
<< std::endl ;
printout(INFO,"InstallSurfaceManager","**** running plugin InstallSurfaceManager ! " );
return 1;
}
lcdd.addExtension<SurfaceManager>( new SurfaceManager() ) ;
printout(INFO,"InstallSurfaceManager","%s" , lcdd.extension<SurfaceManager>()->toString().c_str() );
return 1;
}
}
}
DECLARE_APPLY( SurfaceManagerPlugin, DD4hep::DDRec::createSurfaceManager )
DECLARE_APPLY( InstallSurfaceManager, DD4hep::DDRec::createSurfaceManager )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment