dwvisser.nuclear
Class Absorber

java.lang.Object
  |
  +--dwvisser.nuclear.Absorber
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Gas, Solid

public abstract class Absorber
extends java.lang.Object
implements java.io.Serializable

An abstraction of a thickness of material acting as a stopper of energetic ions.

Author:
Dale W. Visser
See Also:
Serialized Form

Field Summary
static int CM
           
protected  double[] density
          Densities in g/cm^3.
protected  double[] fractions
          Fraction of nuclei that are this species.
static int MICROGRAM_CM2
          Units of thickness, ug/cm^2, mg/cm^2, cm
static int MIL
           
static int MILLIGRAM_CM2
           
protected  double thickness
           
protected  int[] Z
           
 
Constructor Summary
Absorber()
           
 
Method Summary
abstract  double getDensity()
          Returns mass density of absorber in g/cm^3.
 int[] getElements()
           
 double[] getFractions()
           
abstract  Absorber getNewInstance(double factor)
          Returns new absorber identical to this one, with thickness multiplied by factor.
abstract  double getThickness()
          Returns thickness in micrograms/cm^2.
protected  double[] setFractions(double[] fin)
           
 void setThickness(double value)
           
 void setThickness(double value, int units)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MICROGRAM_CM2

public static final int MICROGRAM_CM2
Units of thickness, ug/cm^2, mg/cm^2, cm

See Also:
Constant Field Values

MILLIGRAM_CM2

public static final int MILLIGRAM_CM2
See Also:
Constant Field Values

CM

public static final int CM
See Also:
Constant Field Values

MIL

public static final int MIL
See Also:
Constant Field Values

Z

protected int[] Z

density

protected double[] density
Densities in g/cm^3. (E.g. water would be ~ 1.0).


fractions

protected double[] fractions
Fraction of nuclei that are this species.


thickness

protected double thickness
Constructor Detail

Absorber

public Absorber()
Method Detail

getThickness

public abstract double getThickness()
Returns thickness in micrograms/cm^2.


setFractions

protected double[] setFractions(double[] fin)

getElements

public int[] getElements()

getFractions

public double[] getFractions()

setThickness

public void setThickness(double value,
                         int units)

setThickness

public void setThickness(double value)

getDensity

public abstract double getDensity()
Returns mass density of absorber in g/cm^3.


getNewInstance

public abstract Absorber getNewInstance(double factor)
Returns new absorber identical to this one, with thickness multiplied by factor.