Newer
Older
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://luciozambon.altervista.org/app/panther_lattice.json",
"title": "PAnTHer",
"description": "Schema of the lattice file needed by PAnTHer",
"type": "object",
"patternProperties": {
"^.*$": {
"description": "identifier of a part of the accelerator, any unique string is valid",
"type": "object",
"properties": {
"sections": {
"description": "Stright sections only",
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "object",
"properties": {
"x": {"type": "number"},
"z": {"type": "number"}
},
"required": [ "x", "z" ]
},
"bending": {
"type": "object",
"properties": {
"type": {"type": "string"},
"length": {"type": "number"},
"label": {"type": "string"},
"rotateY": {"type": "string"},
"lengthIndex": {"type": "number"},
"name": {"type": "string"}
}
},
"chamber": {
"description": "Vacuum chamber towards the start position of the previous element of array (or towards the last element in the case of the first element)",
"type": "object",
"properties": {
"type": {"type": "string"}
},
"required": [ "type" ]
},
"components": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {"type": "string"},
"position": {"type": "number","description": "distance in millimeters from the start position"},
"name": {"type": "string"}
},
"required":["type","position","name"]
}
}
}
}
},
"servicearea": {
"description": "racks in service areas",
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "object",
"properties": {
"x": {"type": "number"},
"y": {"type": "number"},
"z": {"type": "number"}
},
"required": [ "x", "y", "z" ]
},
"components": {
"description": "racks or other objects",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {"type": "string"},
"position": {"type": "number","description": "distance in millimeters from the start position"},
"name": {"type": "string"},
"size": {
"type": "object",
"properties": {
"dx": {"type": "number"},
"dy": {"type": "number"},
"dz": {"type": "number"}
}
}
},
"required":["type","position","name"]
}
}
}
}
},
"blm": {
"description": "Beam Loss Monitors",
"type": "object",
"properties": {
"confsrc": {"type": "string"},
"datasrc": {"type": "string"},
"skip": {"type": "string"}
},
"required":["confsrc","datasrc"]
},
"bpm": {
"description": "Beam Position Monitors",
"type": "object",
"properties": {
"pos": {"type": "string"},
"rms": {"type": "string"},
"length": {"type": "integer"},
"offset": {"type": "integer"},
"skip": {"type": "array","items": {"type": "string"}}
},
"required":["pos","length","offset"]
},
"envelope": {
"description": "Beam Statistical envelope",
"type": "object",
"properties": {
"src": {"type": "string"},
"length": {"type": "array", "items": {"type": "number"}}
},
"required":["src","length"]
}
}
}
}
}