gov.nist.microanalysis.NISTMonte
Class BackscatterStats

java.lang.Object
  extended by gov.nist.microanalysis.NISTMonte.BackscatterStats
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class BackscatterStats
extends java.lang.Object
implements java.awt.event.ActionListener

Implements an accumulator that watches for backscatter events and histograms them.

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

Constructor Summary
BackscatterStats(MonteCarloSS mcss)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 double azimuthalAngle(int bin)
          azimuthalAngle - Maps bin number in the azimuthal angle into angles in radians.
 int[] azimuthalHistogram()
          azimuthalHistogram - Returns a histogram of the backscattered and forward scattered electrons as a function of the azimuthal angle.
 double backscatterFraction()
          backscatterFraction - Returns the fraction of electrons which strike the sample that scatter back into the negative-z direction.
 void dump(java.io.OutputStream os)
           
 double elevationAngle(int bin)
          elevationAngle - Maps bin numbers into elevation angles.
 int[] elevationHistogram()
          elevationHistogram - Returns a histogram of the backscattered and forward scattered electrons as a function of elevation.
 double energyBin(int bin)
           
 double forwardscatterFraction()
          backscatterFraction - Returns the fraction of electrons which strike the sample that scatter forwards into the positive-z direction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackscatterStats

public BackscatterStats(MonteCarloSS mcss)
Method Detail

actionPerformed

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

backscatterFraction

public double backscatterFraction()
backscatterFraction - Returns the fraction of electrons which strike the sample that scatter back into the negative-z direction.

Returns:
double

forwardscatterFraction

public double forwardscatterFraction()
backscatterFraction - Returns the fraction of electrons which strike the sample that scatter forwards into the positive-z direction.

Returns:
double

energyBin

public double energyBin(int bin)

elevationHistogram

public int[] elevationHistogram()
elevationHistogram - Returns a histogram of the backscattered and forward scattered electrons as a function of elevation. The beam is at bin zero. The final bin is contains 180 degrees. The function elevationAngle returns the mapping between bin and angle.

Returns:
int[]

elevationAngle

public double elevationAngle(int bin)
elevationAngle - Maps bin numbers into elevation angles.

Parameters:
bin - int - The bin number
Returns:
double - The angle in radians

azimuthalHistogram

public int[] azimuthalHistogram()
azimuthalHistogram - Returns a histogram of the backscattered and forward scattered electrons as a function of the azimuthal angle. Bin zero is at the x-axis as is the last bin.

Returns:
int[]

azimuthalAngle

public double azimuthalAngle(int bin)
azimuthalAngle - Maps bin number in the azimuthal angle into angles in radians.

Parameters:
bin - int
Returns:
double

dump

public void dump(java.io.OutputStream os)