Class SolenoidProbe

java.lang.Object
cnuphys.magfield.FieldProbe
cnuphys.magfield.SolenoidProbe
All Implemented Interfaces:
IField
Direct Known Subclasses:
StandardSolenoidProbe, TransverseSolenoidProbe

public abstract class SolenoidProbe extends FieldProbe
  • Constructor Details

    • SolenoidProbe

      public SolenoidProbe(IMagField 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.
      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.