solo_config/solo/step/l3
Stephan I. Böttcher 4051015d0a step L3: fix pedestal roundig errors
Calibration of ADC readings `HIT` to energy `E` works like this
```
E = MULI HIT * gain
E = ADDI HIT + pedl
```
The `pedl` was calculated as
```
pedl = -$floor(p*gain)
```
where `p` is the ADC reading corresponding to E = 0 keV.
Since `p` is a large magnitude negative number, the limited precision
of the `MULI` instruction parameter causes significant errors in `pedl`.

This patch aims to fis those errors. The new formula for `pedl` is
```
pedl = $floor(-p*$MRND(gain))
```
i.e., we use the same value for `gain` as the `MULI` instruction.  This
is now in place for any automatic calibration calculations in
`step_temp_calib.l3`.

For the FS in space we use a fixed precomputed calibration.  This is based on
the TVAC FS calibration for T=-36°C, with some adjustments for the changed
`acq_time=6`.  The TVAC calib has been saved earlier to
`step_fs_calib-36.calib` with full precision, i.e., without taking `$MRND()`
into account.  The awk script `step_fs_calib-36.awk` reverts those
calculations, applies the adjustments, and outputs the adjustes numbers.  Since
awk does not have access to `$MRND()`, the script has been changed to output
formulas for `pedl`, including `$MRND()`,
2021-09-22 17:19:03 +02:00
..
Makefile step L3: fix pedestal roundig errors 2021-09-22 17:19:03 +02:00
step.gold step L3: fix pedestal roundig errors 2021-09-22 17:19:03 +02:00
step.l3 Change STEP PHA buffering strategy: Buffer number is the (logical) pixel number. 2020-04-20 11:52:23 +02:00
step_calib.l3 ... done 2018-03-08 10:05:06 +00:00
step_calib_dummy.l3 ... done 2018-03-08 10:05:06 +00:00
step_calib_large_fm.l3 ... done 2018-03-08 10:05:06 +00:00
step_calib_multi.l3 python/solo/step/l3/step_calib_multi.l3: L3 trigger which calibrates all hit pixels. (WIP) 2018-10-02 22:14:01 +00:00
step_calib_small.l3 ... done 2018-03-08 10:05:06 +00:00
step_calib_small_fm.l3 ... done 2018-03-08 10:05:06 +00:00
step_config.l3 Merge commit '0565a37a11' into step_dps 2021-07-09 14:54:28 +02:00
step_fm_temp_calib.l3 solo/step/l3: New calibrations based on bootstrap analysis. 2019-05-27 13:40:11 +00:00
step_fs_calib-36.awk step L3: fix pedestal roundig errors 2021-09-22 17:19:03 +02:00
step_fs_calib-36.calib step patch v7.3 fix calibration for acq_time=6 2021-07-25 22:48:08 +02:00
step_fs_calib-36_v7.3.calib step L3: fix pedestal roundig errors 2021-09-22 17:19:03 +02:00
step_FS_ixtemp_calib_celsius.npz ... done 2018-03-08 10:05:06 +00:00
step_fs_temp_calib.l3 solo/step/l3: New calibrations based on bootstrap analysis. 2019-05-27 13:40:11 +00:00
step_pha.l3 ... done 2018-03-08 10:05:06 +00:00
step_phaonly.l3 ... done 2018-03-08 10:05:06 +00:00
step_ptest.l3 ... done 2018-03-08 10:05:06 +00:00
step_temp_calib.l3 step L3: fix pedestal roundig errors 2021-09-22 17:19:03 +02:00
temp_calib.py temp_calib.py: Script to read l3 temp_calib back to numpy arrays. 2018-08-15 14:17:37 +00:00