Geant4 Cross Reference |
1 <?xml version="1.0" encoding="UTF-8"?> 2 <gdml_simple_extension xmlns:gdml_simple_extension="https://www.example.org" 3 xmlns:xs="https://www.w3.org/2001/XMLSchema-instance" 4 xs:noNamespaceSchemaLocation="./SimpleExtensionSchema/SimpleExtension.xsd"> 5 6 <extension> 7 <color name="test_color" R="0.1" G="0.2" B="0.3" A="1.0" /> 8 </extension> 9 10 <define> 11 <!-- world --> 12 <constant name="world_side" value="10000" /> 13 <constant name="world_x" value="world_side" /> 14 <constant name="world_y" value="world_side" /> 15 <constant name="world_z" value="world_side" /> 16 17 <!-- test volume --> 18 <constant name="test_box_size" value="100.0"/> 19 <position name="test_position"/> 20 21 </define> 22 23 <materials> 24 25 <!-- elements --> 26 <element name="Argon_e" Z="18.0" N="40" > 27 <atom type="A" unit="g/mol" value="39.9480" /> 28 </element> 29 30 <element name="Nitrogen_e" Z="7.0" N="14" > 31 <atom type="A" unit="g/mol" value=" 14.0100" /> 32 </element> 33 34 <element name="Oxygen_e" Z="8.0" N="16" > 35 <atom type="A" unit="g/mol" value=" 16.0000" /> 36 </element> 37 38 <!-- materials --> 39 <material name="Air" > 40 <D type="density" unit="g/cm3" value="0.0012"/> 41 <fraction n="0.7803" ref="Nitrogen_e"/> 42 <fraction n="0.2103" ref="Oxygen_e"/> 43 <fraction n="0.0094" ref="Argon_e"/> 44 </material> 45 </materials> 46 47 <solids> 48 49 <!-- world --> 50 <box lunit="mm" 51 aunit="degree" 52 name="world_box" 53 x="world_x" 54 y="world_y" 55 z="world_z" /> 56 57 <!-- test volume --> 58 <box lunit="mm" 59 name="test_box" 60 x="test_box_size" 61 y="test_box_size" 62 z="test_box_size"/> 63 64 </solids> 65 66 <structure> 67 68 <volume name="test_volume"> 69 <materialref ref="Air"/> 70 <solidref ref="test_box"/> 71 <!-- color extension element --> 72 <colorref ref="test_color"/> 73 </volume> 74 75 <volume name="world"> 76 <materialref ref="Air"/> 77 <solidref ref="world_box"/> 78 <physvol> 79 <volumeref ref="test_volume"/> 80 <positionref ref="test_position"/> 81 </physvol> 82 </volume> 83 </structure> 84 85 <setup name="Default" version="1.0"> 86 <world ref="world"/> 87 </setup> 88 89 </gdml_simple_extension>