Page History
...
Gain correction formula
corrected = (raw - offset)/gain pedestals)/gain
Anchor MeetingWithGabriel MeetingWithGabriel
Meeting with Gabriel
On 2018-07-06 15:13 meeting with Gabriel.
Summary:
- control bit table is correct
- formula should include pedestals in stead of offset
- pedestals need to be generated and saved as txt file of shape (7, 1, 352, 384) under calib directory, for example:
/reg/d/psdm/MFX/mfxx32516/calib/Epix10ka::CalibV1/MfxEndstation.0:Epix10ka.0/pedestals/0-end.data - Gabriel on pedestal calibration:
- pedestal calibration is implemented in AMI, using offests,
- script works on dark runs accumulated for 5 gain modes
- + 2 gain modes are evaluated using combination of other 2 and offset
- pedestal calibration procedure needs to be compleated.
Algorithm
- per event make <uint8 control bit array>
- convert to <array of indexes> using <control bits table>
- generate <array of gains> and <array of offsets>
- apply correction using formula
...
Overview
Content Tools