Alignment procedure
Alignment procedure for CSPAD2x2 is very similar to CSPAD alignment for quads described in
CSPAD Geometry and Alignment - Old.
The only difference is that CSPAD2x2 has only two 2x1 sensors, that makes everything much simpler.
Optical measurements
Photos and charts with numeration of corners in otical measurements:
Metrology table
Metrology table in xlsx
format:
Metrology-140ks-Feb13-2013.xlsx
The xlsx
file is converted to tables in text format for 6 CSPad2x2 detectors:
- CSPad2x2-1.txt Q133 D7A16
- CSPad2x2-2.txt Q110 D#A14
- CSPad2x2-3.txt Q111 D12A18
- CSPad2x2-4.txt Q135 D19A19
- CSPad2x2-5.txt Q022 D15A15
- CSPad2x2-6.txt Q157 Used in Run 6
Quality check and alignment parameters
CSPad2x2-1.txt Q133 D7A16
pair: S1 S2 dS1 dS2 L1 L2 dL1 dL2 <dS/L> angle(deg) D1 D2 dD d(dS) d(dL) pair: 0 20909 20902 2 -5 43538 43539 0 1 -0.00006 -0.00329 48297 48297 0 7 -1 pair: 1 20906 20902 2 -2 43538 43538 0 0 0.00000 0.00000 48296 48296 0 4 0
center/0-end.data
(in pixels)
198.05 198.42 95.10 307.54 0.09 0.03
tilt/0-end.data
(in degree)
-0.00329 0.00000
CSPad2x2-2.txt Q110 D#A14
pair: S1 S2 dS1 dS2 L1 L2 dL1 dL2 <dS/L> angle(deg) D1 D2 dD d(dS) d(dL) pair: 0 20905 20896 5 -4 43536 43536 -2 -2 0.00001 0.00066 48291 48294 -3 9 0 pair: 1 20905 20905 -22 -22 43540 43536 10 6 -0.00051 -0.02895 48294 48299 -5 0 4
center/0-end.data
(in pixels)
198.03 198.94 95.09 306.84 0.18 0.21
tilt/0-end.data
(in degree)
0.00066 -0.02895
CSPad2x2-3.txt Q111 D12A18
pair: S1 S2 dS1 dS2 L1 L2 dL1 dL2 <dS/L> angle(deg) D1 D2 dD d(dS) d(dL) pair: 0 20907 20908 -5 -4 43540 43545 0 5 -0.00005 -0.00263 48302 48301 1 -1 -5 pair: 1 20904 20907 421 424 43538 43538 -203 -203 0.00970 0.55601 48299 48299 0 -3 0
center/0-end.data
(in pixels)
198.06 196.67 95.08 308.15 0.17 0.23
tilt/0-end.data
(in degree)
-0.00263 0.55601
CSPad2x2-4.txt Q135 D19A19
pair: S1 S2 dS1 dS2 L1 L2 dL1 dL2 <dS/L> angle(deg) D1 D2 dD d(dS) d(dL) pair: 0 20906 20905 -8 -9 43540 43540 3 3 -0.00020 -0.01119 48297 48299 -2 1 0 pair: 1 20908 20898 -12 -22 43541 43538 12 9 -0.00039 -0.02237 48299 48295 4 10 3
center/0-end.data
(in pixels)
198.07 198.70 95.06 307.79 0.24 0.30
tilt/0-end.data
(in degree)
-0.01119 -0.02237
CSPad2x2-5.txt Q022 D15A15
pair: S1 S2 dS1 dS2 L1 L2 dL1 dL2 <dS/L> angle(deg) D1 D2 dD d(dS) d(dL) pair: 0 20904 20904 2 2 43536 43536 -1 -1 0.00005 0.00263 48294 48294 0 0 0 pair: 1 20908 20909 122 123 43540 43545 -61 -56 0.00281 0.16119 48302 48302 0 -1 -5
center/0-end.data
(in pixels)
198.03 197.12 95.10 307.60 0.03 -0.11
tilt/0-end.data
(in degree)
0.00263 0.16119
CSPad2x2-6.txt Q157
pair: S1 S2 dS1 dS2 L1 L2 dL1 dL2 <dS/L> angle(deg) D1 D2 dD d(dS) d(dL) pair: 0 20903 20900 59 56 43541 43539 -27 -29 0.00132 0.07567 48296 48297 -1 3 2 pair: 1 20979 20977 49 47 43707 43705 -20 -22 0.00110 0.06292 48481 48477 4 2 2
center/0-end.data
(in pixels)
197.93 196.92 95.34 307.53 -1.60 -3.63
tilt/0-end.data
(in degree)
0.07567 0.06292
Calibration files
In local space
Produced for optical measurement on 2013-02-13
- /reg/neh/home1/dubrovin/LCLS/CSPad2x2Alignment/calib-cspad2x2-01-2013-02-13/<type>/0-end.data
- /reg/neh/home1/dubrovin/LCLS/CSPad2x2Alignment/calib-cspad2x2-02-2013-02-13/<type>/0-end.data
- /reg/neh/home1/dubrovin/LCLS/CSPad2x2Alignment/calib-cspad2x2-03-2013-02-13/<type>/0-end.data
- /reg/neh/home1/dubrovin/LCLS/CSPad2x2Alignment/calib-cspad2x2-04-2013-02-13/<type>/0-end.data
- /reg/neh/home1/dubrovin/LCLS/CSPad2x2Alignment/calib-cspad2x2-05-2013-02-13/<type>/0-end.data
- /reg/neh/home1/dubrovin/LCLS/CSPad2x2Alignment/calib-cspad2x2-06-2013-02-13/<type>/0-end.data
Deployed in experimental DB
2013-03-08
/reg/d/psdm/mec/mec73313/calib/CsPad2x2::CalibV1/
- MecTargetChamber.0:Cspad2x2.1/<type>/0-end.data
- MecTargetChamber.0:Cspad2x2.2/<type>/0-end.data
- MecTargetChamber.0:Cspad2x2.3/<type>/0-end.data
- MecTargetChamber.0:Cspad2x2.4/<type>/0-end.data
- MecTargetChamber.0:Cspad2x2.5/<type>/0-end.data
2013-06-21
/reg/d/psdm/xpp/xpptut13/calib/CsPad2x2::CalibV1/
- XppGon.0:Cspad2x2.0/<type>/0-end.data is taken from calib-cspad2x2-06-2013-02-13/<type>
- XppGon.0:Cspad2x2.1/<type>/0-end.data is taken from calib-cspad2x2-01-2013-02-13/<type>
where <type> stands for tilt and center.
Known detectors
on 2013-12-17:
CxiSc1.0:Cspad2x2.0 CxiSc2.0:Cspad2x2.0 CxiSc2.0:Cspad2x2.1 CxiSc2.0:Cspad2x2.2 CxiSc2.0:Cspad2x2.3 CxiSc2.0:Cspad2x2.4 CxiSc2.0:Cspad2x2.5 CxiSc2.0:Cspad2x2.6 CxiSc2.0:Cspad2x2.7 MecEndstation.0:Cspad2x2.6 MecTargetChamber.0:Cspad2x2.0 MecTargetChamber.0:Cspad2x2.1 MecTargetChamber.0:Cspad2x2.2 MecTargetChamber.0:Cspad2x2.3 MecTargetChamber.0:Cspad2x2.4 MecTargetChamber.0:Cspad2x2.5 XcsEndstation.0:Cspad2x2.0 XcsEndstation.0:Cspad2x2.1 XppGon.0:Cspad2x2.0 XppGon.0:Cspad2x2.1 XppGon.0:Cspad2x2.2 XppGon.0:Cspad2x2.3
Software
Memory data model
In contrast to CSPAD which data array shape is (N, 185, 388), the CSPAD2x2 data array has a shape (185, 388, 2); the memory pointer increment by 1 swaps the 2x1 sensor. The (raw,column)=(0,0) is located in corners 4 and 8 of optical measurement scheme for two 2x1 sensors, respectively.
C++ version for psana
data types are implemented in the package pdscalibdata
as CsPad2x2*
modules:
CsPad2x2CenterV1
CsPad2x2TiltV1
CsPad2x2PedestalsV1
CsPad2x2PixelGainV1
CsPad2x2PixelStatusV1
Access methods are implemented in the package PSCalib
in CSPad2x2CalibPars
module.
Example of acess is in PSCalib/test/ex_cspad2x2_calib_pars.cpp
.
Automated access to the cspad2x2 geometry parameters is implemented in packages:
- Package
CSPadPixCoords
generates and returns the CSPad2x2 pixel coordinates, taking into account geometry alignment parameters, if available in the expected place under/reg/d/psdm/<instrument>/<experiment>/calib
directory. - Module
CSPadPixCoords::CSPad2x2ImageProducer
produces CSPad2x2 image, accounting for correct geometry, if available.
Description of the psana module and example can be found in Psana Module Catalog Module CSPadPixCoords::CSPad2x2ImageProducer
Python modules for CSPad2x2 geometry
Python modules for CSPad2x2 geometry are available in the package PyCSPadImage. They provides an interface for getting
Calibration parameters from DB and local directory,
Pixel coordinates,
Image producer