Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DD4hep/examples/ClientTests/compact/Check_Shape_Tessellated.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <lccdd>
0003 <!-- #==========================================================================
0004      #  AIDA Detector description implementation 
0005      #==========================================================================
0006      # Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0007      # All rights reserved.
0008      #
0009      # For the licensing terms see $DD4hepINSTALL/LICENSE.
0010      # For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0011      #
0012      #==========================================================================
0013 -->
0014 
0015   <includes>
0016     <gdmlFile ref="CheckShape.xml"/>
0017   </includes>
0018   <define>
0019     <constant name="sqrt5" value="sqrt(5.0)"/>
0020   </define>
0021 
0022   <detectors>
0023     <detector id="1" name="Shape_Tessellated" type="DD4hep_TestShape_Creator">
0024       <check vis="Shape1_vis">
0025         <shape type="TessellatedSolid">
0026           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="-1*cm"/>
0027           <vertex x="0 * cm" y="0.5 * (-1 + sqrt5) * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0028           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0029           <vertex x="-1 * cm" y="1 * cm" z="-1 * cm"/>
0030 
0031           <vertex x="1 * cm" y="1 * cm" z="-1 * cm"/>
0032           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="-1 * cm"/>
0033           <vertex x="0 * cm" y="0.5 * (-1 + sqrt5) * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0034           <vertex x="1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0035 
0036           <vertex x="1 * cm" y="1 * cm" z="-1 * cm"/>
0037           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="-1 * cm"/>
0038           <vertex x="0.5 * (-1 + sqrt5) * cm" y="0.5 * (1 + sqrt5) * cm" z="0 * cm"/>
0039           <vertex x="0.5 * (1 + sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0040 
0041           <vertex x="0.5 * (1 - sqrt5) * cm" y="0.5 * (1 + sqrt5) * cm" z="0 * cm"/>
0042           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="-1 * cm"/>
0043           <vertex x="0.5 * (-1 + sqrt5) * cm" y="0.5 * (1 + sqrt5) * cm" z="0 * cm"/>
0044           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="1 * cm"/>
0045 
0046           <vertex x="0.5 * (1 - sqrt5) * cm" y="0.5 * (1 + sqrt5) * cm" z="0 * cm"/>
0047           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="-1 * cm"/>
0048           <vertex x="-1 * cm" y="1 * cm" z="-1 * cm"/>
0049           <vertex x="0.5 * (-1 - sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0050 
0051           <vertex x="1 * cm" y="1 * cm" z="-1 * cm"/>
0052           <vertex x="0.5 * (1 + sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0053           <vertex x="0.5 * (1 + sqrt5) * cm" y="0 * cm" z="0.5 * (1 - sqrt5) * cm"/>
0054           <vertex x="1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0055 
0056           <vertex x="0.5 * (1 + sqrt5) * cm" y="0 * cm" z="0.5 * (1 - sqrt5) * cm"/>
0057           <vertex x="0.5 * (1 + sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0058           <vertex x="1 * cm" y="-1 * cm" z="-1 * cm"/>
0059           <vertex x="1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0060 
0061           <vertex x="1 * cm" y="-1 * cm" z="-1 * cm"/>
0062           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="-1 * cm"/>
0063           <vertex x="0 * cm" y="0.5 * (1 - sqrt5) * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0064           <vertex x="1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0065 
0066           <vertex x="1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0067           <vertex x="0 * cm" y="0.5 * (-1 + sqrt5) * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0068           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0069           <vertex x="0 * cm" y="0.5 * (1 - sqrt5) * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0070 
0071           <vertex x="0.5 * (-1 + sqrt5) * cm" y="0.5 * (1 + sqrt5) * cm" z="0 * cm"/>
0072           <vertex x="0.5 * (1 + sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0073           <vertex x="1 * cm" y="1 * cm" z="1 * cm"/>
0074           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="1 * cm"/>
0075 
0076           <vertex x="0.5 * (1 + sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0077           <vertex x="1 * cm" y="1 * cm" z="1 * cm"/>
0078           <vertex x="1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0079           <vertex x="0.5 * (1 + sqrt5) * cm" y="0 * cm" z="0.5 * (-1 + sqrt5) * cm"/>
0080 
0081           <vertex x="0.5 * (1 + sqrt5) * cm" y="0 * cm" z="0.5 * (1 - sqrt5) * cm"/>
0082           <vertex x="0.5 * (1 + sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0083           <vertex x="0.5 * (1 + sqrt5) * cm" y="0 * cm" z="0.5 * (-1 + sqrt5) * cm"/>
0084           <vertex x="0.5 * (1 + sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0085 
0086           <vertex x="0.5 * (1 - sqrt5) * cm" y="0.5 * (1 + sqrt5) * cm" z="0 * cm"/>
0087           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="1 * cm"/>
0088           <vertex x="-1 * cm" y="1 * cm" z="1 * cm"/>
0089           <vertex x="0.5 * (-1 - sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0090 
0091           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="1 * cm"/>
0092           <vertex x="0 * cm" y="0.5 * (-1 + sqrt5) * cm" z="0.5 * (1 + sqrt5) * cm"/>
0093           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0094           <vertex x="-1 * cm" y="1 * cm" z="1 * cm"/>
0095 
0096           <vertex x="1 * cm" y="1 * cm" z="1 * cm"/>
0097           <vertex x="0 * cm" y="0.5 * (1 + sqrt5) * cm" z="1 * cm"/>
0098           <vertex x="0 * cm" y="0.5 * (-1 + sqrt5) * cm" z="0.5 * (1 + sqrt5) * cm"/>
0099           <vertex x="1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0100 
0101           <vertex x="0 * cm" y="0.5 * (1 - sqrt5) * cm" z="0.5 * (1 + sqrt5) * cm"/>
0102           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0103           <vertex x="0 * cm" y="0.5 * (-1 + sqrt5) * cm" z="0.5 * (1 + sqrt5) * cm"/>
0104           <vertex x="1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0105 
0106           <vertex x="0 * cm" y="0.5 * (1 - sqrt5) * cm" z="0.5 * (1 + sqrt5) * cm"/>
0107           <vertex x="1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0108           <vertex x="1 * cm" y="-1 * cm" z="1 * cm"/>
0109           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="1 * cm"/>
0110 
0111           <vertex x="0.5 * (1 + sqrt5) * cm" y="0 * cm" z="0.5 * (-1 + sqrt5) * cm"/>
0112           <vertex x="0.5 * (1 + sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0113           <vertex x="1 * cm" y="-1 * cm" z="1 * cm"/>
0114           <vertex x="1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0115 
0116           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0117           <vertex x="-1 * cm" y="1 * cm" z="1 * cm"/>
0118           <vertex x="0.5 * (-1 - sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0119           <vertex x="0.5 * (-1 - sqrt5) * cm" y="0 * cm" z="0.5 * (-1 + sqrt5) * cm"/>
0120 
0121           <vertex x="-1 * cm" y="-1 * cm" z="1 * cm"/>
0122           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0123           <vertex x="0.5 * (-1 - sqrt5) * cm" y="0 * cm" z="0.5 * (-1 + sqrt5) * cm"/>
0124           <vertex x="0.5 * (-1 - sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0125 
0126           <vertex x="0 * cm" y="0.5 * (1 - sqrt5) * cm" z="0.5 * (1 + sqrt5) * cm"/>
0127           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (1 + sqrt5) * cm"/>
0128           <vertex x="-1 * cm" y="-1 * cm" z="1 * cm"/>
0129           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="1 * cm"/>
0130 
0131           <vertex x="0.5 * (-1 - sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0132           <vertex x="0.5 * (-1 - sqrt5) * cm" y="0 * cm" z="0.5 * (1 - sqrt5) * cm"/>
0133           <vertex x="0.5 * (-1 - sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0134           <vertex x="0.5 * (-1 - sqrt5) * cm" y="0 * cm" z="0.5 * (-1 + sqrt5) * cm"/>
0135 
0136           <vertex x="0.5 * (-1 - sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0137           <vertex x="0.5 * (-1 - sqrt5) * cm" y="0 * cm" z="0.5 * (1 - sqrt5) * cm"/>
0138           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0139           <vertex x="-1 * cm" y="-1 * cm" z="-1 * cm"/>
0140 
0141           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="-1 * cm"/>
0142           <vertex x="0.5 * (1 - sqrt5) * cm" y="0.5 * (-1 - sqrt5) * cm" z="0 * cm"/>
0143           <vertex x="0.5 * (-1 - sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0144           <vertex x="-1 * cm" y="-1 * cm" z="-1 * cm"/>
0145 
0146           <vertex x="0.5 * (1 - sqrt5) * cm" y="0.5 * (-1 - sqrt5) * cm" z="0 * cm"/>
0147           <vertex x="0.5 * (-1 - sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0148           <vertex x="-1 * cm" y="-1 * cm" z="1 * cm"/>
0149           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="1 * cm"/>
0150 
0151           <vertex x="-1 * cm" y="1 * cm" z="-1 * cm"/>
0152           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0153           <vertex x="0.5 * (-1 - sqrt5) * cm" y="0 * cm" z="0.5 * (1 - sqrt5) * cm"/>
0154           <vertex x="0.5 * (-1 - sqrt5) * cm" y="1 * cm" z="0 * cm"/>
0155 
0156           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="-1 * cm"/>
0157           <vertex x="0 * cm" y="0.5 * (1 - sqrt5) * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0158           <vertex x="-1 * cm" y="0 * cm" z="0.5 * (-1 - sqrt5) * cm"/>
0159           <vertex x="-1 * cm" y="-1 * cm" z="-1 * cm"/>
0160 
0161           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="-1 * cm"/>
0162           <vertex x="0.5 * (1 - sqrt5) * cm" y="0.5 * (-1 - sqrt5) * cm" z="0 * cm"/>
0163           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="1 * cm"/>
0164           <vertex x="0.5 * (-1 + sqrt5) * cm" y="0.5 * (-1 - sqrt5) * cm" z="0 * cm"/>
0165 
0166           <vertex x="1 * cm" y="-1 * cm" z="-1 * cm"/>
0167           <vertex x="0.5 * (1 + sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0168           <vertex x="0.5 * (-1 + sqrt5) * cm" y="0.5 * (-1 - sqrt5) * cm" z="0 * cm"/>
0169           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="-1 * cm"/>
0170 
0171           <vertex x="0.5 * (1 + sqrt5) * cm" y="-1 * cm" z="0 * cm"/>
0172           <vertex x="1 * cm" y="-1 * cm" z="1 * cm"/>
0173           <vertex x="0 * cm" y="0.5 * (-1 - sqrt5) * cm" z="1 * cm"/>
0174           <vertex x="0.5 * (-1 + sqrt5) * cm" y="0.5 * (-1 - sqrt5) * cm" z="0 * cm"/>
0175 
0176           <facet v0="0"  v1="1"  v2="2"  v3="3"/>
0177           <facet v0="4"  v1="7"  v2="6"  v3="5"/>
0178           <facet v0="8"  v1="9"  v2="10" v3="11"/>
0179           <facet v0="12" v1="15" v2="14" v3="13"/>
0180           <facet v0="16" v1="17" v2="18" v3="19"/>
0181           <facet v0="20" v1="21" v2="22" v3="23"/>
0182           <facet v0="24" v1="25" v2="26" v3="27"/>
0183           <facet v0="28" v1="29" v2="30" v3="31"/>
0184           <facet v0="32" v1="35" v2="34" v3="33"/>
0185           <facet v0="36" v1="39" v2="38" v3="37"/>
0186           <facet v0="40" v1="41" v2="42" v3="43"/>
0187           <facet v0="44" v1="45" v2="46" v3="47"/>
0188           <facet v0="48" v1="51" v2="50" v3="49"/>
0189           <facet v0="52" v1="55" v2="54" v3="53"/>
0190           <facet v0="56" v1="57" v2="58" v3="59"/>
0191           <facet v0="60" v1="63" v2="62" v3="61"/>
0192           <facet v0="64" v1="67" v2="66" v3="65"/>
0193           <facet v0="68" v1="71" v2="70" v3="69"/>
0194           <facet v0="72" v1="73" v2="74" v3="75"/>
0195           <facet v0="76" v1="77" v2="78" v3="79"/>
0196           <facet v0="80" v1="81" v2="82" v3="83"/>
0197           <facet v0="84" v1="87" v2="86" v3="85"/>
0198           <facet v0="88" v1="89" v2="90" v3="91"/>
0199           <facet v0="92" v1="93" v2="94" v3="95"/>
0200           <facet v0="96" v1="99" v2="98" v3="97"/>
0201           <facet v0="100" v1="101" v2="102" v3="103"/>
0202           <facet v0="104" v1="107" v2="106" v3="105"/>
0203           <facet v0="108" v1="111" v2="110" v3="109"/>
0204           <facet v0="112" v1="113" v2="114" v3="115"/>
0205           <facet v0="116" v1="117" v2="118" v3="119"/>
0206 
0207         </shape>
0208         <position x="0 * cm"    y="0 * cm"  z="0 * cm"/>
0209         <rotation x="0 * rad"   y="0 * rad" z="0 * rad"/>
0210       </check>
0211       <test  type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/ClientTests/ref/Ref_Tessellated.txt" create="CheckShape_create"/>
0212       <test_writing_reference  type="DD4hep_Mesh_Verifier" ref="${DD4hepExamplesINSTALL}/examples/ClientTests/ref/Ref_Tessellated.txt" create="1"/>
0213     </detector>
0214   </detectors>
0215 </lccdd>