Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/persistency/gdml/G01/matricesandloops.gdml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8" ?>
0002 <gdml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://cern.ch/service-spi/app/releases/GDML/schema/gdml.xsd" >
0003  <define>
0004   <position name="v0" unit="mm" x="0" y="0" z="0" />
0005   <position name="v1" unit="mm" x="13" y="15" z="10" />
0006   <position name="v2" unit="mm" x="-12" y="-10" z="20" />
0007   <position name="v3" unit="mm" x="22" y="14" z="25" />
0008   <position name="P" unit="mm" x="10" y="20" z="30" />
0009   <matrix name="m" coldim="3" values="100000 200000 30000 
0010                                       100000 500000 6000 
0011                                       70000 8000 90000"/>
0012 
0013   <matrix name="la" coldim="1" values="100000 200000 30000 100000 500000 6000 70000 8000 90000"/>
0014 
0015   <matrix name="k" coldim="1" values="3 2 2.2 1.4 5 6.3 72 2.8 19"/>
0016 
0017   <variable name="ss" value="1"/>
0018   <variable name="ii" value="1"/>
0019   <variable name="j" value="2"/>
0020  </define>
0021  <materials>
0022   <material Z="7" formula=" " name="Nitrogen" >
0023    <D value="0.00125" />
0024    <atom value="14.01" />
0025   </material>
0026   <material Z="8" formula=" " name="Oxygen" >
0027    <D value="0.00143" />
0028    <atom value="16.0" />
0029   </material>
0030   <material formula=" " name="Air" >
0031    <D value="0.0012" />
0032    <fraction n="0.7" ref="Nitrogen" />
0033    <fraction n="0.3" ref="Oxygen" />
0034   </material>
0035  </materials>
0036  <solids>
0037   <tet aunit="degree" lunit="mm" name="Tet" vertex1="v0" vertex2="v1" vertex3="v2" vertex4="v3" />
0038   <box aunit="radian" lunit="mm" name="WorldBox" x="(m[ii,j]+m[j,ii]+la[9-ii+ii])" y="(m[j-1,ii*3-1]+m[j*1,ii+2])" z="(la[ii]+la[j*2+1])+2" />
0039   <box aunit="radian" lunit="mm" name="LoopBox" x="k[9]/2" y="la[9]" z="27" />
0040  </solids>
0041 
0042  <structure>
0043   <volume name="LoopVol" >
0044    <materialref ref="Air" />
0045    <solidref ref="LoopBox" />
0046   </volume>
0047   <volume name="Tetvol" >
0048    <materialref ref="Air" />
0049    <solidref ref="Tet" />
0050   </volume>
0051   <volume name="World" >
0052    <materialref ref="Air" />
0053    <solidref ref="WorldBox" />
0054    <physvol>
0055     <volumeref ref="Tetvol" />
0056     <positionref ref="P" />
0057     <rotation name="lrp" unit="degree" x="10"  y="20" z="30" />
0058    </physvol>
0059    <loop for="ss" to="8" step="1">
0060     <physvol>
0061      <volumeref ref="LoopVol" />
0062      <position name="lp" unit="mm"     x="13*ss"  y="15*ss" z="10*ss" />
0063      <rotation name="lr" unit="degree" x="10*ss"  y="20*ss" z="30*ss" />
0064     </physvol>
0065    </loop>
0066   </volume>
0067  </structure>
0068  <setup name="Default" version="1.0" >
0069   <world ref="World" />
0070  </setup>
0071 </gdml>