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
a1269c4a
Commit
a1269c4a
authored
8 years ago
by
Andre Sailer
Committed by
MarkusFrankATcernch
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DDG4 Only create volumemanager if not yet done
parent
54a6af86
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDG4/plugins/Geant4DetectorGeometryConstruction.cpp
+4
-1
4 additions, 1 deletion
DDG4/plugins/Geant4DetectorGeometryConstruction.cpp
with
4 additions
and
1 deletion
DDG4/plugins/Geant4DetectorGeometryConstruction.cpp
+
4
−
1
View file @
a1269c4a
...
...
@@ -92,7 +92,10 @@ void Geant4DetectorGeometryConstruction::constructGeo(Geant4DetectorConstruction
ctxt
->
geometry
=
conv
.
create
(
world
).
detach
();
g4map
.
attach
(
ctxt
->
geometry
);
G4VPhysicalVolume
*
w
=
ctxt
->
geometry
->
world
();
ctxt
->
lcdd
.
apply
(
"DD4hepVolumeManager"
,
0
,
0
);
// Create Geant4 volume manager only if not yet available
if
(
not
g4map
.
volumeManager
().
isValid
()
)
{
ctxt
->
lcdd
.
apply
(
"DD4hepVolumeManager"
,
0
,
0
);
}
// Create Geant4 volume manager
g4map
.
volumeManager
();
if
(
m_dumpHierarchy
)
{
...
...
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