|
1 | 1 | """ |
2 | 2 | Module. Includes classes for all TEAPOT elements. The approach is based |
3 | 3 | on the original ORBIT approach developed by J. Holmes. |
| 4 | +
|
| 5 | +Elements: |
| 6 | +- Drift |
| 7 | +- Bend |
| 8 | +- Quad |
| 9 | +- Multipole |
| 10 | +- Solenoid |
| 11 | +- Kicker |
| 12 | +- RingRF |
| 13 | +- Monitor |
4 | 14 | """ |
5 | 15 |
|
6 | 16 | import sys |
7 | 17 | import os |
8 | 18 | import math |
9 | 19 |
|
10 | | -# import teapot base functions from wrapper around C++ functions |
| 20 | +from ..lattice import AccLattice |
| 21 | +from ..lattice import AccNode |
| 22 | +from ..lattice import AccActionsContainer |
| 23 | +from ..lattice import AccNodeBunchTracker |
11 | 24 | from ..teapot_base import TPB |
12 | | - |
13 | | -# import the function that creates multidimensional arrays |
14 | 25 | from ..utils import orbitFinalize |
15 | | - |
16 | | -# import general accelerator elements and lattice |
17 | | -from ..lattice import AccLattice, AccNode, AccActionsContainer, AccNodeBunchTracker |
18 | | - |
19 | | -# import the MAD parser to construct lattices of TEAPOT elements. |
20 | | -from ..parsers.mad_parser import MAD_Parser, MAD_LattElement |
21 | | - |
22 | | -# import the MADX parser to construct lattices of TEAPOT elements. |
23 | | -from ..parsers.madx_parser import MADX_Parser, MADX_LattElement |
24 | | - |
25 | | -# import aperture |
| 26 | +from ..parsers.mad_parser import MAD_Parser |
| 27 | +from ..parsers.mad_parser import MAD_LattElement |
| 28 | +from ..parsers.madx_parser import MADX_Parser |
| 29 | +from ..parsers.madx_parser import MADX_LattElement |
26 | 30 | from orbit.core.aperture import Aperture |
27 | | - |
28 | | -# monitor |
29 | 31 | from orbit.core.bunch import BunchTwissAnalysis |
30 | 32 |
|
31 | 33 |
|
32 | | -""" |
33 | | -Drift |
34 | | -Bend |
35 | | -Quad |
36 | | -Multipole |
37 | | -Solenoid |
38 | | -Kicker |
39 | | -RingRF |
40 | | -monitor |
41 | | -""" |
42 | | - |
43 | | - |
44 | 34 | class TEAPOT_Lattice(AccLattice): |
45 | 35 | """ |
46 | 36 | The subclass of the AccLattice class. Shell class for the TEAPOT nodes collection. |
|
0 commit comments