-
Notifications
You must be signed in to change notification settings - Fork 3
/
statesParticles.xsd
66 lines (64 loc) · 2.37 KB
/
statesParticles.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns="http://vamdc.org/xml/xsams/1.0"
xmlns:xsams="http://vamdc.org/xml/xsams/1.0"
targetNamespace="http://vamdc.org/xml/xsams/1.0">
<xs:include schemaLocation="./typesAttributes.xsd"/>
<xs:element name="Particles" type="ParticlesType"/>
<xs:complexType name="ParticlesType">
<xs:sequence>
<xs:element name="Particle" type="ParticleType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ParticleType">
<xs:complexContent>
<xs:extension base="PrimaryType">
<xs:sequence>
<xs:element name="ParticleProperties" type="ParticlePropertiesType" minOccurs="0">
<xs:annotation>
<xs:documentation>Description of particle properties</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="speciesID" type="SpeciesIDType" use="required"/>
<xs:attribute name="name" type="ParticleNameType" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="ParticleNameType">
<xs:restriction base="xs:string">
<xs:enumeration value="photon"/>
<xs:enumeration value="electron"/>
<xs:enumeration value="muon"/>
<xs:enumeration value="positron"/>
<xs:enumeration value="neutron"/>
<xs:enumeration value="alpha"/>
<xs:enumeration value="cosmic"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ParticlePropertiesType">
<xs:sequence>
<xs:element name="ParticleCharge" type="xs:integer" minOccurs="0">
<xs:annotation>
<xs:documentation>Particle charge</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ParticleMass" type="DataType" minOccurs="0">
<xs:annotation>
<xs:documentation>Mass of the particle</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ParticleSpin" type="AngularMomentumType" minOccurs="0">
<xs:annotation>
<xs:documentation>Spin of the particle</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ParticlePolarization" type="AngularMomentumProjectionType" minOccurs="0">
<xs:annotation>
<xs:documentation>Polarization of the particle</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>