Class RotatedCompositeProbe
java.lang.Object
cnuphys.magfield.FieldProbe
cnuphys.magfield.CompositeProbe
cnuphys.magfield.RotatedCompositeProbe
- All Implemented Interfaces:
IField
-
Field Summary
Fields inherited from class CompositeProbe
probesFields inherited from class FieldProbe
_field, _name, cosSect, q1Coordinate, q2Coordinate, q3Coordinate, ROOT3OVER2, sinSect, X, Y, Z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfield(float xs, float ys, float zs, float[] result) Obtain the magnetic field at a given location expressed in Cartesian coordinates.voidfield(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.voidgradient(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 CompositeProbe
hasSolenoid, hasTorus, isZeroFieldMethods inherited from class 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:
fieldin interfaceIField- Overrides:
fieldin 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:
fieldin interfaceIField- Overrides:
fieldin 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:
gradientin interfaceIField- Overrides:
gradientin classCompositeProbe- Parameters:
xs- the x coordinate in cmys- the y coordinate in cmzs- 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.x- the x coordinate in cmy- the y coordinate in cmz- the z coordinate in cm
-