Package cnuphys.magfield
Class RotatedCompositeProbe
java.lang.Object
cnuphys.magfield.FieldProbe
cnuphys.magfield.CompositeProbe
cnuphys.magfield.RotatedCompositeProbe
- All Implemented Interfaces:
IField
-
Field Summary
Fields inherited from class cnuphys.magfield.CompositeProbe
probes
Fields inherited from class cnuphys.magfield.FieldProbe
_field, _name, cosSect, q1Coordinate, q2Coordinate, q3Coordinate, ROOT3OVER2, sinSect, X, Y, Z
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
field
(float xs, float ys, float zs, float[] result) Obtain the magnetic field at a given location expressed in Cartesian coordinates.void
field
(int sector, float xtilt, float ytilt, float ztilt, float[] result) Obtain the magnetic field at a given location expressed in Cartesian coordinates of the tilted sector system.void
gradient
(float xs, float ys, float zs, float[] result) Obtain an approximation for the magnetic field gradient at a given location expressed in Cartesian coordinates.Methods inherited from class cnuphys.magfield.CompositeProbe
hasSolenoid, hasTorus, isZeroField
Methods inherited from class cnuphys.magfield.FieldProbe
contains, factory, factory, fieldMagnitude, getB1, getB2, getB3, getCompositeIndex, getField, getMaxFieldMagnitude, getName, getPhiCoordinate, getPhiMax, getPhiMin, getRCoordinate, getRhoMax, getRhoMin, getSector, getZCoordinate, getZMax, getZMin
-
Constructor Details
-
RotatedCompositeProbe
-
-
Method Details
-
field
public void field(int sector, float xtilt, float ytilt, float ztilt, float[] result) Obtain the magnetic field at a given location expressed in Cartesian coordinates of the tilted sector system. The field is returned as a Cartesian vector in kiloGauss.- Specified by:
field
in interfaceIField
- Overrides:
field
in classCompositeProbe
- Parameters:
sector
- the sector [1..6]xtilt
- the tilted x coordinate in cmytilt
- the tilted y coordinate in cmztilt
- the tilted z coordinate in cmresult
- the result is a float array holding the retrieved field in kiloGauss. The 0,1 and 2 indices correspond to x, y, and z components.
-
field
public void field(float xs, float ys, float zs, float[] result) Obtain the magnetic field at a given location expressed in Cartesian coordinates. The field is returned as a Cartesian vector in kiloGauss. THIS ASSUMES COORDINATES ARE IN A SECTOR 1 SECTOR SYSTEM- Specified by:
field
in interfaceIField
- Overrides:
field
in classCompositeProbe
- Parameters:
xs
- the x coordinate in cm in sector 1 sector systemys
- the y coordinate in cm in sector 1 sector systemzs
- the z coordinate in cm in sector 1 sector systemresult
- the result is a float array holding the retrieved field in kiloGauss. The 0,1 and 2 indices correspond to x, y, and z components.
-
gradient
public void gradient(float xs, float ys, float zs, float[] result) Obtain an approximation for the magnetic field gradient at a given location expressed in Cartesian coordinates. The field is returned as a Cartesian vector in kiloGauss/cm.- Specified by:
gradient
in interfaceIField
- Overrides:
gradient
in classCompositeProbe
- Parameters:
x
- the x coordinate in cmy
- the y coordinate in cmz
- the z coordinate in cmresult
- a float array holding the retrieved field in kiloGauss. The 0,1 and 2 indices correspond to x, y, and z components.
-