Page History
...
Module | Functionality |
---|---|
ImgVsTimeSplitInFiles | splitter |
CorAna | base class with common methods |
CorAnaData | data processing for split files |
CorAnaInputParameters | provides storage for input parameters |
CorAnaMergeFiles | merging algorithm |
CorAnaPars.py | singleton class for parameter storage in the wrapping file manager |
CorAnaSubmit.py | global methods for the file manager |
app/corana_submit | sequence of procedures in the file manager |
test app/corana.cpp | main module for the part of image vs time correlation processing |
test app/corana_merge.cpp | main module for merging |
ana-misc-exp data/psana-...-auto-correlation.cfg | psana configuration file for ImgVsTimeSplitInFiles |
data/PlotCorAnaResults.py | example of the python script which plots the test result histogram |
Image splitting
Image splitting is implemented as a regular psana module ImgAlgos::ImgVsTimeSplitInFiles.
...
For example:
Code Block |
---|
psana -c ana-misc-expImgAlgos/data/psana-xcsi0112-r0015-img-auto-correlation.cfg /reg/d/psdm/XCS/xcsi0112/xtc/e167-r0015-* |
where ImgAlgos/data/psana-xcsi0112-r0015-img-auto-correlation.cfg
is an example of the configuration script for psana
and /reg/d/psdm/XCS/xcsi0112/xtc/e167-r0015-*
are the input xtc files for particular run.
Note |
---|
Interactive job can be run on |
...
Time correlation processing
ImgAlgos/testapp/corana
application
Command to run interactively on psana#### node:
Code Block |
---|
<path>/corana -f <fname-data> [-t <fname-tau>] -h [-l <logfile>] [-b <basedir>]
|
For example the interactive and batch mode commands:
Code Block |
---|
<path>/corana -f img-xcs-r0015-b0001.bin -t my-tau.txt bsub -q psnehq -o ~/<path-from-home-dir>/log.txt '<path>/corana -f img-xcs-r0015-b0000.bin' |
Where ~/<path-from-home-dir>/
or <path>
is arbitrary choice and is a matter of tastean arbitrary directory, but this directory should exist before running this script.
Produce files:
Code Block |
---|
img-xcs-r0015-tau.txt - string of {{tau}} values for which the auto-correlation function is evaluated img-xcs-r0015-b0000-result.bin - auto-correlators for the part of the image for all {{tau}} values img-xcs-r0015-b0001-result.bin img-xcs-r0015-b0002-result.bin img-xcs-r0015-b0003-result.bin img-xcs-r0015-b0004-result.bin img-xcs-r0015-b0005-result.bin img-xcs-r0015-b0006-result.bin img-xcs-r0015-b0007-result.bin |
Merging results
ImgAlgos/testapp/corana_merge
application
Command:
Code Block |
---|
<path>/corana_merge -f <fname-data> [-t <fname-tau>] -h [-l <logfile>] [-b <basedir>]
|
For example:
Code Block |
---|
<path>/corana_merge -f img-xcs-r0015-b0001-result.bin -t my-tau.txt
|
...
Code Block |
---|
./CorAnaSubmit.py -c ana-misc-expImgAlgos/data/psana-xcsi0112-r0015-img-auto-correlation.cfg -t my-tau.txt /reg/d/psdm/XCS/xcsi0112/xtc/e167-r0015-s00-c00.xtc |
...