DD4hep  01.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
createSurfaceManager.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : F.Gaede
11 //
12 //==========================================================================
13 #include "DD4hep/Detector.h"
14 #include "DD4hep/Factories.h"
15 #include "DD4hep/Printout.h"
16 
17 #include "DDRec/SurfaceManager.h"
18 
19 namespace dd4hep{
20  namespace rec{
21 
22  using namespace detail ;
23 
24 
40  static long createSurfaceManager(Detector& description, int /*argc*/, char** /*argv*/) {
41 
42  printout(INFO,"InstallSurfaceManager","**** running plugin InstallSurfaceManager ! " );
43 
44  description.addExtension<SurfaceManager>( new SurfaceManager(description) ) ;
45 
46  printout(INFO,"InstallSurfaceManager","%s" , description.extension<SurfaceManager>()->toString().c_str() );
47 
48  return 1;
49  }
50  }
51 }
52 
53 DECLARE_APPLY( InstallSurfaceManager, dd4hep::rec::createSurfaceManager )
54 
55 
Surface manager class that holds maps of surfaces for all known sensitive detector types and individu...
std::string toString() const
create a string with all available maps and their size (number of surfaces)
static long createSurfaceManager(Detector &description, int, char **)
T c_str(T...args)