enwtsum - sum up weights of rays with the same energy
enwtsum uses an IRAF-compatible parameter interface. A template parameter file is in /proj/axaf/simul/lib/uparm/enwtsum.par.
stdin,
the UNIX standard input stream is used.
stdout,
the UNIX standard output stream is used.
stdout, the UNIX standard output stream is used.
If it is the string stderr, the UNIX standard error stream is used.
enwtsum generates summed weights for each discrete energy found in the input bpipe ray stream. It copies the input ray stream untouched to the output bpipe ray stream. Because enwtsum tracks every value of energy that is input (it does not bin on energies) it is useful only when it is known that a small number of energies will be present.
The resultant sums are written to the specified log file as an rdb table, with the columns
energy - the ray energy
n - the number of rays with this energy
wt - the sum of the weights of the rays with this energy
Diab Jerius ( djerius@cfa.harvard.edu )