Versions Compared

Key

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

...

All z- deviations in Quad 3 are less than pixel size.

Constants

(tick)Archive: /reg/g/psdm/detector/alignment/cspad/calib-cxi-camera1-2014-09-24/


(tick) geometry center/0-end.data (pixel)

Code Block
# TITLE 197.94   198.05  Geometry 304.45parameters of CSPAD-CXI
# DATE_TIME 97.98   623.08   623.74   706.30   498.64  
 197.93   198.08   304.13    96.70   621.81   621.77   704.64   497.90  
 197.79   197.89   299.03    95.18   620.14   619.63   704.90   497.72  
 198.51   198.22   302.61    99.79   623.92   622.94   704.64   497.59  

 301.22    95.14   621.13   621.36   516.12   724.42   197.91   196.12  
 303.22    95.04   620.07   620.30   518.10   725.83   198.43   198.14  
 302.63    95.46   624.44   624.31   520.94   726.27   197.40   198.14  
 300.66    94.81   622.08   622.23   516.40   723.41   195.71   196.82  

   0.47     0.17    -0.25     0.17     0.65    -0.19    -0.14    -0.50  
   1.62     0.56     2.34     2.25     1.47     2.11     1.02     0.97  
   0.00     0.00     0.00     0.00     0.00     0.00     0.00     0.00  
  -0.08    -0.14     0.08     0.09     0.12    -0.15    -0.06     0.41 

 

or the same in um

Code Block
 21757   21769   33464   10769   68489   68561   77637   54810  
 21757   21773   33430   10628   68349   68345   77454   54729  
 21741   21752   32869   10462   68166   68109   77482   54709  
 21819   21788   33263   10969   68580   68473   77454   54695  

 33110   10457   68275   68299   56732   79628   21754   21558  
 33329   10446   68158   68183   56949   79783   21811   21779  
 33265   10493   68638   68624   57261   79832   21698   21779  
 33049   10421   68378   68395   56762   79517   21512   21635  

    51      18     -28      18 2014-10-28 11:39:51 PDT
# METROLOGY  /reg/neh/home1/dubrovin/LCLS/CSPadMetrologyProc/2014-09-24-CSPAD-CXI-DS1-Metrology-corr.txt
# AUTHOR     dubrovin
# EXPERIMENT Any
# DETECTOR   CSPAD-CXI
# CALIB_TYPE geometry
# COMMENT:01 Table contains the list of geometry parameters for alignment of 2x1 sensors, quads, CSPAD, etc
# COMMENT:02 All translation and rotation pars of the object are defined w.r.t. parent object Cartesian frame
# PARAM:01 PARENT     - name and version of the parent object
# PARAM:02 PARENT_IND - index of the parent object
# PARAM:03 OBJECT     - name and version of the object
# PARAM:04 OBJECT_IND - index of the new object
# PARAM:05 X0         - x-coordinate [um] of the object origin in the parent frame
# PARAM:06 Y0         - y-coordinate [um] of the object origin in the parent frame
# PARAM:07 Z0         - z-coordinate [um] of the object origin in the parent frame
# PARAM:08 ROT_Z      - object design rotation angle [deg] around Z axis of the parent frame
# PARAM:09 ROT_Y      - object design rotation angle [deg] around Y axis of the parent frame
# PARAM:10 ROT_X      - object design rotation angle [deg] around X axis of the parent frame
# PARAM:11 TILT_Z     - object tilt angle [deg] around Z axis of the parent frame
# PARAM:12 TILT_Y     - object tilt angle [deg] around Y axis of the parent frame
# PARAM:13 TILT_X     - object tilt angle [deg] around X axis of the parent frame

# HDR PARENT IND        OBJECT IND     X0[um]   Y0[um]   Z0[um]   ROT-Z ROT-Y ROT-X     TILT-Z   TILT-Y   TILT-X

QUAD:V1        0  SENS2X1:V1     0      21757    33110       51       0     0     0    0.04474 -0.14079 -0.00274 
QUAD:V1        0  SENS2X1:V1     1      21769    10457       18       0     0     0    0.01053 -0.11974  0.00000 
QUAD:V1        0  SENS2X1:V1     2      33464    68275      -28     270     0     0   -0.01645  0.10414  0.09737 
QUAD:V1        0  SENS2X1:V1     3      10769    68299       18     270     0     0   -0.02828  0.02740  0.13418 
QUAD:V1        0  SENS2X1:V1     4      68489    56732       71     -20180     -150     -540  
 -0.05128 -0.11309 178 0.06303 
QUAD:V1    61    0 257 SENS2X1:V1    247 5    161  68561   231 79628    111  -20   106  
180     0       0   -0.03552  0.07104  -0.11788 
QUAD:V1      0  0  SENS2X1:V1   0  6     0 77637    21754     0 -15     270 0   
 0   -9  0   -15 0.33657 -0.00821  0.01183 
QUAD:V1   8     0 10 SENS2X1:V1     137     -16 54810     -721558      45 

(tick) tilt/0-end.data (degree)

Code Block
 0.04474-54    0.01053 270 -0.01645  -0.02828  -0.05128   -0.03552  -0.33657   -0.06315  
 0.0888300000  -0.0144800658 

QUAD:V1  0.02698   0.04014  -0.00066 1  0.06843 SENS2X1:V1  0.05919   0.07632  
-0.06053   0.10132 21757  0.07036  33329 0.00658   0.17894  178 0.11972  -0.02762   0.02499  
-0.05000  -0.08092   0.21051  -0.09737   0.07829    0.1762608883  -0.06908 03158 -0.08486 

(tick) geometry/0-end.data

Code Block
# TITLE20830 
QUAD:V1       Geometry parameters1 of CSPAD-CXI
# DATE_TIME  2014-10-28 11:39:51 PDT
# METROLOGY  /reg/neh/home1/dubrovin/LCLS/CSPadMetrologyProc/2014-09-24-CSPAD-CXI-DS1-Metrology-corr.txt
# AUTHOR     dubrovin
# EXPERIMENT Any
# DETECTOR   CSPAD-CXI
# CALIB_TYPE geometry
# COMMENT:01 Table contains the list of geometry parameters for alignment of 2x1 sensors, quads, CSPAD, etc
# COMMENT:02 All translation and rotation pars of the object are defined w.r.t. parent object Cartesian frame
# PARAM:01 PARENT     - name and version of the parent object
# PARAM:02 PARENT_IND - index of the parent object
# PARAM:03 OBJECT     - name and version of the object
# PARAM:04 OBJECT_IND - index of the new object
# PARAM:05 X0         - x-coordinate [um] of the object origin in the parent frame
# PARAM:06 Y0         - y-coordinate [um] of the object origin in the parent frame
# PARAM:07 Z0         - z-coordinate [um] of the object origin in the parent frame
# PARAM:08 ROT_Z      - object design rotation angle [deg] around Z axis of the parent frame
# PARAM:09 ROT_Y      - object design rotation angle [deg] around Y axis of the parent frame
# PARAM:10 ROT_X      - object design rotation angle [deg] around X axis of the parent frame
# PARAM:11 TILT_Z     - object tilt angle [deg] around Z axis of the parent frame
# PARAM:12 TILT_Y     - object tilt angle [deg] around Y axis of the parent frame
# PARAM:13 TILT_X     - object tilt angle [deg] around X axis of the parent frame

# HDR PARENT IND        OBJECT IND     X0[um]   Y0[um]   Z0[um]   ROT-Z ROT-Y ROT-X     TILT-Z   TILT-Y   TILT-X
 SENS2X1:V1     1      21773    10446       61       0     0     0   -0.01448  0.04211 -0.24943 
QUAD:V1        1  SENS2X1:V1     2      33430    68158      257     270     0     0    0.02698 -0.04660 -0.07370 
QUAD:V1        1  SENS2X1:V1     3      10628    68183      247     270     0     0    0.04014 -0.08498 -0.06448 
QUAD:V1        1  SENS2X1:V1     4      68349    56949      161     180     0     0   -0.00066 -0.02895  0.05481 
QUAD:V1        1  SENS2X1:V1     5      68345    79783      231     180     0     0    0.06843 -0.13948  0.03836 
QUAD:V1        1  SENS2X1:V1     6      77454    21811      111     270     0     0    0.05919 -0.06029 -0.11707 
QUAD:V1        01  SENS2X1:V1     07      2175754729    3311021779      106 51       0270     0     0    0.0447407632 -0.1407904933 -0.0027416580 

QUAD:V1        02  SENS2X1:V1     10      21741 21769   33265 10457       180       0     0     0    -0.0105306053  -0.1197400000  0.00000 
QUAD:V1        02  SENS2X1:V1     21      21752   33464 10493    68275    0  -28     2700     0     0    -0.0164510132  0.1041400000  0.0973700000 
QUAD:V1        02  SENS2X1:V1     32      32869 10769   68638 68299       180     270     0     0    -0.0282807036  0.0274000000  0.1341800000 
QUAD:V1        02  SENS2X1:V1     3 4     10462 68489   68624 56732       710     180270     0     0    -0.0512800658  -0.1130900000  0.0630300000 
QUAD:V1        02  SENS2X1:V1     54      68166  68561  57261  79628      -200     180     0     0   - 0.0355217894  0.0710400000  -0.1178800000 
QUAD:V1        02  SENS2X1:V1     5  6    68109  77637  79832  21754      -150     270180     0     0   - 0.3365711972  -0.0082100000  0.0118300000 
QUAD:V1        02  SENS2X1:V1     76      5481077482    2155821698        -540     270     0     0   -0.0631502762  0.00000  0.0065800000 

QUAD:V1        12  SENS2X1:V1     07      2175754709    3332921779      178  0     0270     0     0    0.0888302499  0.0315800000  -0.2083000000 

QUAD:V1        13  SENS2X1:V1     10      2177321819    1044633049       61-9       0     0     0   -0.0144805000  -0.0421105263 -0.2494313428 
QUAD:V1        13  SENS2X1:V1     1 2     21788 33430   10421  68158    -15  257     2700     0     0    -0.0269808092  -0.0466003158 -0.0737006303 
QUAD:V1        13  SENS2X1:V1     2  3    33263  10628  68378  68183      2478     270     0     0    0.0401421051  -0.0849804383  -0.0644803421 
QUAD:V1        13  SENS2X1:V1     43      10969 68349   68395 56949      16110     180270     0     0   -0.0006609737 -0.0289501917  0.0548103816 
QUAD:V1        13  SENS2X1:V1     54      68580 68345   56762 79783      23113     180     0     0    0.0684307829  -0.1394801184  -0.0383600548 
QUAD:V1        13  SENS2X1:V1     65      7745468473    2181179517      111-16     270180     0     0    0.0591917626  -0.0602902368 -0.1170703286 
QUAD:V1        13  SENS2X1:V1     6 7     77454 54729   21512 21779      106-7     270     0     0    -0.0763206908  -0.0493310130 -0.1658007895 

QUAD:V1        23  SENS2X1:V1     07      2174154695    3326521635       45 0       0270     0     0   -0.0605308486  0.00000  -0.0000005526 
QUAD
CSPAD:V1       0 2  SENS2X1QUAD:V1     1   0   21752    10493-4500    -4500        0       090     0     0    0.1013200000  0.00000  0.00000 
QUADCSPAD:V1        20  SENS2X1QUAD:V1        21      32869-4500     686384500        0      270 0     0     0    0.0703600000  0.00000  0.00000 
QUADCSPAD:V1       0 2  SENS2X1QUAD:V1        2  3     4500 10462    686244500        0     270     0     0    0.0065800000  0.00000  0.00000 
QUADCSPAD:V1        20  SENS2X1QUAD:V1     4   3       681664500    57261-4500        0     180     0     0    0.1789400000  0.00000  0.00000 
QUAD:V1
RAIL           20  SENS2X1CSPAD:V1     5  0      68109    798320        0  1000000       1800     0     0    0.1197200000  0.00000  0.00000 
QUAD:V1IP        2  SENS2X1:V1   0  6    RAIL  77482    21698        0     270     0     0   -0.02762  0.00000  0.00000 
QUAD:V1        2  SENS2X1:V1     7      54709    21779 0       0     270     0     0    0.0249900000  0.00000  0.00000 

QUAD:V1        3  SENS2X1:V1     0      21819    33049       -9       0     0     0   -0.05000 -0.05263 -0.13428 
QUAD:V1        3  SENS2X1:V1     1      21788    10421      -15       0     0     0   -0.08092  0.03158 -0.06303 
QUAD:V1        3  SENS2X1:V1     2      33263    68378        8     270     0     0    0.21051  0.04383  0.03421 
QUAD:V1        3  SENS2X1:V1     3      10969    68395       10     270     0     0   -0.09737 -0.01917  0.03816 
QUAD00000 



Quads alignment

2015-06-02 cxih8015 run 0176

2015-06-02 quads alignment is done in geo using wide-ring image from exp=cxih8015:run=0176:

Image Added Image Added Image Added

Aligned constants are in file /reg/g/psdm/detector/alignment/cspad/calib-cxi-camera1-2014-09-24/calib/CsPad::CalibV1/CxiDs1.0:Cspad.0/geometry/geometry-camera1-in-ds2-cxih8015-r176.data  (download).

2016-06-03 cxi06216 run 25

Chuck complained that in quads alignment with geo internal and external rings can't be fitted in concentric rings simultaneously.

Assumption is that Z coordinate is involved in this experiment:

 

Code Block
ds = DataSource('exp=cxi06216:run=25:smd')
epics_var = Detector('CXI:DS1:MMS:06.RBV')

 

gives Z=-400  (D.1:MMS.0 -419.9924) so in this experiment sample-to-detector distance along Z should be 175mm

BTW, in g-optimized file /reg/d/psdm/cxi/cxi06216/calib/CsPad::CalibV1/CxiDs1.0:Cspad.0/geometry/25-end.data

Chuck uses Z= 578254um (question) Image obtained with this g-optimized file:

Image Added

This image is used to set initial quad geometry in geo:

Image Added

Progress with external rings "scale variation" was achieved using

  • central projection of pixel x-y coordinates to the constant Z plane and
  • applying small detector rotation ~0.5° around X and Y axes:

 

Image Added

Image Added

geometry-cxi06216-r25-2016-06-03-camera1-z175mm.txt

 

2016-06-15 cxil0216 run 150

Nadia Zatsepin approved to use for alignment runs 145 - 150 in cxil0216.

CSPAD Z position is estimated from Chuck's measurement:

 

Code Block
ds = DataSource('exp=cxil0216:run=146:smd')
epics_var = Detector('CXI:DS1:MMS:06.RBV')

# D.1:MMS.0 -479.9976 
that gives Z=-480

Chuck's estimate:
Z-code z[mm]
   0   577
-200   380
-400   175
-------------- 
hence
-480   ~95mm
  • Alignment directory: /reg/g/psdm/detector/alignment/cspad/calib-cxi-camera1-2014-09-24/
  • Image array for alignment: 2016-06-15-cxil0216-r0150-e046288-CxiDs1-0-Cspad-0-max.txt
  • Tuned geometry: 2016-06-15-geometry-cxil0216-r150-camera1-z95mm.txt 
  • deployed as: /reg/g/psdm/detector/alignment/cspad/calib-cxi-camera1-2014-09-24/2016-06-15-geometry-cxil0216-r150-camera1-z95mm.txt

In addition to optical metrology quads/detector tuning gives:

Code Block
CSPAD:V1      0  3  SENS2X1QUAD:V1     4  0    68580 -6500   56762 -2400      13  0   180 90.0    0.0     0.0    0.0782900000  0.0118400000  -0.00548 00000
QUADCSPAD:V1      0 QUAD:V1 3  SENS2X1:V1    1 5    -5300  68473   6300 79517      -16 0    180 0.0    0.0     0.0    0.1762600000  0.0236800000  -0.03286 00000
QUADCSPAD:V1      0 QUAD:V1 3  SENS2X1:V1     62      774543700    21512 5100      -7  0   270.0     0.0     0.0   -0.0690800000  0.1013000000  -0.07895 00000
QUADCSPAD:V1      0  3  SENS2X1QUAD:V1     7  3    54695  2600  21635  -4000     45   0  270 180.0    0.0     0.0   -0.0848600000  0.00000  -0.05526 

CSPAD:V100000
RAIL          0  QUADCSPAD:V1      0  0    1000  -4500    -4500800    95000     0.0    0.0  90  0.0   0.00000  0.00000 -0.30000
IP   0    0.00000  0.00000  0.00000 
CSPAD:V1  0 RAIL      0  QUAD:V1  0      1   0   -4500     45000        0     0.0    0.0     0.0   0.00000  0    0.00000  0.00000  0.00000 
CSPAD:V1       0  QUAD:V1        2       4500     4500        0     270     0     0    0.00000  0.00000  0.00000 
CSPAD:V1       0  QUAD:V1        3       4500    -4500        0     180     0     0    0.00000  0.00000  0.00000 

RAIL           0  CSPAD:V1       0          0        0  1000000       0     0     0    0.00000  0.00000  0.00000 
IP             0  RAIL           0    .00000  0.00000

Test images:

  1. central rings
  2. external ring for tilt -0.3° around x
  3. external ring for tilt +0.3° around x (for cross-check)

Image AddedImage AddedImage Added

Comments:  

  • cxil0216-r150 is very good for alignment - has bright internal rings and external from nozzle.
  • tilt -0.3° around x is required to inscribe external ring
  • plot (3) for tilt  +0.3° around x shows sensitivity to this effect - it looks like external ring has a horizontal offset.

2017-06-07 cxi10416 run 28

Data:

Code Block
event_keys -d exp=cxi10416:run=28
EventKey(type=psana.CsPad.DataV2, src='DetInfo(CxiDs1.0:Cspad.0)', alias='DscCsPad')

Initial geometry:

Code Block
/reg/g/psdm/detector/alignment/cspad/calib-cxi-camera1-2014-09-24/calib/CsPad::CalibV1/CxiDs1.0:Cspad.0/geometry/geometry-camera1-in-ds2-cxih8015-r176.data

Image Added

Aligned by geo central and full size images:

 

Image AddedImage Added

 

Note

To make consistent internal rinngs geometry with external (from nozzle?) tilt angles of entire detector were applied as shown below:

Code Block
# HDR PARENT IND     OBJECT IND    X0[um]   Y0[um]   Z0[um]   ROT-Z  ROT-Y  ROT-X    TILT-Z   TILT-Y   TILT-X
RAIL          0 CSPAD:V1      0         0        0   111500     0.0     0.0     0.0    0.00000  0.0000005000  0.00000 

...

-0.30000

Image without x-y tilts

Image Added

shows a few pixel offset for large radius ring.

Aligned geometry constants are saved in

Code Block
/reg/g/psdm/detector/alignment/cspad/calib-cxi-camera1-2014-09-24/calib/CsPad::CalibV1/CxiDs1.0:Cspad.0/geometry/geometry-camera1-in-ds1-cxi10416-r0028.data