Versions Compared

Key

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

...

Command for "forward" conversion of the detector geometry constants from psana to CrystFEL needs in a couple of parameters for detector type (-d) and input psana geometry file name (-f) . It is also convenient to specify unique and optionally output CrystFEL geometry file name (-o), for example

      geometry_convert -d cspad -f geo-cspad-psana.data -o geo-cspad-crystfel.geom

By default converter changes coordinate frame from psana (similar to one in optical metrology) to LAB (usually used in CrystFEL). Parameter --cframe 0 allows to keep the coordinate frame unchanged.

For now, forward Forward converter recognizes detector types detectors epix10ka, epix10kav2, jungfrau, cspad, pnccd , pnccdv2, associated with segment types from their segment names EPIX10KA:V1, EPIX10KA:V2, JUNGFRAU:V1, JUNGFRAU:V2, SENS2X1:V1, PNCCD:V1, MTRX:V2:512:512:75:75 , respectively, used in loaded from the input geometry file.

Conversion from CrystFEL to psana

...

For now, backward converter recognizes works for detector types epix10ka, jungfrau, cspad (with quads like in cxi), cspadv2 (without quads like in xpp), pnccd. Information about detector type is missing in the CrystFEL *.geom file, so parameted -d needs to be specified.

Special case of CSPAD detector

ASIC naming convention in CrystFEL are slightly different for cspad with and without moving quads. For now, appropriate Appropriate detector type (-d) should be selected specified explicitly as cspad or cspadv2, respectively, for exampe

...

Code Block
titleCurrent result for command geometry_convert -h
collapsetrue
Converts geometry constants from psana to CrystFEL format and backward (see
--fname).

optional arguments:
  -h, --help            show this help message and exit
  -d DETTYPE, --dettype DETTYPE
                        detector type, one of epix10ka, jungfrau, cspad,
                        pnccd, def=epix10ka
  -f FNAME, --fname FNAME
                        input geometry file name. File name extention *.geom
                        launches converter from CrystFEL to psana,
                        def=/reg/g/psdm/detector/data_test/geometry/geo-
                        epix10ka2m-16-segment.data
  -o OFNAME, --ofname OFNAME
                        output file name, def=geo-crystfel.txt
  -l LOGLEV, --loglev LOGLEV
                        logging level name, one of NOTSET, DEBUG, INFO,
                        WARNING, ERROR, CRITICAL, def=INFO
  --cframe CFRAME       coordinate frame 0/1 for psana/LAB, def=1. Works for
                        PSANA->CRYSTFEL conversion ONLY where it selects frame
                        for pixel coordinates. Backward conversion
                        CRYSTFEL->PSANA does not change frame. For test
                        perpose it is assumed that forth and back conversion
                        PSANA->CRYSTFEL->PSANA should not change constants in
                        the geometry file (up to precision lose at conversion)
                        if they are defined for the same coordinate frame. For
                        this type of test parameter should be set to 0 to keep
                        psana frame unchanged.
   -d DETTYPE, --dettype DETTYPE
                        USED FOR CRYSTFEL TO PSANA ONLY - 
                        detector type, one of epix10ka, jungfrau, cspad, cspadv2,
                        pnccd, def=epix10ka
 

Reference

...