Package cnuphys.magfield
Class ZeroProbe
java.lang.Object
cnuphys.magfield.FieldProbe
cnuphys.magfield.ZeroProbe
- All Implemented Interfaces:
- IField
- 
Field SummaryFields inherited from class cnuphys.magfield.FieldProbe_field, _name, cosSect, q1Coordinate, q2Coordinate, q3Coordinate, ROOT3OVER2, sinSect, X, Y, Z
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontains(double x, double y, double z) Check whether the field boundaries include the pointvoidfield(float x, float y, float z, float[] result) Obtain the magnetic field at a given location expressed in Cartesian coordinates.floatfieldMagnitude(float x, float y, float z) Get the field magnitude in kiloGauss at a given location expressed in Cartesian coordinates.floatObtain the maximum field magnitude of any point in the map.voidgradient(float x, float y, float z, float[] result) Obtain an approximation for the magnetic field gradient at a given location expressed in Cartesian coordinates.booleanChecks whether the field has been set to always return zero.Methods inherited from class cnuphys.magfield.FieldProbefactory, factory, field, getB1, getB2, getB3, getCompositeIndex, getField, getName, getPhiCoordinate, getPhiMax, getPhiMin, getRCoordinate, getRhoMax, getRhoMin, getSector, getZCoordinate, getZMax, getZMin
- 
Constructor Details- 
ZeroProbepublic ZeroProbe()
 
- 
- 
Method Details- 
fieldMagnitudepublic float fieldMagnitude(float x, float y, float z) Description copied from class:FieldProbeGet the field magnitude in kiloGauss at a given location expressed in Cartesian coordinates.- Specified by:
- fieldMagnitudein interface- IField
- Overrides:
- fieldMagnitudein class- FieldProbe
- Parameters:
- x- the x coordinate in cm
- y- the y coordinate in cm
- z- the z coordinate in cm
- Returns:
- the magnitude of the field in kiloGauss.
 
- 
getMaxFieldMagnitudepublic float getMaxFieldMagnitude()Description copied from class:FieldProbeObtain the maximum field magnitude of any point in the map.- Specified by:
- getMaxFieldMagnitudein interface- IField
- Overrides:
- getMaxFieldMagnitudein class- FieldProbe
- Returns:
- the maximum field magnitude in the units of the map.
 
- 
isZeroFieldpublic boolean isZeroField()Description copied from class:FieldProbeChecks whether the field has been set to always return zero.- Specified by:
- isZeroFieldin interface- IField
- Overrides:
- isZeroFieldin class- FieldProbe
- Returns:
- trueif the field is set to return zero.
 
- 
gradientpublic void gradient(float x, float y, float z, float[] result) Description copied from class:FieldProbeObtain 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 interface- IField
- Overrides:
- gradientin class- FieldProbe
- 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.
 
- 
fieldpublic void field(float x, float y, float z, float[] result) Description copied from interface:IFieldObtain 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.
 
- 
containspublic boolean contains(double x, double y, double z) Description copied from class:FieldProbeCheck whether the field boundaries include the point- Specified by:
- containsin interface- IField
- Overrides:
- containsin class- FieldProbe
- Parameters:
- x- the x coordinate in the map units
- y- the y coordinate in the map units
- z- the z coordinate in the map units
- Returns:
- trueif the point is included in the boundary of the field
 
 
-