|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dwvisser.analysis.ArrayCalibration
This class is a database class for containing all the calibration info for the YLSA array. YLSA is an array of 5 16-strip detectors. This class will eventually be a repository for linear time and energy calibration data and will be able to service a sort routine with appropriate gain coefficients which compress gains of all channels to match the lowest gain channel.
Field Summary | |
static int |
NUM_DETECTORS
Number of detectors in YLSA array. |
static int |
NUM_STRIPS
Number of strips per detector in YLSA array. |
Constructor Summary | |
ArrayCalibration()
|
Method Summary | |
int |
getCalibratedEnergyChannel(int det,
int strip,
int channel)
|
int |
getCalibratedTimeChannel(int det,
int strip,
int channel)
Returns the uncompressed channel number recommended for displaying calibrated time. |
double |
getChannelsPerMeV()
|
double |
getChannelsPerNsec()
|
double |
getDistance(int strip)
|
double |
getEnergyDeposited(int det,
int strip,
int channel)
Returns energy deposited in MeV. |
double |
getEnergyGain(int det,
int strip)
|
double |
getEnergyOffset(int det,
int strip)
Gets zero offset for channel in the electronics. |
double |
getIncidence(int strip)
Returns 1/cos(inc. |
void |
getOffsets(java.io.File offsetsText)
Format of the file is |
double |
getPhi(int det)
|
double |
getTheta(int strip)
Returns theta of strip in radians. |
static void |
main(java.lang.String[] args)
Just for debugging. |
void |
setEnergyGain(int det,
int strip,
double gain)
Sets the number of channels per MeV for this channel of electronics. |
void |
setEnergyGainFactors()
Processes energy gains to produce a factor <= 1.0 to multiply. |
void |
setEnergyOffset(int det,
int strip,
double offset)
Sets the zero-offset for the particular channel of electronics. |
void |
setTimeGain(int det,
int strip,
double gain)
Sets gain for this channel of electronics. |
void |
setTimeGainFactors()
Processes time gains to produce a factor <= 1.0 to multiply. |
void |
setTimeOffset(int det,
int strip,
double offset)
|
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int NUM_DETECTORS
public static int NUM_STRIPS
Constructor Detail |
public ArrayCalibration()
Method Detail |
public void getOffsets(java.io.File offsetsText)
det strip offset delOffset
offsetsText
- file containing offsets informationpublic void setEnergyOffset(int det, int strip, double offset)
det
- which detectorstrip
- which strip in the detectoroffset
- channel corresponding to zero energypublic void setTimeOffset(int det, int strip, double offset)
public double getEnergyOffset(int det, int strip)
det
- which detectorstrip
- which strip
public void setEnergyGain(int det, int strip, double gain)
det
- which detectorstrip
- which stripgain
- channels per MeVpublic double getEnergyGain(int det, int strip)
public void setTimeGain(int det, int strip, double gain)
det
- which detectorstrip
- which strip in the detectorgain
- channels per nsecpublic void setEnergyGainFactors()
public void setTimeGainFactors()
public double getChannelsPerMeV()
public double getChannelsPerNsec()
public int getCalibratedEnergyChannel(int det, int strip, int channel)
public double getEnergyDeposited(int det, int strip, int channel)
public int getCalibratedTimeChannel(int det, int strip, int channel)
det
- detector numberstrip
- strip numberchannel
- raw channel number from TDC
public java.lang.String toString()
toString
in class java.lang.Object
public double getIncidence(int strip)
strip
- strip number in detector (0 further back, 15 further forward)
public double getDistance(int strip)
public double getTheta(int strip)
public double getPhi(int det)
public static void main(java.lang.String[] args)
args
- command-line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |