#include "G4MagneticField.hh"
#include <array>
#include <CLHEP/Units/SystemOfUnits.h>
Go to the source code of this file.
|
| G4double | fitFunction (G4double *x, G4double *par) |
| | Fit function for magnetic field profiles.
|
| |
| G4double | symmetrizedFunctionY (G4double *x, G4double *par) |
| | Symmetrized fit function along the Y-axis.
|
| |
| G4double | symmetrizedFunctionS (G4double *x, G4double *par) |
| | Symmetrized fit function along the S-axis.
|
| |
◆ fitFunction()
| G4double fitFunction |
( |
G4double * |
x, |
|
|
G4double * |
par |
|
) |
| |
Fit function for magnetic field profiles.
- Parameters
-
| x | Position array (dependent variable) |
| par | Parameter array for fit |
- Returns
- Magnetic field value
Fit function for magnetic field profiles.
Computes a combination of an error function step and a Gaussian depending on position.
- Parameters
-
| x | Pointer to position array |
| par | Pointer to parameter array |
- Returns
- Calculated magnetic field value
◆ symmetrizedFunctionS()
| G4double symmetrizedFunctionS |
( |
G4double * |
x, |
|
|
G4double * |
par |
|
) |
| |
Symmetrized fit function along the S-axis.
- Parameters
-
| x | Position array |
| par | Parameter array |
- Returns
- Magnetic field value
Symmetrized fit function along the S-axis.
Reflects the function about x0 = 3.4495 to enforce symmetry.
- Parameters
-
| x | Pointer to position array |
| par | Pointer to parameter array |
- Returns
- Magnetic field value
◆ symmetrizedFunctionY()
| G4double symmetrizedFunctionY |
( |
G4double * |
x, |
|
|
G4double * |
par |
|
) |
| |
Symmetrized fit function along the Y-axis.
- Parameters
-
| x | Position array |
| par | Parameter array |
- Returns
- Magnetic field value
Symmetrized fit function along the Y-axis.
Reflects the function about x0 = 0 to enforce symmetry.
- Parameters
-
| x | Pointer to position array |
| par | Pointer to parameter array |
- Returns
- Magnetic field value
◆ NumQuadrupoles
| constexpr size_t NumQuadrupoles = 4 |
|
constexpr |
< Units definitions (T, mm, etc.)
< Base class for defining a magnetic field in Geant4 < For fixed-size gradient and length storage Number of quadrupoles in the beamline model