Page History
...
Dark files were obtained and deployed using Calibration Management Tool
exp=cxif5315:run=147 dark average, rms, and average difference between runs 147-198:
...
Geometry alignment
In accordance with CSPAD Alignment, use geometry file:
/reg/g/psdm/detector/alignment/cspad/calib-cxi-ds2-2015-01-20/calib/CsPad::CalibV1/CxiDs2.0:Cspad.0/geometry/1-end.data
...
Tuning of geometry can be done with Detector alignment tool running command:
Code Block |
---|
geo -i cspad-ndarr-ave-cxif5315-r0169.dat -g geo-cxif5315-r0169-swap-tuned.data |
...
Using image array in cspad-ndarr-max-cxif5315-r0169.dat and geometry file geo-cxif5315-r0169-swap-tuned.data, one can generate masks using the Mask Editor embedded in Calibration Manager.
Run command calibman
, select tab ROI
and performing all steps of the mask creation procedure, one can draw ROI on image, create the mask for this image, convert this mask to ndarray, and use this ndarray for data processing. This ndarray can be used later for image reconstruction with the same geometry file.
...
Peak finding algorithm is based on psana module ImgAlgos::NDArrDropletFinder with preceded CSPAD ndarray producer CSPadPixCoords::CSPadNDArrProducer and its calibration ImgAlgos::NDArrCalib. Detector geometry information is provided by the module ImgAlgos::PixCoordsProducer. Configuration file psana-cxif5315-r0169-cspad-ds2-NDArrDropletFinder.cfg (download) defines parameters for these modules. Two instances of modules are used in order to process two region of interests for Arc and Equator.
...
Latest version of packages
...
On 2015-04-16:
Release ana-0.14.2
is up to date.
Until ana-current
is ana-0.14.1
, one has to use sit_setup
script with release tag parameter:
Code Block |
---|
sit_setup ana-0.14.2 |
External files
In order to run examples create directory with some arbitrary name my_analysis
and work
directory in it:1 in the local release directory
Code Block |
---|
addpkg CalibManager HEAD
addpkg CorAna HEAD
addpkg ImgAlgos HEAD
addpkg PSCalib HEAD
addpkg pyimgalgos HEAD |
External files
mkdir my_analysis
mkdir my_analysis/work
cd my_analysis
sit_setup ana-0.14.2 |
Download files in my_analysis
directory:
- configuration file for ndarray averaging psana-cxif5315-cspad-ds2-NDArrAverage.cfg (download )
- configuration file for droplet(peak) finder psana-cxif5315-r0169-cspad-ds2-NDArrDropletFinder.cfg (download)
- python script for droplet(peak) finder for droplet(peak) finderpsana-cxif5315-r0169-cspad-ds2-NDArrDropletFinder.py (download)
Configuration script expects a few files in the local directory work/
; two files with masks and file with a shape of background needs to be downloaded in the my_analysis/work directory:
...
- Peak finder parameters - all parameters in the peak finder are set without optimization. They need to be tuned in two places;
- in the configuration file for two modules
ImgAlgos.NDArrDropletFinder(:Arc/:Equ)
, and - in the python script in calls of
peaks_filter(...)
method.
- in the configuration file for two modules
- ROI for peakfinder is defined by combination of two mechanisms;
- mask - ndarray with values 1/0. Pixels masked by "0", are ignored.
- a set of rectangular windows on sensors, defined by the parameter windows in module ImgAlgos::NDArrDropletFinder.
- Peak finder parameters need to be optimized!
References