Class TransverseSolenoidProbe

All Implemented Interfaces:
IField

public class TransverseSolenoidProbe extends SolenoidProbe
  • Constructor Details

    • TransverseSolenoidProbe

      public TransverseSolenoidProbe(TransverseSolenoid field)
      Create a probe for use with the transverse solenoid field
      Parameters:
      field - the transverse solenoid field
  • 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.
      Specified by:
      field in interface IField
      Overrides:
      field in class SolenoidProbe
      Parameters:
      x - the x coordinate in cm
      y - the y coordinate in cm
      z - the z coordinate in cm
      result - a float array holding the retrieved field in kiloGauss. The 0,1 and 2 indices correspond to x, y, and z components.