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
651a30c7
Commit
651a30c7
authored
11 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- fixed naming of volumes (using "%03d")
parent
cdaa6774
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
DDExamples/ILDExDet/src/compact/ILDExTPC_geo.cpp
+2
-2
2 additions, 2 deletions
DDExamples/ILDExDet/src/compact/ILDExTPC_geo.cpp
with
2 additions
and
2 deletions
DDExamples/ILDExDet/src/compact/ILDExTPC_geo.cpp
+
2
−
2
View file @
651a30c7
...
@@ -81,11 +81,11 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
...
@@ -81,11 +81,11 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
for
(
int
i
=
0
;
i
<
nTPClayer
;
++
i
){
for
(
int
i
=
0
;
i
<
nTPClayer
;
++
i
){
Tube
gas_tubL
(
r0
+
(
2
*
i
)
*
dR
,
r0
+
(
2
*
i
+
1
)
*
dR
,
zh
);
Tube
gas_tubL
(
r0
+
(
2
*
i
)
*
dR
,
r0
+
(
2
*
i
+
1
)
*
dR
,
zh
);
Volume
gas_volL
(
_toString
(
i
,
"tpc_row_lower_%
2
d"
)
,
gas_tubL
,
part_mat
);
Volume
gas_volL
(
_toString
(
i
,
"tpc_row_lower_%
03
d"
)
,
gas_tubL
,
part_mat
);
part_vol
.
placeVolume
(
gas_volL
,
Rotation
(
0
,
0
,
0
)
);
part_vol
.
placeVolume
(
gas_volL
,
Rotation
(
0
,
0
,
0
)
);
Tube
gas_tubU
(
r0
+
(
2
*
i
+
1
)
*
dR
,
r0
+
(
2
*
i
+
2
)
*
dR
,
zh
);
Tube
gas_tubU
(
r0
+
(
2
*
i
+
1
)
*
dR
,
r0
+
(
2
*
i
+
2
)
*
dR
,
zh
);
Volume
gas_volU
(
_toString
(
i
,
"tpc_row_upper_%
2
d"
)
,
gas_tubU
,
part_mat
);
Volume
gas_volU
(
_toString
(
i
,
"tpc_row_upper_%
03
d"
)
,
gas_tubU
,
part_mat
);
gas_volU
.
setSensitiveDetector
(
sens
);
gas_volU
.
setSensitiveDetector
(
sens
);
part_vol
.
placeVolume
(
gas_volU
,
Rotation
(
0
,
0
,
0
)
).
addPhysVolID
(
"layer"
,
i
)
;
part_vol
.
placeVolume
(
gas_volU
,
Rotation
(
0
,
0
,
0
)
).
addPhysVolID
(
"layer"
,
i
)
;
...
...
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