gov.nist.microanalysis.EPQLibrary
Class Microcalorimeter

java.lang.Object
  extended by gov.nist.microanalysis.EPQLibrary.BaseSpectrum
      extended by gov.nist.microanalysis.EPQLibrary.EditableSpectrum
          extended by gov.nist.microanalysis.EPQLibrary.Microcalorimeter
All Implemented Interfaces:
ISpectrumData, java.awt.event.ActionListener, java.lang.Comparable, java.util.EventListener

public class Microcalorimeter
extends EditableSpectrum
implements java.awt.event.ActionListener

Implements a basic model of a Microcalorimeter detector..

Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain

Company: National Institute of Standards and Technology

Version:
1.0
Author:
Nicholas W. M. Ritchie

Field Summary
 
Fields inherited from class gov.nist.microanalysis.EPQLibrary.BaseSpectrum
mHashCode, NULL_HASH, NullSpectrum
 
Constructor Summary
Microcalorimeter(int nChannels, double chWidth)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addEvent(double energy, double intensity)
          addEvent - Add x-ray events of the specified energy and intensity.
 void clear()
          clear - Clear the spectral data.
 void dumpEfficiency()
           
 double GaussianWidth(double e)
           
 double getCounts(int n)
          getCounts - See ISpectrumData
 double getGain(double g)
          getGain - Returns the current gain (default =1.0)
 void setGain(double g)
          setGain - Sets a constant which is multiplied by the intensity in addEvent.
 
Methods inherited from class gov.nist.microanalysis.EPQLibrary.EditableSpectrum
clearChannels, getChannelCount, getChannelWidth, getCounts, getProperties, getZeroOffset, setCounts, setProperties
 
Methods inherited from class gov.nist.microanalysis.EPQLibrary.BaseSpectrum
compareTo, equals, hashCode, initializeSpectrumIndex, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Microcalorimeter

public Microcalorimeter(int nChannels,
                        double chWidth)
                 throws EPQException
Throws:
EPQException
Method Detail

GaussianWidth

public double GaussianWidth(double e)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

clear

public void clear()
clear - Clear the spectral data.


addEvent

public void addEvent(double energy,
                     double intensity)
addEvent - Add x-ray events of the specified energy and intensity.

Parameters:
energy - double - The energy of the x-ray (in Joules)
intensity - double - The (possibly-fractional) number of x-rays

getCounts

public double getCounts(int n)
Description copied from class: EditableSpectrum
getCounts - See ISpectrumData

Specified by:
getCounts in interface ISpectrumData
Overrides:
getCounts in class EditableSpectrum
Parameters:
n - int
Returns:
double

dumpEfficiency

public void dumpEfficiency()

setGain

public void setGain(double g)
setGain - Sets a constant which is multiplied by the intensity in addEvent.

Parameters:
g - double

getGain

public double getGain(double g)
getGain - Returns the current gain (default =1.0)

Parameters:
g - double
Returns:
double