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
cb29eb83
Commit
cb29eb83
authored
1 year ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
GeoHandler: store TGeoVolumes in deterministic order
parent
5236ba6f
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
DDCore/include/DD4hep/GeoHandler.h
+2
-1
2 additions, 1 deletion
DDCore/include/DD4hep/GeoHandler.h
DDCore/src/GeoHandler.cpp
+3
-1
3 additions, 1 deletion
DDCore/src/GeoHandler.cpp
with
5 additions
and
2 deletions
DDCore/include/DD4hep/GeoHandler.h
+
2
−
1
View file @
cb29eb83
...
...
@@ -59,7 +59,8 @@ namespace dd4hep {
*/
class
GeometryInfo
{
public:
std
::
set
<
TGeoShape
*>
solids
;
std
::
vector
<
TGeoShape
*>
solids
;
std
::
set
<
TGeoShape
*>
solid_set
;
std
::
set
<
Volume
>
volumeSet
;
std
::
vector
<
Volume
>
volumes
;
std
::
set
<
VisAttr
>
vis
;
...
...
This diff is collapsed.
Click to expand it.
DDCore/src/GeoHandler.cpp
+
3
−
1
View file @
cb29eb83
...
...
@@ -44,7 +44,9 @@ namespace {
collectSolid
(
geo
,
name
+
"_left"
,
name
+
"_left"
,
boolean
->
GetLeftShape
(),
boolean
->
GetLeftMatrix
());
collectSolid
(
geo
,
name
+
"_right"
,
name
+
"_right"
,
boolean
->
GetRightShape
(),
boolean
->
GetRightMatrix
());
}
geo
.
solids
.
emplace
(
shape
);
if
(
geo
.
solid_set
.
emplace
(
shape
).
second
)
{
geo
.
solids
.
push_back
(
shape
);
}
geo
.
trafos
.
emplace_back
(
node
,
matrix
);
}
}
...
...
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