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.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

  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>