Package cnuphys.magfield
Class RotatedCompositeProbe
java.lang.Object
cnuphys.magfield.FieldProbe
cnuphys.magfield.CompositeProbe
cnuphys.magfield.RotatedCompositeProbe
- All Implemented Interfaces:
- IField
- 
Field SummaryFields inherited from class cnuphys.magfield.CompositeProbeprobesFields inherited from class cnuphys.magfield.FieldProbe_field, _name, cosSect, q1Coordinate, q2Coordinate, q3Coordinate, ROOT3OVER2, sinSect, X, Y, Z
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 cnuphys.magfield.CompositeProbehasSolenoid, hasTorus, isZeroFieldMethods inherited from class cnuphys.magfield.FieldProbecontains, 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- 
fieldpublic 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 interface- IField
- Overrides:
- fieldin class- CompositeProbe
- Parameters:
- sector- the sector [1..6]
- xtilt- the tilted x coordinate in cm
- ytilt- the tilted y coordinate in cm
- ztilt- the tilted z coordinate in cm
- result- 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.
 
- 
fieldpublic 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 interface- IField
- Overrides:
- fieldin class- CompositeProbe
- Parameters:
- xs- the x coordinate in cm in sector 1 sector system
- ys- the y coordinate in cm in sector 1 sector system
- zs- the z coordinate in cm in sector 1 sector system
- result- 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.
 
- 
gradientpublic 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 interface- IField
- Overrides:
- gradientin class- CompositeProbe
- 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.
 
 
-