1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!DOCTYPE xs:schema []> |
---|
3 | <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" version="0.1" xmlns:gdml="http://cern.ch/2001/Schemas/GDML" xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
---|
4 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
5 | <xs:include schemaLocation="gdml_core.xsd"></xs:include> |
---|
6 | <xs:include schemaLocation="gdml_define.xsd"></xs:include> |
---|
7 | <xs:include schemaLocation="gdml_extensions.xsd"/> |
---|
8 | <!-- Removed abstract="true" in AtomType --> |
---|
9 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
10 | <xs:complexType name="AtomType"> |
---|
11 | <xs:annotation> |
---|
12 | <xs:documentation>Atomic mass, quantity type A, default unit g/mole</xs:documentation> |
---|
13 | </xs:annotation> |
---|
14 | <xs:complexContent> |
---|
15 | <xs:restriction base="QuantityType"> |
---|
16 | <xs:attribute default="g/mole" type="xs:string" name="unit"></xs:attribute> |
---|
17 | <xs:attribute fixed="A" type="xs:string" name="type"></xs:attribute> |
---|
18 | </xs:restriction> |
---|
19 | </xs:complexContent> |
---|
20 | </xs:complexType> |
---|
21 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
22 | <xs:complexType name="DensityType"> |
---|
23 | <xs:annotation> |
---|
24 | <xs:documentation>Density</xs:documentation> |
---|
25 | </xs:annotation> |
---|
26 | <xs:complexContent> |
---|
27 | <xs:restriction base="QuantityType"> |
---|
28 | <xs:attribute default="g/cm3" type="xs:string" name="unit"></xs:attribute> |
---|
29 | <xs:attribute fixed="density" type="xs:string" name="type"></xs:attribute> |
---|
30 | </xs:restriction> |
---|
31 | </xs:complexContent> |
---|
32 | </xs:complexType> |
---|
33 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
34 | <xs:group name="MaterialPropertiesGroup"> |
---|
35 | <xs:annotation> |
---|
36 | <xs:documentation>General material properties</xs:documentation> |
---|
37 | </xs:annotation> |
---|
38 | <xs:sequence> |
---|
39 | <xs:choice minOccurs="0"> |
---|
40 | <xs:element maxOccurs="unbounded" name="property"> |
---|
41 | <xs:annotation> |
---|
42 | <xs:documentation>General material property (const or vector)</xs:documentation> |
---|
43 | </xs:annotation> |
---|
44 | <xs:complexType> |
---|
45 | <xs:complexContent> |
---|
46 | <xs:extension base="ReferenceType"> |
---|
47 | <xs:attribute name="name" type="xs:string" use="required"></xs:attribute> |
---|
48 | </xs:extension> |
---|
49 | </xs:complexContent> |
---|
50 | </xs:complexType> |
---|
51 | </xs:element> |
---|
52 | </xs:choice> |
---|
53 | <xs:choice minOccurs="0"> |
---|
54 | <xs:element name="RL"> |
---|
55 | <xs:annotation> |
---|
56 | <xs:documentation>Radiation length</xs:documentation> |
---|
57 | </xs:annotation> |
---|
58 | <xs:complexType> |
---|
59 | <xs:complexContent> |
---|
60 | <xs:restriction base="QuantityType"> |
---|
61 | <xs:attribute default="cm" type="xs:string" name="unit"></xs:attribute> |
---|
62 | <xs:attribute fixed="X0" type="xs:string" name="type"></xs:attribute> |
---|
63 | </xs:restriction> |
---|
64 | </xs:complexContent> |
---|
65 | </xs:complexType> |
---|
66 | </xs:element> |
---|
67 | <xs:element name="RLref" type="ReferenceType"> |
---|
68 | <xs:annotation> |
---|
69 | <xs:documentation>A reference to a previsouly defined named radiation length quantity value</xs:documentation> |
---|
70 | </xs:annotation> |
---|
71 | </xs:element> |
---|
72 | </xs:choice> |
---|
73 | <xs:choice minOccurs="0"> |
---|
74 | <xs:element name="AL"> |
---|
75 | <xs:annotation> |
---|
76 | <xs:documentation>Absorption length</xs:documentation> |
---|
77 | </xs:annotation> |
---|
78 | <xs:complexType> |
---|
79 | <xs:complexContent> |
---|
80 | <xs:restriction base="QuantityType"> |
---|
81 | <xs:attribute default="cm" type="xs:string" name="unit"></xs:attribute> |
---|
82 | <xs:attribute fixed="lambda" type="xs:string" name="type"></xs:attribute> |
---|
83 | </xs:restriction> |
---|
84 | </xs:complexContent> |
---|
85 | </xs:complexType> |
---|
86 | </xs:element> |
---|
87 | <xs:element name="ALref" type="ReferenceType"> |
---|
88 | <xs:annotation> |
---|
89 | <xs:documentation>A reference to a previsouly defined named absorption length quantity value</xs:documentation> |
---|
90 | </xs:annotation> |
---|
91 | </xs:element> |
---|
92 | </xs:choice> |
---|
93 | <xs:choice minOccurs="0"> |
---|
94 | <xs:element name="T"> |
---|
95 | <xs:annotation> |
---|
96 | <xs:documentation>Temperature</xs:documentation> |
---|
97 | </xs:annotation> |
---|
98 | <xs:complexType> |
---|
99 | <xs:complexContent> |
---|
100 | <xs:restriction base="QuantityType"> |
---|
101 | <xs:attribute default="K" type="xs:string" name="unit"></xs:attribute> |
---|
102 | <xs:attribute fixed="temperature" type="xs:string" name="type"></xs:attribute> |
---|
103 | </xs:restriction> |
---|
104 | </xs:complexContent> |
---|
105 | </xs:complexType> |
---|
106 | </xs:element> |
---|
107 | <xs:element name="Tref" type="ReferenceType"> |
---|
108 | <xs:annotation> |
---|
109 | <xs:documentation>A reference to previously defined named temperature quantity value</xs:documentation> |
---|
110 | </xs:annotation> |
---|
111 | </xs:element> |
---|
112 | </xs:choice> |
---|
113 | <xs:choice minOccurs="0"> |
---|
114 | <xs:element name="P"> |
---|
115 | <xs:annotation> |
---|
116 | <xs:documentation>Pressure</xs:documentation> |
---|
117 | </xs:annotation> |
---|
118 | <xs:complexType> |
---|
119 | <xs:complexContent> |
---|
120 | <xs:restriction base="QuantityType"> |
---|
121 | <xs:attribute default="pascal" type="xs:string" name="unit"></xs:attribute> |
---|
122 | <xs:attribute fixed="pressure" type="xs:string" name="type"></xs:attribute> |
---|
123 | </xs:restriction> |
---|
124 | </xs:complexContent> |
---|
125 | </xs:complexType> |
---|
126 | </xs:element> |
---|
127 | <xs:element name="Pref" type="ReferenceType"> |
---|
128 | <xs:annotation> |
---|
129 | <xs:documentation>A reference to previously defined named pressure quantity value</xs:documentation> |
---|
130 | </xs:annotation> |
---|
131 | </xs:element> |
---|
132 | </xs:choice> |
---|
133 | </xs:sequence> |
---|
134 | </xs:group> |
---|
135 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
136 | <xs:attributeGroup name="MaterialAttributeGroup"> |
---|
137 | <xs:annotation> |
---|
138 | <xs:documentation>General material attributes</xs:documentation> |
---|
139 | </xs:annotation> |
---|
140 | <xs:attribute name="name" type="xs:ID" use="required"> |
---|
141 | <xs:annotation> |
---|
142 | <xs:documentation>Material name</xs:documentation> |
---|
143 | </xs:annotation> |
---|
144 | </xs:attribute> |
---|
145 | <xs:attribute name="formula" type="xs:string" use="optional"> |
---|
146 | <xs:annotation> |
---|
147 | <xs:documentation>Material chemical formula</xs:documentation> |
---|
148 | </xs:annotation> |
---|
149 | </xs:attribute> |
---|
150 | <xs:attribute default="unknown" name="state"> |
---|
151 | <xs:annotation> |
---|
152 | <xs:documentation>Material physical state</xs:documentation> |
---|
153 | </xs:annotation> |
---|
154 | <xs:simpleType> |
---|
155 | <xs:restriction base="xs:NMTOKEN"> |
---|
156 | <xs:enumeration value="gas"></xs:enumeration> |
---|
157 | <xs:enumeration value="liquid"></xs:enumeration> |
---|
158 | <xs:enumeration value="solid"></xs:enumeration> |
---|
159 | <xs:enumeration value="unknown"></xs:enumeration> |
---|
160 | </xs:restriction> |
---|
161 | </xs:simpleType> |
---|
162 | </xs:attribute> |
---|
163 | </xs:attributeGroup> |
---|
164 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
165 | <xs:complexType name="MaterialType"> |
---|
166 | <xs:annotation> |
---|
167 | <xs:documentation>Base type for materials</xs:documentation> |
---|
168 | </xs:annotation> |
---|
169 | <xs:group ref="MaterialPropertiesGroup"></xs:group> |
---|
170 | <xs:attributeGroup ref="MaterialAttributeGroup"></xs:attributeGroup> |
---|
171 | </xs:complexType> |
---|
172 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
173 | <!-- |
---|
174 | <xs:complexType name="ComplexMaterialType"> |
---|
175 | <xs:annotation> |
---|
176 | <xs:documentation> |
---|
177 | Base type for complex materials |
---|
178 | </xs:documentation> |
---|
179 | </xs:annotation> |
---|
180 | <xs:complexContent> |
---|
181 | <xs:extension base="MaterialType"> |
---|
182 | --> |
---|
183 | <!-- <xs:group ref="MaterialPropertiesGroup"/> --> |
---|
184 | <!-- |
---|
185 | Removed from referenced attribute group |
---|
186 | <xs:attribute name="N" use="prohibited"/> |
---|
187 | --> |
---|
188 | <!-- |
---|
189 | <xs:attribute name="Z" type="xs:double" use="optional"> |
---|
190 | <xs:annotation> |
---|
191 | <xs:documentation>Atomic number</xs:documentation> |
---|
192 | </xs:annotation> |
---|
193 | </xs:attribute> |
---|
194 | </xs:extension> |
---|
195 | </xs:complexContent> |
---|
196 | </xs:complexType> |
---|
197 | --> |
---|
198 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
199 | <xs:element name="materials"> |
---|
200 | <xs:annotation> |
---|
201 | <xs:documentation>Materials description</xs:documentation> |
---|
202 | </xs:annotation> |
---|
203 | <xs:complexType> |
---|
204 | <xs:choice maxOccurs="unbounded"> |
---|
205 | <xs:element maxOccurs="unbounded" minOccurs="0" ref="loop"/> |
---|
206 | <xs:element minOccurs="0" name="define" type="defineType"> |
---|
207 | <xs:annotation> |
---|
208 | <xs:documentation>Material related definitons of constants and quantities |
---|
209 | In this version of schema these become visible in global scope</xs:documentation> |
---|
210 | </xs:annotation> |
---|
211 | </xs:element> |
---|
212 | <xs:element maxOccurs="unbounded" minOccurs="0" name="isotope" type="MaterialIsotopeType"> |
---|
213 | <xs:annotation> |
---|
214 | <xs:documentation>An isotope</xs:documentation> |
---|
215 | </xs:annotation> |
---|
216 | </xs:element> |
---|
217 | <xs:element maxOccurs="unbounded" minOccurs="0" name="element" type="MaterialElementType"> |
---|
218 | <xs:annotation> |
---|
219 | <xs:documentation>A simple element or an element composed of isotopes</xs:documentation> |
---|
220 | </xs:annotation> |
---|
221 | </xs:element> |
---|
222 | <xs:element maxOccurs="unbounded" minOccurs="0" name="material" type="MaterialMixtureType"> |
---|
223 | <xs:annotation> |
---|
224 | <xs:documentation>A composite or a mixture complex material</xs:documentation> |
---|
225 | </xs:annotation> |
---|
226 | </xs:element> |
---|
227 | </xs:choice> |
---|
228 | </xs:complexType> |
---|
229 | </xs:element> |
---|
230 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
231 | <xs:complexType name="MaterialIsotopeType"> |
---|
232 | <xs:annotation> |
---|
233 | <xs:documentation>Exported isotope type</xs:documentation> |
---|
234 | </xs:annotation> |
---|
235 | <xs:complexContent> |
---|
236 | <xs:extension base="MaterialType"> |
---|
237 | <xs:sequence> |
---|
238 | <xs:choice minOccurs="0"> |
---|
239 | <xs:element name="D" type="DensityType"> |
---|
240 | <xs:annotation> |
---|
241 | <xs:documentation>Density quantity value</xs:documentation> |
---|
242 | </xs:annotation> |
---|
243 | </xs:element> |
---|
244 | <xs:element name="Dref" type="ReferenceType"> |
---|
245 | <xs:annotation> |
---|
246 | <xs:documentation>A reference to a previsouly defined named density quantity value</xs:documentation> |
---|
247 | </xs:annotation> |
---|
248 | </xs:element> |
---|
249 | </xs:choice> |
---|
250 | <xs:element name="atom" type="AtomType"></xs:element> |
---|
251 | </xs:sequence> |
---|
252 | <xs:attribute name="N" type="xs:positiveInteger" use="required"> |
---|
253 | <xs:annotation> |
---|
254 | <xs:documentation>Number of nucleons</xs:documentation> |
---|
255 | </xs:annotation> |
---|
256 | </xs:attribute> |
---|
257 | <xs:attribute name="Z" type="xs:double" use="required"> |
---|
258 | <xs:annotation> |
---|
259 | <xs:documentation>Atomic number</xs:documentation> |
---|
260 | </xs:annotation> |
---|
261 | </xs:attribute> |
---|
262 | </xs:extension> |
---|
263 | </xs:complexContent> |
---|
264 | </xs:complexType> |
---|
265 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
266 | <xs:complexType name="MaterialElementType"> |
---|
267 | <xs:annotation> |
---|
268 | <xs:documentation>Exported material element type</xs:documentation> |
---|
269 | </xs:annotation> |
---|
270 | <xs:complexContent> |
---|
271 | <xs:extension base="MaterialType"> |
---|
272 | <xs:sequence> |
---|
273 | <xs:choice minOccurs="0"> |
---|
274 | <xs:element name="D" type="DensityType"> |
---|
275 | <xs:annotation> |
---|
276 | <xs:documentation>Density quantity value</xs:documentation> |
---|
277 | </xs:annotation> |
---|
278 | </xs:element> |
---|
279 | <xs:element name="Dref" type="ReferenceType"> |
---|
280 | <xs:annotation> |
---|
281 | <xs:documentation>A reference to a previsouly defined named density quantity value</xs:documentation> |
---|
282 | </xs:annotation> |
---|
283 | </xs:element> |
---|
284 | </xs:choice> |
---|
285 | <xs:choice> |
---|
286 | <xs:annotation> |
---|
287 | <xs:documentation>An element can be defined either as a simple element or by a set |
---|
288 | of isotopes fractions</xs:documentation> |
---|
289 | </xs:annotation> |
---|
290 | <xs:element name="atom" type="AtomType"></xs:element> |
---|
291 | <xs:element maxOccurs="unbounded" name="fraction"> |
---|
292 | <xs:annotation> |
---|
293 | <xs:documentation>An isotope fraction of an element where n is the actual amount |
---|
294 | of the isotope in the element</xs:documentation> |
---|
295 | </xs:annotation> |
---|
296 | <xs:complexType> |
---|
297 | <xs:complexContent> |
---|
298 | <xs:extension base="ReferenceType"> |
---|
299 | <xs:attribute name="n" type="xs:double" use="required"></xs:attribute> |
---|
300 | </xs:extension> |
---|
301 | </xs:complexContent> |
---|
302 | </xs:complexType> |
---|
303 | </xs:element> |
---|
304 | </xs:choice> |
---|
305 | </xs:sequence> |
---|
306 | <xs:attribute name="N" type="xs:positiveInteger" use="optional"> |
---|
307 | <xs:annotation> |
---|
308 | <xs:documentation>Number of nucleons</xs:documentation> |
---|
309 | </xs:annotation> |
---|
310 | </xs:attribute> |
---|
311 | <xs:attribute name="Z" type="xs:double" use="optional"> |
---|
312 | <xs:annotation> |
---|
313 | <xs:documentation>Atomic number</xs:documentation> |
---|
314 | </xs:annotation> |
---|
315 | </xs:attribute> |
---|
316 | </xs:extension> |
---|
317 | </xs:complexContent> |
---|
318 | </xs:complexType> |
---|
319 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
320 | <xs:complexType name="MaterialMixtureType"> |
---|
321 | <xs:annotation> |
---|
322 | <xs:documentation>Exported material composite or mixture type</xs:documentation> |
---|
323 | </xs:annotation> |
---|
324 | <xs:complexContent> |
---|
325 | <!-- <xs:extension base="ComplexMaterialType"> --> |
---|
326 | <xs:extension base="MaterialType"> |
---|
327 | <xs:sequence> |
---|
328 | <xs:choice> |
---|
329 | <xs:element name="D" type="DensityType"> |
---|
330 | <xs:annotation> |
---|
331 | <xs:documentation>Density quantity value</xs:documentation> |
---|
332 | </xs:annotation> |
---|
333 | </xs:element> |
---|
334 | <xs:element name="Dref" type="ReferenceType"> |
---|
335 | <xs:annotation> |
---|
336 | <xs:documentation>A reference to a previsouly defined named density quantity value</xs:documentation> |
---|
337 | </xs:annotation> |
---|
338 | </xs:element> |
---|
339 | </xs:choice> |
---|
340 | <xs:choice> |
---|
341 | <xs:annotation> |
---|
342 | <xs:documentation>A complex material can be defined as a simple mixture when |
---|
343 | its material properties are known or as a composite material |
---|
344 | or a mixture. A composite material is defined by a set of elements |
---|
345 | by specifying the number of atoms. |
---|
346 | The second way is by a set of material fractions where the fractions |
---|
347 | can be either simple elements or other complex materials. |
---|
348 | The restriction is that one can't mix composition by atoms and fractions |
---|
349 | at the same time.</xs:documentation> |
---|
350 | </xs:annotation> |
---|
351 | <xs:element name="atom" type="AtomType"></xs:element> |
---|
352 | <xs:element maxOccurs="unbounded" name="composite"> |
---|
353 | <xs:annotation> |
---|
354 | <xs:documentation>Elements of this composite material specified as a set of local references |
---|
355 | to already defined simple elements where value of n in each means the number of atoms</xs:documentation> |
---|
356 | </xs:annotation> |
---|
357 | <xs:complexType> |
---|
358 | <xs:complexContent> |
---|
359 | <xs:extension base="ReferenceType"> |
---|
360 | <xs:attribute name="n" type="xs:positiveInteger" use="required"></xs:attribute> |
---|
361 | </xs:extension> |
---|
362 | </xs:complexContent> |
---|
363 | </xs:complexType> |
---|
364 | </xs:element> |
---|
365 | <xs:element maxOccurs="unbounded" name="fraction"> |
---|
366 | <xs:annotation> |
---|
367 | <xs:documentation>Fractions of this mixture specified as a set of local references to already defined |
---|
368 | elements or other mixtures where value of n in each means the fraction of the whole |
---|
369 | material in the range 0.0 < n < 1.0</xs:documentation> |
---|
370 | </xs:annotation> |
---|
371 | <xs:complexType> |
---|
372 | <xs:complexContent> |
---|
373 | <xs:extension base="ReferenceType"> |
---|
374 | <xs:attribute name="n" type="xs:double" use="required"></xs:attribute> |
---|
375 | </xs:extension> |
---|
376 | </xs:complexContent> |
---|
377 | </xs:complexType> |
---|
378 | </xs:element> |
---|
379 | </xs:choice> |
---|
380 | </xs:sequence> |
---|
381 | <xs:attribute name="Z" type="xs:double" use="optional"> |
---|
382 | <xs:annotation> |
---|
383 | <xs:documentation>Atomic number</xs:documentation> |
---|
384 | </xs:annotation> |
---|
385 | </xs:attribute> |
---|
386 | </xs:extension> |
---|
387 | </xs:complexContent> |
---|
388 | </xs:complexType> |
---|
389 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
---|
390 | </xs:schema> |
---|