Warning, /DD4hep/examples/DDCAD/compact/MultiShape_MS3D_jeep.xml is written in an unsupported language. File is not indexed.
0001 <lccdd>
0002 <!-- #==========================================================================
0003 # AIDA Detector description implementation
0004 #==========================================================================
0005 # Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0006 # All rights reserved.
0007 #
0008 # For the licensing terms see $DD4hepINSTALL/LICENSE.
0009 # For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0010 #
0011 #==========================================================================
0012 -->
0013
0014 <includes>
0015 <gdmlFile ref="../../ClientTests/compact/CheckShape.xml"/>
0016 </includes>
0017
0018 <detectors>
0019 <detector id="1" name="Shape_OBJ" type="DD4hep_TestShape_Creator">
0020 <check>
0021 <!-- The <envelope/> element defines an envelope volume for the
0022 contained subvolumes defined by the <volume/> elements.
0023 The element informationm id fed to a plugin of type
0024 "DD4hep_StdVolume".
0025 See <DD4hep>/DDCore/src/XML/Utilities.cpp for
0026 details about possible arguments.
0027
0028 If you supply materials and visualisation attributes to the shape:
0029 1) The material attribute in the <shape/> element will be applied
0030 to all sub-volumes without an explicit material attribute in the
0031 <volume/> element.
0032 2) dto. the material cchild in the <shape/> element.
0033 3) The material attribute in the <volume/> element applies
0034 ONLY to the volume specified. This allows to specify a separate
0035 material for each sub-volume in multi-volume CADs.
0036 4) The vis attribute in the <volume/> element applies
0037 ONLY to the volume specified. The name identifies a dd4hep vis object.
0038 -->
0039 <shape type="CAD_MultiVolume"
0040 ref="${DD4hepExamplesINSTALL}/examples/DDCAD/models/MS3D/jeep1.ms3d"
0041 unit="cm">
0042 <!-- Envelope definition
0043 This is optional: By default the child volumes are placed in an assembly.
0044 -->
0045 <envelope name="Garage" material="Air" vis="Shape_grey">
0046 <shape type="Box" dx="10*cm" dy="10*cm" dz="10*cm"/>
0047 </envelope>
0048
0049 <!-- Transformation defining the positioning of all sub-volumes within the envelope -->
0050 <position x="-5*cm" y="0" z="0"/>
0051 <rotation x="0" y="0" z="-pi/2*rad"/>
0052
0053 <!-- These are the 4 wheels -->
0054 <volume id="0" name="Wheel1" material="Iron" vis="Shape0_vis">
0055 <position x="5*cm" y="5*cm" z="0"/>
0056 <rotation x="0" y="0" z="-pi/2*rad"/>
0057 </volume>
0058 <volume id="1" name="Wheel2" material="Iron" vis="Shape1_vis">
0059 <position x="2*cm" y="5*cm" z="0"/>
0060 <rotation x="0" y="0" z="-pi/4*rad"/>
0061 </volume>
0062 <volume id="2" name="Wheel3" material="Iron" vis="Shape2_vis">
0063 <position x="-5*cm" y="5*cm" z="0"/>
0064 <rotation x="0" y="0" z="pi/2*rad"/>
0065 </volume>
0066 <volume id="3" name="Wheel4" material="Iron" vis="Shape3_vis">
0067 <position x="-2*cm" y="5*cm" z="0"/>
0068 <rotation x="0" y="0" z="pi/4*rad"/>
0069 </volume>
0070
0071 <!-- This is the rest of the jeep -->
0072 <volume id="4" name="E" material="Iron" vis="Shape4_vis">
0073 </volume>
0074 <volume id="5" name="F" material="Iron" vis="Shape5_vis">
0075 </volume>
0076 <volume id="6" name="C" material="Iron" vis="Shape6_vis">
0077 </volume>
0078 </shape>
0079 </check>
0080
0081 </detector>
0082 </detectors>
0083 </lccdd>