![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Builds, stores and reads the fields present in the beam line. More...
#include <FieldHandler.hh>
Public Member Functions | |
| FieldHandler () | |
| Default constructor, initilizes everything to 0. More... | |
| FieldHandler (const FieldHandler &fh) | |
| Copy constructor. More... | |
| FieldHandler & | operator= (const FieldHandler &fh) |
| Equality operator. More... | |
| ~FieldHandler () | |
| Destructor. More... | |
| bool | AddSolenoid (const std::string &name, const double &a, const double &L, const double &I) |
| Adds a solenoid to the dictionary of fields. More... | |
| TVector3 | GetMagneticField (const double &x, const double &y, const double &z) const |
| Gets the total magnetic field at a location x, y, z in cartesian coordinates. More... | |
Private Member Functions | |
| TVector3 | GetSolenoidField (const FieldElement &fel, const double &x, const double &y, const double &z) const |
| Cartesian 3-vector of the solenoidal magnetic field in x, y, z. More... | |
| double | SolenoidBperp (const double &a, const double &L, const double &I, const double &rho, const double &z) const |
| Perpendicular component of a solenoidal field. More... | |
| double | SolenoidBlong (const double &a, const double &L, const double &I, const double &rho, const double &z) const |
| Longitudinal component of a solenoidal field. More... | |
| double | K (const double &m) const |
| Elliptical integral of the first kind with parameter m. More... | |
| double | E (const double &m) const |
| Elliptical integral of the second kind with parameter m. More... | |
| double | Pi (const double &n, const double &m) const |
| Elliptical integral of the third kind with parameter n and m. More... | |
Private Attributes | |
| double | _mu0 |
| Vacuum permeability. More... | |
| std::map< std::string, FieldElement > | _fields |
| List of fields in the beam line. More... | |
Builds, stores and reads the fields present in the beam line.
Builds theoretical magnetic fields based on the current in the coils, returns the x, y and z components of the field at a requested point (x, y, z)
| FieldHandler::FieldHandler | ( | ) |
Default constructor, initilizes everything to 0.
| FieldHandler::FieldHandler | ( | const FieldHandler & | fh | ) |
Copy constructor.
| FieldHandler::~FieldHandler | ( | ) |
Destructor.
| bool FieldHandler::AddSolenoid | ( | const std::string & | name, |
| const double & | a, | ||
| const double & | L, | ||
| const double & | I | ||
| ) |
Adds a solenoid to the dictionary of fields.
| name | Name of the field/magnet |
| a | Radius of the solenoid |
| L | Length of the solenoid |
| I | Current in the solenoid |
|
private |
Elliptical integral of the second kind with parameter m.
| TVector3 FieldHandler::GetMagneticField | ( | const double & | x, |
| const double & | y, | ||
| const double & | z | ||
| ) | const |
Gets the total magnetic field at a location x, y, z in cartesian coordinates.
| x | Horizontal offset in which to evaluate the field |
| y | Vertical offset in which to evaluate the field |
| z | Position along the beam line in which to evaluate the field |
in cartesian coordinates
|
private |
Cartesian 3-vector of the solenoidal magnetic field in x, y, z.
| fel | Field element to get the field from |
| x | Horizontal offset in which to evaluate the field |
| y | Vertical offset in which to evaluate the field |
| z | Position along the beam line in which to evaluate the field |
in cartesian coordinates
|
private |
Elliptical integral of the first kind with parameter m.
| FieldHandler & FieldHandler::operator= | ( | const FieldHandler & | fh | ) |
Equality operator.
|
private |
Elliptical integral of the third kind with parameter n and m.
|
private |
Longitudinal component of a solenoidal field.
| a | Radius of the solenoid |
| L | Length of the solenoid |
| I | Current in the solenoid |
| rho | Radius of the position in which to evaluate the field |
| z | Longitudinal position in which to evaluate the field |
(cylindrical coords)
|
private |
Perpendicular component of a solenoidal field.
| a | Radius of the solenoid |
| L | Length of the solenoid |
| I | Current in the solenoid |
| rho | Radius of the position in which to evaluate the field |
| z | Longitudinal position in which to evaluate the field |
(cylindrical coords)
|
private |
List of fields in the beam line.
|
private |
Vacuum permeability.
1.8.6