PlasmaMLPALLAS
|
Implementation of the PlasmaMLPALLASMagneticField class and related fit functions. More...
Functions | |
G4double | fitFunction (G4double *x, G4double *par) |
Fit function for magnetic field profile. | |
G4double | symmetrizedFunctionY (G4double *x, G4double *par) |
Symmetrized fit function along Y axis. | |
G4double | symmetrizedFunctionS (G4double *x, G4double *par) |
Symmetrized fit function along S axis. | |
Implementation of the PlasmaMLPALLASMagneticField class and related fit functions.
This file implements the PlasmaMLPALLASMagneticField class, providing magnetic field definitions for the PALLAS PlasmaMLP simulation, including:
The class provides methods to:
Fit functions:
Magnetic field computation:
This implementation is compatible with Geant4 and CLHEP units.
G4double fitFunction | ( | G4double * | x, |
G4double * | par | ||
) |
Fit function for magnetic field profile.
Fit function for magnetic field profiles.
Computes a combination of an error function step and a Gaussian depending on position.
x | Pointer to position array |
par | Pointer to parameter array |
G4double symmetrizedFunctionS | ( | G4double * | x, |
G4double * | par | ||
) |
Symmetrized fit function along S axis.
Symmetrized fit function along the S-axis.
Reflects the function about x0 = 3.4495 to enforce symmetry.
x | Pointer to position array |
par | Pointer to parameter array |
G4double symmetrizedFunctionY | ( | G4double * | x, |
G4double * | par | ||
) |
Symmetrized fit function along Y axis.
Symmetrized fit function along the Y-axis.
Reflects the function about x0 = 0 to enforce symmetry.
x | Pointer to position array |
par | Pointer to parameter array |