Package cnuphys.magfield
Class TransverseSolenoid
java.lang.Object
cnuphys.magfield.MagneticField
cnuphys.magfield.Solenoid
cnuphys.magfield.TransverseSolenoid
- All Implemented Interfaces:
IMagField
-
Field Summary
Fields inherited from class cnuphys.magfield.MagneticField
_interpolate, _scaleFactor, _shiftX, _shiftY, _shiftZ, angularUnit, avgField, field, fieldCoordinateSystem, fieldUnit, gridCoordinateSystem, highTime, lengthUnit, LOGGER, lowTime, MAGICNUMBER, maxField, maxFieldIndex, maxFieldLocation, maxVectorField, MISALIGNTOL, numFieldPoints, q1Coordinate, q2Coordinate, q3Coordinate, reserved3, reserved4, reserved5
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double x, double y, double z) Checks whether the field boundary contain the given point.static TransverseSolenoid
fromBinaryFile
(File file) Obtain a transverse solenoid object from a binary file.getName()
Get the name of the fieldboolean
isActive()
Checks this field active.void
Print the current configurationfinal String
toString()
Get some data as a string.Methods inherited from class cnuphys.magfield.Solenoid
isZeroField
Methods inherited from class cnuphys.magfield.MagneticField
computeMaxField, fieldMagnitude, getB1, getB2, getB3, getBaseFileName, getBComponent, getCompositeIndex, getCoordinateIndices, getCreationDate, getFakeZMax, getLocation, getMaxFieldMagnitude, getPhiCoordinate, getQ1Coordinate, getQ2Coordinate, getQ3Coordinate, getRCoordinate, getRhoMax, getRhoMin, getScaleFactor, getShiftX, getShiftY, getShiftZ, getXCoordinate, getYCoordinate, getZCoordinate, getZMax, getZMin, isInterpolate, isMisaligned, isMisalignedX, isMisalignedY, isMisalignedZ, maxFieldMagnitude, readBinaryMagneticField, setCoordinateNames, setFakeZMax, setInterpolate, setScaleFactor, setShiftX, setShiftY, setShiftZ, setZeroField, squareMagnitude, vectorField, vectorToString
-
Method Details
-
getName
Description copied from interface:IMagField
Get the name of the field -
toString
Get some data as a string.- Overrides:
toString
in classMagneticField
- Returns:
- a string representation.
-
printConfiguration
Print the current configuration- Specified by:
printConfiguration
in interfaceIMagField
- Overrides:
printConfiguration
in classSolenoid
- Parameters:
ps
- the print stream
-
isActive
public boolean isActive()Checks this field active. -
fromBinaryFile
Obtain a transverse solenoid object from a binary file.- Parameters:
file
- the file to read- Returns:
- the transverse solenoid object
- Throws:
FileNotFoundException
- the file not found exception
-
contains
public boolean contains(double x, double y, double z) Checks whether the field boundary contain the given point.- Specified by:
contains
in interfaceIMagField
- Overrides:
contains
in classMagneticField
- Parameters:
x
- the x coordinate in cmy
- the y coordinate in cmz
- the z coordinate in cm- Returns:
true
if the field contains the given point
-