Newer
Older
//==========================================================================
// AIDA Detector description implementation
//--------------------------------------------------------------------------
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
// All rights reserved.
//
// For the licensing terms see $DD4hepINSTALL/LICENSE.
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
//
// Author : F.Gaede
//
//==========================================================================
#include "DD4hep/Printout.h"
#include "DDRec/SurfaceManager.h"
namespace dd4hep{
namespace rec{
/**
\addtogroup SurfacePlugin
@{
\package SurfaceManager
* \brief Plugin that creates a SurfaceManager object and attaches it to description as a user extension object.
*
@}
*
* @author F.Gaede, CERN/DESY
* @date May, 11 2015
* @version $Id: $
*/
static long createSurfaceManager(Detector& description, int /*argc*/, char** /*argv*/) {
printout(INFO,"InstallSurfaceManager","**** running plugin InstallSurfaceManager ! " );
description.addExtension<SurfaceManager>( new SurfaceManager(description) ) ;
printout(INFO,"InstallSurfaceManager","%s" , description.extension<SurfaceManager>()->toString().c_str() );
return 1;
}
DECLARE_APPLY( InstallSurfaceManager, dd4hep::rec::createSurfaceManager )