xrcf_rt - simulates XRCF measurements indentified by runid and iteration
xrcf_rt uses the Getopt style parameter interface, i.e. parameters are specified on the command line as
xrcf_rt --opt_name=opt_vaule
X(OSAC) position of the FOA. Default is to calculate this value from the STG log.
Y(OSAC) position of the FOA. Default is to calculate this value from the STG log.
Z(OSAC) position of the FOA. Defaults to 10274.77509815.
X(OSAC) position. Default is to calculate this value from the STG log. If x is set, the aperture offset from the FOA is applied to the user specifed x.
Y(OSAC) position. Default is to calculate this value from the STG log. If y is set, the aperture offset from the FOA is applied to the user specifed y.
Z(OSAC) position. Default is to calculate this value from the STG log. If z is set, the aperture offset from the FOA is applied to the user specifed z.
X(OSAC) position. Default is to calculate this value from the STG log. If x is set, the detector offset from the FOA is applied to the user specifed x.
Y(OSAC) position. Default is to calculate this value from the STG log. If y is set, the detector offset from the FOA is applied to the user specifed y.
Z(OSAC) position. Default is to calculate this value from the STG log. If z is set, the detector offset from the FOA is applied to the user specifed z.
xrcf_rt simulates XRCF measurements identified by runid and iteration.
xrcf_rt queries db to determine the parameters for measurements in trwid or runid. The user may modify a measurements setup by specifying a different value for one of the parameters. For example, if the user wishes to simulate the conditions for runid 108000, but change the pitch from 0 to 12, simply specify pitch=12.
Take care when modifying the x, y, or z parameters as defaults for the apxyz and detxyz parameters are applied as offsets to the xyz parameters. So, if you modify the xyz parameters, you are in fact modifying the apxyz and detxyz parameter values.
Either trwid or runid must be specified. When specifying more than one runid, all runids must be within the same TRW id. If both trwid and runid are specifed, runid is ignored and all runids for the trwid are run.
xrcf_rt uses applicable XSS source maps when available. If no XSS source map is found, then xrcf_rt complains and dies.
xrcf_rt can filter runids based on testnames from the XRCF coord log. Default behavior is to filter out all beamcen, bnd5_map, and set_hv runids. The testnames from the coordlog are used as boolean parameters. To simulate beamcenters, specify beamcen on the commandline. To exclude beamcenters from the simulations, specify nobeamcen. The complete list of testnames are 1dscan, acis_collect, beamcen, bnd5_map, collect, fpcscan, hsi_image, listscan, set_fpchv, set_hsihv, set_ssdhv, shutscan, ssdscan.
xrcf_rt outputs the following columns trwid, runid, iter, photdens, energy, shutters, pitch, yaw, x, y, z, ap, apx, apy, apz, det, detx, dety, detz, cnt, wt, cnt_ghosts, wt_ghosts, Aeff, and Aerr.
Note that the error on effective area is output as zero if there are are zero counts detected. This is not an actual error so mush as a flag to indicate that we are uncertain of error on the point.
M. Tibbetts ( mtibbetts@head-cfa.harvard.edu )
Developed from scripts written by K. Michaud.