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
23340097
Commit
23340097
authored
10 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- add a surface to reflected DetElement directly
( copy did not work )
parent
9aceabfc
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
examples/ILDExDet/src/ILDExTPC_geo.cpp
+6
-0
6 additions, 0 deletions
examples/ILDExDet/src/ILDExTPC_geo.cpp
with
6 additions
and
0 deletions
examples/ILDExDet/src/ILDExTPC_geo.cpp
+
6
−
0
View file @
23340097
...
@@ -245,6 +245,12 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
...
@@ -245,6 +245,12 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
// needs a copy function for DetElement
// needs a copy function for DetElement
// DetElement rdet(lcdd,part_nam+"_negativ",px_det.typeStr(),px_det.id()+1);
// DetElement rdet(lcdd,part_nam+"_negativ",px_det.typeStr(),px_det.id()+1);
DetElement
rdet
=
part_det
.
clone
(
part_nam
+
"_negativ"
,
px_det
.
id
()
+
1
);
DetElement
rdet
=
part_det
.
clone
(
part_nam
+
"_negativ"
,
px_det
.
id
()
+
1
);
if
(
part_det
.
id
()
==
0
){
VolPlane
surf
(
part_vol
,
SurfaceType
(
SurfaceType
::
Helper
)
,
px_tube
.
zhalf
()
,
x_tube
.
zhalf
(),
u
,
n
,
v
)
;
volSurfaceList
(
rdet
)
->
push_back
(
surf
)
;
}
rdet
.
setPlacement
(
part_phv2
);
rdet
.
setPlacement
(
part_phv2
);
tpcData
->
endplate2
=
rdet
;
tpcData
->
endplate2
=
rdet
;
tpc
.
add
(
rdet
);
tpc
.
add
(
rdet
);
...
...
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