Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DD4hep/examples/ClientTests/compact/NestedBoxReflection.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="${DD4hepINSTALL}/DDDetectors/compact/elements.xml"/>
0017     <gdmlFile  ref="${DD4hepINSTALL}/DDDetectors/compact/materials.xml"/>
0018   </includes>
0019 
0020   <define>
0021     <constant name="world_size" value="6*m"/>
0022     <constant name="world_x" value="world_size"/>
0023     <constant name="world_y" value="world_size"/>
0024     <constant name="world_z" value="world_size"/>
0025   </define>
0026 
0027   <display>
0028     <vis name="Invisible" showDaughters="false" visible="false"/>
0029     <vis name="InvisibleWithChildren" showDaughters="true" visible="false"/>
0030     <vis name="VisibleGrey"   alpha="0.4" r="0.7" g="0.7" b="0.7" showDaughters="true" visible="true"/>
0031     <vis name="DarkGrey"      alpha="0.4" r="0.3" g="0.3" b="0.3" showDaughters="true" visible="true"/>
0032     <vis name="VisibleRed"    alpha="0.6" r="1.0" g="0.0" b="0.0" showDaughters="true" visible="true"/>
0033     <vis name="VisibleBlue"   alpha="0.6" r="0.0" g="0.0" b="1.0" showDaughters="true" visible="true"/>
0034     <vis name="VisibleYellow" alpha="0.6" r="1.0" g="1.0" b="0.0" showDaughters="true" visible="true"/>
0035     <vis name="VisibleGreen"  alpha="0.6" r="0.0" g="1.0" b="0.0" showDaughters="true" visible="true"/>
0036     <vis name="VisibleCyan"   alpha="0.6" r="0.0" g="1.0" b="1.0" showDaughters="true" visible="true"/>
0037   </display>
0038 
0039   <limits>
0040     <limitset name="cal_limits">
0041       <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
0042     </limitset>
0043   </limits>
0044 
0045   <detectors>
0046 
0047     <detector id="1" name="NestedBoxes" type="DD4hep_Test_NestedBoxReflection" readout="NestedBoxHits" vis="VisibleGreen" limits="cal_limits">
0048       <assembly/>
0049       <dimensions x="50*cm"   y="70*cm"   z="90*cm" level="2">
0050         <position x="400*cm" y="0*cm" z="0*cm"/>
0051       </dimensions>
0052       <reflect name="ReflectionX">
0053         <rotation phiX="180.*deg" thetaX="90.*deg" phiY="90.*deg" thetaY="90.*deg" phiZ="0.*deg" thetaZ="0.*deg"/>
0054         <position x="200*cm" y="0*cm" z="0*cm"/>
0055       </reflect>
0056       <reflect_x  x="-200*cm" y="0*cm"    z="0*cm"/>
0057 
0058       <reflect name="ReflectionY">
0059         <rotation phiY="270.*deg" thetaY="90.*deg" phiX=" 0.*deg" thetaX="90.*deg" phiZ="0.*deg" thetaZ="0.*deg"/>
0060         <position x="0*cm" y="200*cm" z="0*cm"/>
0061       </reflect>
0062       <reflect_y  x="0*cm"    y="-200*cm" z="0*cm"/>
0063 
0064       <reflect_z  x="0*cm"    y="0*cm"    z="200*cm"/>
0065       <reflect_z  x="0*cm"    y="0*cm"    z="-200*cm"/>
0066     </detector>
0067 
0068     <!--
0069     -->
0070 
0071     <detector id="2" name="NestedTube" type="DD4hep_Test_TubeReflection" readout="NestedTubeHits" vis="VisibleGreen" limits="cal_limits">
0072       <assembly/>
0073       <dimensions r="100*cm" dz="50*cm" level="2">
0074         <position x="0*cm" y="200*cm" z="200*cm"/>
0075       </dimensions>
0076       <reflect_z  x="0*cm" y="200*cm" z="-200*cm"/>
0077     </detector>
0078 
0079 <!--
0080       <reflect_x  x="-200*cm" y="200*cm"    z="0*cm"/>
0081       <reflect_x  x="-200*cm" y="200*cm"    z="200*cm"/>
0082       <reflect_x  x="-200*cm" y="200*cm"    z="-200*cm"/>
0083       <reflect_x  x="-200*cm" y="-200*cm"   z="200*cm"/>
0084       <reflect_x  x="-200*cm" y="-200*cm"   z="-200*cm"/>
0085       <reflect_x  x="-200*cm" y="-200*cm"   z="0*cm"/>
0086 
0087       <reflect_y  x="0*cm"    y="200*cm"  z="200*cm"/>
0088       <reflect_y  x="0*cm"    y="200*cm"  z="-200*cm"/>
0089       <reflect_y  x="0*cm"    y="-200*cm" z="200*cm"/>
0090       <reflect_y  x="0*cm"    y="-200*cm" z="-200*cm"/>
0091       <reflect_y  x="200*cm"  y="0*cm"    z="200*cm"/>
0092       <reflect_y  x="-200*cm" y="0*cm"    z="200*cm"/>
0093       <reflect_y  x="200*cm"  y="0*cm"    z="-200*cm"/>
0094       <reflect_y  x="-200*cm" y="0*cm"    z="-200*cm"/>
0095       
0096       <reflect_z  x="200*cm"  y="200*cm"  z="0*cm"/>
0097       <reflect_z  x="200*cm"  y="200*cm"  z="200*cm"/>
0098       <reflect_z  x="200*cm"  y="200*cm"  z="-200*cm"/>
0099       <reflect_z  x="200*cm"  y="-200*cm" z="200*cm"/>
0100       <reflect_z  x="200*cm"  y="-200*cm" z="-200*cm"/>
0101       <reflect_z  x="200*cm"  y="-200*cm" z="0*cm"/>
0102 -->
0103     
0104   </detectors>
0105   
0106   <readouts>
0107     <readout name="NestedBoxHits">
0108       <id>system:8,lvl4:4,lvl3:4,lvl2:4,lvl1:4,lvl0:4</id> 
0109     </readout>
0110     <readout name="NestedTubeHits">
0111       <id>system:8,lvl4:4,lvl3:4,lvl2:4,lvl1:4,lvl0:4</id> 
0112     </readout>
0113   </readouts>
0114 
0115   <fields>
0116     <field name="GlobalSolenoid" type="solenoid" 
0117            inner_field="5.0*tesla"
0118            outer_field="-1.5*tesla" 
0119            zmax="2*m"
0120            outer_radius="3*m">
0121     </field>
0122   </fields>
0123 
0124 </lccdd>