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
fc65d157
Commit
fc65d157
authored
12 years ago
by
Markus Frank
Browse files
Options
Downloads
Patches
Plain Diff
Use standard plusgin directory and create plugin library
parent
6398c84e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDCore/src/StandardPlugins.cpp
+0
-50
0 additions, 50 deletions
DDCore/src/StandardPlugins.cpp
with
0 additions
and
50 deletions
DDCore/src/StandardPlugins.cpp
deleted
100644 → 0
+
0
−
50
View file @
6398c84e
// $Id:$
//====================================================================
// AIDA Detector description implementation for LCD
//--------------------------------------------------------------------
//
// Standard plugins necessary for nearly everything.
//
// Author : M.Frank
//
//====================================================================
// Framework include files
#include
"DD4hep/Factories.h"
#include
"DD4hep/LCDD.h"
// ROOT includes
#include
"TGeoManager.h"
#include
"TGeoVolume.h"
using
namespace
std
;
using
namespace
DD4hep
::
Geometry
;
static
long
display
(
LCDD
&
/* lcdd */
,
int
argc
,
char
**
argv
)
{
TGeoManager
*
mgr
=
gGeoManager
;
const
char
*
opt
=
"ogl"
;
if
(
argc
>
0
)
{
opt
=
argv
[
0
];
}
if
(
mgr
)
{
mgr
->
SetVisLevel
(
4
);
mgr
->
SetVisOption
(
1
);
TGeoVolume
*
vol
=
mgr
->
GetTopVolume
();
if
(
vol
)
{
vol
->
Draw
(
opt
);
return
1
;
}
}
return
0
;
}
DECLARE_APPLY
(
DD4hepGeometryDisplay
,
display
);
static
long
load_compact
(
LCDD
&
lcdd
,
int
argc
,
char
**
argv
)
{
for
(
size_t
j
=
0
;
j
<
argc
;
++
j
)
{
string
input
=
argv
[
j
];
cout
<<
"Processing compact input file : "
<<
input
<<
endl
;
lcdd
.
fromCompact
(
input
);
}
return
1
;
}
DECLARE_APPLY
(
DD4hepCompactLoader
,
load_compact
);
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