Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
53e71520
Commit
53e71520
authored
9 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
implemented createSurfaceManager plugin (InstallSurfaceManager)
parent
a3c3fa1c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDRec/CMakeLists.txt
+1
-0
1 addition, 0 deletions
DDRec/CMakeLists.txt
DDRec/src/plugins/createSurfaceManager.cpp
+10
-12
10 additions, 12 deletions
DDRec/src/plugins/createSurfaceManager.cpp
with
11 additions
and
12 deletions
DDRec/CMakeLists.txt
+
1
−
0
View file @
53e71520
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
DDRec/src/plugins/createSurfaceManager.cpp
+
10
−
12
View file @
53e71520
#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
(
SurfaceManager
Plugin
,
DD4hep
::
DDRec
::
createSurfaceManager
)
DECLARE_APPLY
(
Install
SurfaceManager
,
DD4hep
::
DDRec
::
createSurfaceManager
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment