DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
createSurfaceManager.cpp
Go to the documentation of this file.
1 #include "DD4hep/LCDD.h"
2 #include "DD4hep/Factories.h"
3 #include "DD4hep/Printout.h"
4 
5 #include "DDRec/SurfaceManager.h"
6 
7 namespace DD4hep{
8  namespace DDRec{
9 
10  using namespace Geometry ;
11 
12 
28  static long createSurfaceManager(LCDD& lcdd, int /*argc*/, char** /*argv*/) {
29 
30  printout(INFO,"InstallSurfaceManager","**** running plugin InstallSurfaceManager ! " );
31 
33 
34  printout(INFO,"InstallSurfaceManager","%s" , lcdd.extension<SurfaceManager>()->toString().c_str() );
35 
36  return 1;
37  }
38  }
39 }
40 
41 DECLARE_APPLY( InstallSurfaceManager, DD4hep::DDRec::createSurfaceManager )
42 
43 
IFACE * addExtension(CONCRETE *c)
Extend the sensitive detector element with an arbitrary structure accessible by the type...
Definition: LCDD.h:290
#define DECLARE_APPLY(name, func)
Definition: Factories.h:211
std::string toString() const
create a string with all available maps and their size (number of surfaces)
T * extension(bool alert=true) const
Access extension element by the type.
Definition: LCDD.h:300
static long createSurfaceManager(LCDD &lcdd, int, char **)
The main interface to the DD4hep detector description package.
Definition: LCDD.h:82
int printout(PrintLevel severity, const char *src, const char *fmt,...)
Calls the display action with a given severity level.
Definition: Printout.cpp:111