source: trunk/source/persistency/gdml/schema/gdml.xsd@ 1346

Last change on this file since 1346 was 1316, checked in by garnier, 15 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

  • Property svn:executable set to *
File size: 9.6 KB
RevLine 
[1316]1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" version="1.0" xmlns:gdml="http://cern.ch/2001/Schemas/GDML" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 <xs:include schemaLocation="gdml_core.xsd"/>
4 <xs:include schemaLocation="gdml_define.xsd"/>
5 <xs:include schemaLocation="gdml_materials.xsd"/>
6 <xs:include schemaLocation="gdml_solids.xsd"/>
7 <xs:include schemaLocation="gdml_replicas.xsd"/>
8 <xs:include schemaLocation="gdml_parameterised.xsd"/>
9 <xs:include schemaLocation="gdml_extensions.xsd"/>
10 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
11 <xs:complexType abstract="true" name="IdentifiableVolumeType">
12 <xs:attribute name="name" type="xs:ID" use="required"/>
13 </xs:complexType>
14 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
15 <xs:complexType name="SinglePlacementType">
16 <xs:annotation>
17 <xs:documentation>Represents a single unique copy a of an associated logical volume
18 in geometrical hierarchy</xs:documentation>
19 </xs:annotation>
20 <xs:sequence>
21 <xs:choice minOccurs="1">
22 <xs:element name="file" type="FileReferenceType"/>
23 <xs:element name="volumeref" type="ReferenceType"/>
24 </xs:choice>
25 <xs:choice minOccurs="0">
26 <xs:element name="position" type="positionType"/>
27 <xs:element name="positionref" type="ReferenceType"/>
28 </xs:choice>
29 <xs:choice minOccurs="0">
30 <xs:element name="rotation" type="rotationType"/>
31 <xs:element name="rotationref" type="ReferenceType"/>
32 </xs:choice>
33 <xs:choice minOccurs="0">
34 <xs:element name="scale" type="scaleType"/>
35 <xs:element name="scaleref" type="ReferenceType"/>
36 </xs:choice>
37 </xs:sequence>
38 <xs:attribute name="name" type="xs:ID"></xs:attribute>
39 </xs:complexType>
40 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
41 <xs:complexType name="DivisionPlacementType">
42 <xs:annotation>
43 <xs:documentation>Represents a division of the associated logical volume
44 in geometrical hierarchy</xs:documentation>
45 </xs:annotation>
46 <xs:sequence>
47 <xs:element name="volumeref" type="ReferenceType"/>
48 </xs:sequence>
49 <xs:attribute name="axis" type="xs:string" use="required"></xs:attribute>
50 <xs:attribute name="number" type="ExpressionOrIDREFType" use="required"></xs:attribute>
51 <xs:attribute name="width" type="ExpressionOrIDREFType" use="required"></xs:attribute>
52 <xs:attribute name="offset" type="ExpressionOrIDREFType" use="required"></xs:attribute>
53 <xs:attribute default="mm" name="unit" type="xs:string"></xs:attribute>
54 </xs:complexType>
55 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
56 <xs:complexType name="VolumeType">
57 <xs:annotation>
58 <xs:documentation>Represents a top of a geometrical sub-hierarchy not placed in space
59 None of its children can coincide with its boundary defined by an associated solid
60 Two different placements of the same logical volume represent two different geometrical
61 hierarchies in space</xs:documentation>
62 </xs:annotation>
63 <xs:complexContent>
64 <xs:extension base="IdentifiableVolumeType">
65 <xs:sequence>
66 <xs:element name="materialref" type="ReferenceType"/>
67 <xs:element name="solidref" type="ReferenceType"/>
68 <xs:choice minOccurs="0">
69 <xs:element maxOccurs="unbounded" name="physvol" type="SinglePlacementType"/>
70 <xs:element maxOccurs="1" minOccurs="1" name="divisionvol" type="DivisionPlacementType"/>
71 <xs:element maxOccurs="1" minOccurs="1" ref="replicavol"/>
72 <xs:element maxOccurs="1" minOccurs="1" name="paramvol" type="ParameterisedPlacementType"/>
73 </xs:choice>
74 <xs:element maxOccurs="unbounded" minOccurs="0" ref="loop"/>
75 <xs:element name="auxiliary" maxOccurs="unbounded" minOccurs="0" type="AuxiliaryType"/>
76 </xs:sequence>
77 </xs:extension>
78 </xs:complexContent>
79 </xs:complexType>
80 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
81 <xs:complexType name="AssemblyVolumeType">
82 <xs:annotation>
83 <xs:documentation>Allows to create a group of volumes bound together without a boundary
84 All the volumes exits inside the same virtual reference system of the assmebly volume
85 they belong to
86 When assembly volume is placed all its children follow the global transformation applied
87 to their assembly volume
88 After the assembly volume is placed its children exist as standalone placements in space
89 independent of each other</xs:documentation>
90 </xs:annotation>
91 <xs:complexContent>
92 <xs:extension base="IdentifiableVolumeType">
93 <xs:choice>
94 <xs:element maxOccurs="unbounded" name="physvol" type="SinglePlacementType"/>
95 <xs:element maxOccurs="1" minOccurs="1" ref="replicavol"/>
96 <xs:element maxOccurs="1" minOccurs="1" name="paramvol" type="ParameterisedPlacementType"/>
97 </xs:choice>
98 </xs:extension>
99 </xs:complexContent>
100 </xs:complexType>
101 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
102 <xs:complexType name="LogicalSurfaceType">
103 <xs:annotation>
104 <xs:documentation>Base type for logical surfaces (for the moment only optical)
105 </xs:documentation>
106 </xs:annotation>
107 <xs:attribute name="name" type="xs:ID" use="required"></xs:attribute>
108 <xs:attribute name="surfaceproperty" type="ExpressionOrIDREFType" use="required"></xs:attribute>
109 </xs:complexType>
110 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
111 <xs:element abstract="true" name="Surface" type="LogicalSurfaceType">
112 <xs:annotation>
113 <xs:documentation>Abstract element for all solids substitution group</xs:documentation>
114 </xs:annotation>
115 </xs:element>
116 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
117 <xs:element name="bordersurface" substitutionGroup="Surface">
118 <xs:annotation>
119 <xs:documentation>Surface between two physical volumes</xs:documentation>
120 </xs:annotation>
121 <xs:complexType>
122 <xs:complexContent>
123 <xs:extension base="LogicalSurfaceType">
124 <xs:sequence>
125 <xs:element name="physvolref" type="ReferenceType"/>
126 <xs:element name="physvolref" type="ReferenceType"/>
127 </xs:sequence>
128 </xs:extension>
129 </xs:complexContent>
130 </xs:complexType>
131 </xs:element>
132 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
133 <xs:element name="skinsurface" substitutionGroup="Surface">
134 <xs:annotation>
135 <xs:documentation>Surface between two physical volumes</xs:documentation>
136 </xs:annotation>
137 <xs:complexType>
138 <xs:complexContent>
139 <xs:extension base="LogicalSurfaceType">
140 <xs:sequence>
141 <xs:element name="volumeref" type="ReferenceType"/>
142 </xs:sequence>
143 </xs:extension>
144 </xs:complexContent>
145 </xs:complexType>
146 </xs:element>
147 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
148 <xs:element name="structure">
149 <xs:annotation>
150 <xs:documentation>Definitions of a geometrical hierarchy of a set of volumes</xs:documentation>
151 </xs:annotation>
152 <xs:complexType>
153 <xs:sequence>
154 <xs:choice maxOccurs="unbounded">
155 <xs:element name="volume" type="VolumeType"/>
156 <xs:element name="assembly" type="AssemblyVolumeType"/>
157 <xs:element maxOccurs="unbounded" minOccurs="0" ref="loop"/>
158 <xs:element ref="ParameterisationAlgorithm"/>
159 </xs:choice>
160 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Surface"/>
161 </xs:sequence>
162 </xs:complexType>
163 </xs:element>
164 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
165 <xs:element name="gdml">
166 <xs:complexType>
167 <xs:sequence>
168 <xs:element ref="define"/>
169 <xs:element ref="materials"/>
170 <xs:element ref="solids"/>
171 <xs:element ref="structure"/>
172 <xs:element maxOccurs="unbounded" name="setup">
173 <xs:annotation>
174 <xs:documentation>Geometry setup representing the particular geometry hierarchy by refferring to
175 a given volume which becomes the top level volume</xs:documentation>
176 </xs:annotation>
177 <xs:complexType>
178 <xs:sequence>
179 <xs:element name="world" type="ReferenceType">
180 <xs:annotation>
181 <xs:documentation>A reference to the previously defined volume
182 in the structure block chosen by this setup
183 World volumme can't be an assembly volume</xs:documentation>
184 </xs:annotation>
185 </xs:element>
186 </xs:sequence>
187 <xs:attribute name="name" type="xs:ID" use="required"/>
188 <xs:attribute name="version" type="xs:string" use="required"/>
189 </xs:complexType>
190 </xs:element>
191 </xs:sequence>
192 <xs:attribute fixed="2.10.0" name="version" type="xs:string">
193 <xs:annotation>
194 <xs:documentation>The GDML Schema version consists of 3 digits X.Y.Z
195 where these mean:
196 X - major number, increased when major new
197 features or backward incompatible bug fixes
198 are added and means the GDML Processor is
199 allowed to refuse processing of such a
200 document if this is using the more recent
201 version of the GDML Schema then GDML Processor
202 understands
203 Y - minor number, increased when incremental and
204 backward compatible changes or improvements
205 are made into the GDML Schema. GDML Processor
206 should be able to process such a document
207 using higher minor version number then that of
208 the GDML Processor
209 Z - bugfix revision number, increased when fully
210 backward compatible changes which resolve a
211 problem in GDML Schema are applied</xs:documentation>
212 </xs:annotation>
213 </xs:attribute>
214 </xs:complexType>
215 </xs:element>
216</xs:schema>
Note: See TracBrowser for help on using the repository browser.