DD4hep
1.34.0
Detector Description Toolkit for High Energy Physics
DDRec
src
plugins
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
printout(INFO,
"InstallSurfaceManager"
,
"**** the map of surfaces will be created on first access ! "
);
44
45
description.addExtension<
SurfaceManager
>(
new
SurfaceManager
(description) ) ;
46
47
48
return
1;
49
}
50
}
51
}
52
53
DECLARE_APPLY
( InstallSurfaceManager, dd4hep::rec::createSurfaceManager )
54
55
SurfaceManager.h
Detector.h
DECLARE_APPLY
#define DECLARE_APPLY(name, func)
Definition:
Factories.h:281
Factories.h
SurfaceManager
Plugin that creates a SurfaceManager object and attaches it to description as a user extension object...
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
Printout.h
Generated on Wed Dec 17 2025 15:29:25 for DD4hep by
1.8.18