dwvisser.nuclear
Class TUNL_PID

java.lang.Object
  |
  +--dwvisser.nuclear.TUNL_PID

public final class TUNL_PID
extends java.lang.Object

This class will execute a process to simulate the focal plane detector. It is based on the code written by Kazim Yildiz for the Vax machines, which are now dying. It was too difficult and time-consuming to figure out why Kazim's code wouldn't run properly on the Solaris machines.

Version:
1.0
Author:
Dale W Visser

Nested Class Summary
 class TUNL_PID.FileOpenAction
           
 class TUNL_PID.FileQuitAction
           
 
Constructor Summary
TUNL_PID(java.lang.String name)
          This code calculates PID plots for the TUNL Enge spectrograph focal plane detector.
 
Method Summary
 void addReaction(Nucleus target, Nucleus projectile, int Qprojectile)
           
 void calculateElosses()
          Calculate and tabulate energy losses in various detector segments
 void calculateRhoValues()
          Determine possible sets of rho values for various reactions and tabulate them, based on kinematics.
 void initialize(Nucleus beam, double Tbeam, double Bfield, double angle, double rhoMin, double rhoMax, double pressure)
          Sets initial values.
static void main(java.lang.String[] args)
           
 void outputPaw(java.io.File path, java.lang.String outName)
          Produces a text file in the .kumac format, which can be run by the PAW program from CernLib to produce screen graphics and postscript files.
 void setScintFoil()
           
 void setupGas()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TUNL_PID

public TUNL_PID(java.lang.String name)

This code calculates PID plots for the TUNL Enge spectrograph focal plane detector. The energy loss regions used for calculation are as follows:

0
entrance window, 0.5 mil Kapton
1
"dead" gas, 0.225"
2
cathode foil, 0.125 mil aluminized mylar
3
"dead" gas and front position, 0.25"
4
ground foil, 0.125 mil aluminized mylar
5
delta-E gas, 1.795"
6
ground foil, 0.125 mil aluminized mylar
7
"dead" gas, 0.225"
8
cathode foil, 0.125 mil aluminized mylar
9
"dead" gas and rear position, 0.25"
10
ground foil, 0.125 mil aluminized mylar
11
"dead" gas, 0.67"
12
Al foil on scintillator, 1 mil
13
BC-404 scintillator, 0.25"

Parameters:
name - the name of the input specification file
Method Detail

initialize

public void initialize(Nucleus beam,
                       double Tbeam,
                       double Bfield,
                       double angle,
                       double rhoMin,
                       double rhoMax,
                       double pressure)
Sets initial values. Assumes isobutane gas in the detector.

Parameters:
beam - species of beam
Tbeam - kinetic energy in MeV
Bfield - of spectrometer in kG
angle - of spectrometer in degrees
rhoMin - lower limit of detector radius
rhoMax - upper limit of detector radius
pressure - gas pressure in torr

setScintFoil

public void setScintFoil()
                  throws NuclearException
NuclearException

setupGas

public void setupGas()
              throws NuclearException
NuclearException

addReaction

public void addReaction(Nucleus target,
                        Nucleus projectile,
                        int Qprojectile)
                 throws java.lang.Exception
java.lang.Exception

calculateRhoValues

public void calculateRhoValues()
Determine possible sets of rho values for various reactions and tabulate them, based on kinematics.


calculateElosses

public void calculateElosses()
Calculate and tabulate energy losses in various detector segments


outputPaw

public void outputPaw(java.io.File path,
                      java.lang.String outName)
               throws java.io.IOException
Produces a text file in the .kumac format, which can be run by the PAW program from CernLib to produce screen graphics and postscript files.

java.io.IOException

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments