Package cnuphys.magfield
Class SolenoidProbe
java.lang.Object
cnuphys.magfield.FieldProbe
cnuphys.magfield.SolenoidProbe
- All Implemented Interfaces:
IField
- Direct Known Subclasses:
StandardSolenoidProbe
,TransverseSolenoidProbe
-
Field Summary
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 x, float y, float z, float[] result) Obtain the magnetic field at a given location expressed in Cartesian coordinates.Methods inherited from class cnuphys.magfield.FieldProbe
contains, factory, factory, field, fieldMagnitude, getB1, getB2, getB3, getCompositeIndex, getField, getMaxFieldMagnitude, getName, getPhiCoordinate, getPhiMax, getPhiMin, getRCoordinate, getRhoMax, getRhoMin, getSector, getZCoordinate, getZMax, getZMin, gradient, isZeroField
-
Constructor Details
-
SolenoidProbe
-
-
Method Details
-
field
public void field(float x, float y, float z, float[] result) Description copied from interface:IField
Obtain the magnetic field at a given location expressed in Cartesian coordinates. The field is returned as a Cartesian vector in kiloGauss.- 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.
-