Package cnuphys.swimZ
Class SectorSwimZDerivative
java.lang.Object
cnuphys.swimZ.SwimZDerivative
cnuphys.swimZ.SectorSwimZDerivative
- All Implemented Interfaces:
IDerivative
-
Field Summary
Fields inherited from class cnuphys.swimZ.SwimZDerivative
_probe, _q, _qv, B
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
derivative
(double z, double[] x, double[] dxdz) Compute the derivatives given the value of the independent variable and the values of the function.void
set
(int sector, int Q, double p, FieldProbe probe) Set the parametersvoid
setSector
(int sector) Set the sector [1..6]Methods inherited from class cnuphys.swimZ.SwimZDerivative
set
-
Constructor Details
-
SectorSwimZDerivative
public SectorSwimZDerivative()
-
-
Method Details
-
setSector
public void setSector(int sector) Set the sector [1..6]- Parameters:
sector
- the sector [1..6]
-
set
Set the parameters- Parameters:
sect
- the sector [1..6]Q
- -1 for electron, +1 for proton, etc.p
- the magnitude of the momentum in GeV/c.probe
- the magnetic field getter
-
derivative
public void derivative(double z, double[] x, double[] dxdz) Compute the derivatives given the value of the independent variable and the values of the function. Think of the Differential Equation as being dydt = f[y,t].- Specified by:
derivative
in interfaceIDerivative
- Overrides:
derivative
in classSwimZDerivative
- Parameters:
z
- the value of the independent variable (the z coordinate) (input).x
- the values of the state vector (x, y, tx, ty, q) at z (input).dxdz
- will be filled with the values of the derivatives at z (output).
-