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
e8c8a67d
Commit
e8c8a67d
authored
11 years ago
by
Markus Frank
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug, which appears with earlier versions than root 5.34.10
parent
fb5753ef
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDG4/CMakeLists.txt
+1
-0
1 addition, 0 deletions
DDG4/CMakeLists.txt
DDG4/examples/TEve.C
+57
-0
57 additions, 0 deletions
DDG4/examples/TEve.C
with
58 additions
and
0 deletions
DDG4/CMakeLists.txt
+
1
−
0
View file @
e8c8a67d
...
...
@@ -37,6 +37,7 @@ endif()
if
(
NOT DD4HEP_USE_XERCESC
)
list
(
REMOVE_ITEM sources
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/Geant4XML.cpp
)
endif
()
SET
(
CMAKE_CXX_FLAGS
"-Wall -Wextra -pedantic -Wno-long-long"
)
#--------------------------- Main geant4 interface library (no plugins!)-----------
add_library
(
DD4hepG4 SHARED
${
sources
}
)
...
...
This diff is collapsed.
Click to expand it.
DDG4/examples/TEve.C
0 → 100644
+
57
−
0
View file @
e8c8a67d
// $Id: Geant4Data.h 513 2013-04-05 14:31:53Z gaede $
//====================================================================
// AIDA Detector description implementation
//--------------------------------------------------------------------
//
// Define the ROOT dictionaries for all data classes to be saved
// which are created by the DDG4 examples.
//
// Author : M.Frank
//
//====================================================================
#include
"DD4hep/LCDD.h"
#include
"TGeoManager.h"
#include
"TEveGeoNode.h"
#include
"TGLViewer.h"
#include
"TGLUtil.h"
#include
"TGLClip.h"
#include
"TMap.h"
#include
"TEveElement.h"
#include
"TSysEvtHandler.h"
#include
"TTimer.h"
#include
"TVirtualPad.h"
#define private public
#include
"TEveManager.h"
using
namespace
DD4hep
::
Geometry
;
void
TEve
()
{
LCDD
&
lcdd
=
LCDD
::
getInstance
();
const
char
*
fname
=
"file:../DD4hep.trunk/DDExamples/CLICSiD/compact/compact.xml"
;
lcdd
.
apply
(
"DD4hepCompactLoader"
,
1
,(
char
**
)
&
fname
);
TEveManager
::
Create
();
//TFile::SetCacheFileDir(".");
//gGeoManager = gEve->GetGeometry("LHCb.gdml");
//gGeoManager = gEve->GetGeometry("lhcbfull_v1.root");
gEve
->
fGeometries
->
Add
(
new
TObjString
(
fname
),
&
lcdd
.
manager
());
//gGeoManager->DefaultColors();
TEveGeoTopNode
*
tn
=
new
TEveGeoTopNode
(
gGeoManager
,
gGeoManager
->
GetTopNode
());
tn
->
SetVisLevel
(
4
);
gEve
->
AddGlobalElement
(
tn
);
gEve
->
FullRedraw3D
(
kTRUE
);
// EClipType not exported to CINT (see TGLUtil.h):
// 0 - no clip, 1 - clip plane, 2 - clip box
TGLViewer
*
v
=
gEve
->
GetDefaultGLViewer
();
v
->
GetClipSet
()
->
SetClipType
(
TGLClip
::
kClipPlane
);
v
->
ColorSet
().
Background
().
SetColor
(
kMagenta
+
4
);
v
->
SetGuideState
(
TGLUtil
::
kAxesEdge
,
kTRUE
,
kFALSE
,
0
);
v
->
RefreshPadEditor
(
v
);
v
->
CurrentCamera
().
RotateRad
(
-
1
.
2
,
0
.
5
);
v
->
DoDraw
();
}
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