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
a77cd07d
Commit
a77cd07d
authored
2 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade examples - add explanation to XML
parent
19c4dc72
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
examples/DDCAD/compact/IR_assy_all_colour.xml
+18
-4
18 additions, 4 deletions
examples/DDCAD/compact/IR_assy_all_colour.xml
examples/DDCAD/compact/MultiShape_MS3D_jeep.xml
+20
-1
20 additions, 1 deletion
examples/DDCAD/compact/MultiShape_MS3D_jeep.xml
with
38 additions
and
5 deletions
examples/DDCAD/compact/IR_assy_all_colour.xml
+
18
−
4
View file @
a77cd07d
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
# For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
# For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
#
#
#==========================================================================
#==========================================================================
-->
-->
<includes>
<includes>
...
@@ -18,10 +19,23 @@
...
@@ -18,10 +19,23 @@
<detectors>
<detectors>
<detector
id=
"1"
name=
"Shape_STL"
type=
"DD4hep_TestShape_Creator"
>
<detector
id=
"1"
name=
"Shape_STL"
type=
"DD4hep_TestShape_Creator"
>
<check>
<check>
<shape
type=
"CAD_MultiVolume"
ref=
"${DD4hepExamplesINSTALL}/examples/DDCAD/models/STL/IR_assy_all_colour.stl"
unit=
"cm"
>
<!-- If you supply materials and visualisation attributes to the shape:
<volume
id=
"0"
name=
"s1"
vis=
"Shape3_vis"
>
1) The material attribute in the <shape/> element will be applied
</volume>
to all sub-volumes without an explicit material attribute in the
<volume/> element.
2) dto. the material cchild in the <shape/> element.
3) The material attribute in the <volume/> element applies
ONLY to the volume specified. This allows to specify a separate
material for each sub-volume in multi-volume CADs.
4) The vis attribute in the <volume/> element applies
ONLY to the volume specified. The name identifies a dd4hep vis object.
-->
<shape
type=
"CAD_MultiVolume"
ref=
"${DD4hepExamplesINSTALL}/examples/DDCAD/models/STL/IR_assy_all_colour.stl"
unit=
"cm"
material=
"Iron"
>
<!-- alternative: <material name="Iron"/> -->
<volume
id=
"0"
name=
"s1"
vis=
"Shape3_vis"
material=
"Gold"
/>
</shape>
</shape>
</check>
</check>
...
...
This diff is collapsed.
Click to expand it.
examples/DDCAD/compact/MultiShape_MS3D_jeep.xml
+
20
−
1
View file @
a77cd07d
...
@@ -18,8 +18,27 @@
...
@@ -18,8 +18,27 @@
<detectors>
<detectors>
<detector
id=
"1"
name=
"Shape_OBJ"
type=
"DD4hep_TestShape_Creator"
>
<detector
id=
"1"
name=
"Shape_OBJ"
type=
"DD4hep_TestShape_Creator"
>
<check>
<check>
<shape
type=
"CAD_MultiVolume"
ref=
"${DD4hepExamplesINSTALL}/examples/DDCAD/models/MS3D/jeep1.ms3d"
unit=
"cm"
>
<!-- The <envelope/> element defines an envelope volume for the
contained subvolumes defined by the <volume/> elements.
The element informationm id fed to a plugin of type
"DD4hep_StdVolume".
See <DD4hep>/DDCore/src/XML/Utilities.cpp for
details about possible arguments.
If you supply materials and visualisation attributes to the shape:
1) The material attribute in the <shape/> element will be applied
to all sub-volumes without an explicit material attribute in the
<volume/> element.
2) dto. the material cchild in the <shape/> element.
3) The material attribute in the <volume/> element applies
ONLY to the volume specified. This allows to specify a separate
material for each sub-volume in multi-volume CADs.
4) The vis attribute in the <volume/> element applies
ONLY to the volume specified. The name identifies a dd4hep vis object.
-->
<shape
type=
"CAD_MultiVolume"
ref=
"${DD4hepExamplesINSTALL}/examples/DDCAD/models/MS3D/jeep1.ms3d"
unit=
"cm"
>
<!-- Envelope definition
<!-- Envelope definition
This is optional: By default the child volumes are placed in an assembly.
This is optional: By default the child volumes are placed in an assembly.
-->
-->
...
...
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