Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

% psana -m <file-name>.cfg exp=mecb3114:run=376

 

Examples for meci0114

Andreas Schropp needs to access cspad image in his custom psana module.

On 2014-03-21 Module ImgAlgos::ExampleDumpImg is add as an example.

Get and run this example in current release

For releases ≤ ana-0.10.14 the updated version of code can be compiled and run from local release directory;

Code Block
ssh -Y psana
cd <your-favorite-directory>

newrel ana-0.10.14 my-release-dir;
cd my-release-dir;
sit_setup;
addpkg ImgAlgos HEAD;
addpkg CSPadPixCoords HEAD;
scons;

<pick-up *.cfg files> 

psana -c psana-meci0114-r0050-exampleimgdump-cspadcalib.cfg
psana -c  psana-meci0114-r0050-exampleimgdump-ndarrcalib.cfg

Configuration files

  • psana-meci0114-r0050-exampleimgdump-ndarrcalib.cfg - use sequence of CSPadNDArrProducer, NDArrCalib, CSPadImageProducer, and ExampleDumpImg modules
    CSPadNDArrProducer - creates ndarray<const T,3> for a few generic data types,
    NDArrCalib - may apply more corrections than CsPadCalib.
    ExampleDumpImg - also may process a few data types such as int16_t, int, float, and double.

Other option to save image in 16-bit tiff files

...