Package cnuphys.magfield
Class StandardSolenoid
java.lang.Object
cnuphys.magfield.MagneticField
cnuphys.magfield.Solenoid
cnuphys.magfield.StandardSolenoid
- All Implemented Interfaces:
- IMagField
The Class Solenoid.
- Version:
- 1.0
- Author:
- Sebouh Paul
- 
Field SummaryFields 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 SummaryModifier and TypeMethodDescriptionstatic StandardSolenoidfromBinaryFile(File file) Obtain a solenoid object from a binary file, probably "clas12_solenoid_fieldmap_binary.dat"getName()Get the name of the fieldbooleanisActive()Checks this field active.static voidmain method used for testing.voidPrint the current configurationfinal StringtoString()Get some data as a string.Methods inherited from class cnuphys.magfield.SolenoidisZeroFieldMethods inherited from class cnuphys.magfield.MagneticFieldcomputeMaxField, contains, 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- 
isActivepublic boolean isActive()Checks this field active.
- 
fromBinaryFileObtain a solenoid object from a binary file, probably "clas12_solenoid_fieldmap_binary.dat"- Parameters:
- file- the file to read
- Returns:
- the solenoid object
- Throws:
- FileNotFoundException- the file not found exception
 
- 
getNameGet the name of the field
- 
toStringGet some data as a string.- Overrides:
- toStringin class- MagneticField
- Returns:
- a string representation.
 
- 
printConfigurationPrint the current configuration- Specified by:
- printConfigurationin interface- IMagField
- Overrides:
- printConfigurationin class- Solenoid
- Parameters:
- ps- the print stream
 
- 
mainmain method used for testing.- Parameters:
- arg- command line arguments
 
 
-