tag parameter gives the name of the rdb files in which the foc_vs_dens
results will be written. (Actually, the filenames will be out_tag_res and
out_tag_res2, the second file being a summary of the first). The rdb _res
file will contain the determined focus for each trace-shell run which
foc_vs_dens performs, and the _res2 file will contain the average focal
value and rms about that value for each photon density.
config_dir parameter to trace-shell is assumed to always be
/proj/axaf/simul/databases/ts_config. All of the mirror configuration
database files are presumed to be located in this directory.
foc_vs_dens is a module which allows the user to run the
trace-shell procedure multiple times with randomized initial seeds, and over
a range of photon densities. The goal of foc_vs_dens is to provide the
relationship (in tabular form) between the accuracy of the trace-shell
estimated focus, and the density of the incoming rays. The list of densities
is already hardwired in. All the user has to do is specify the number of
trace-shell iterations per photon density, the name of the output file tag,
and nine basic parameters which are to be used by trace-shell on every run.
The required input format is a phot/dpde ray stream; output is sent to two
different rdb files, which will be discussed below. Note that, although no
parameters in trace-shell3 need to be set directly, it is necessary that the
trace-shell3.par file be accessible (in addition to the foc_vs_dens.par file)
in order for foc_vs_dens to be able to successfully invoke trace-shell3.
One of the output rdb file databases which foc_vs_dens generates
contains the focus (as determined by trace-shell and getfocus) for each of the
trace-shell3 runs. (This rdb file is denoted by a _res extension.) It also
contains the shell, energy, and photdens input parameters to trace-shell3, as
well as the particular run number for whatever the current density is. The
second rdb file is a summary of this first database, and contains the average
and rms z-value for the focus, for each of the photon densities in the study.
The user does have the option of altering the list of photon densities
in the study, however it is impossible to do so through any other means but
actually altering the source code. The random value ranges for the seed1,
seed2, and block parameters are hardwired in as well, at 1 billion for each
seed, and 1 million for the block parameter. One other built-in parameter is
the configuration database for trace-shell3, which is set to
/proj/axaf/simul/databases/ts_config. The actual file, of course, can be
specified by the user. It is expected that any file that the user could
possibly wish to use must be in the aforementioned database.
A couple more notes should be made concerning the execution of
foc_vs_dens. First of all, although trace-shell3 is the only ``module'' that
it calls, foc_vs_dens also depends heavily on a little routine called
get_focus, which reads the focus from a .focus.lis file that is written by
trace-shell during each run-through. Secondly, as both databases are rdb
files, standard rdb routines are employed in updating them. This means that
before a entry is added to either database, the input parameters characterizing
the entry are checked against the database to see if any duplicate entry
exists. If so, then this entry is removed. In any case, the new entry is
entered into the database.