Commit graph

22 commits

Author SHA1 Message Date
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
Stephan I. Böttcher
36b1f16191 step l3 gold 2021-09-22 17:10:59 +02:00
Stephan I. Böttcher
ff939af62f Merge branch 'master' into step_dps 2021-09-22 16:27:41 +02:00
Stephan I. Böttcher
ed3aaac844 step/l3 gold: use -DM_FS 2021-09-22 16:10:22 +02:00
Stephan I. Böttcher
c20e9b7370 step/l3: update gold 2021-09-22 16:06:23 +02:00
Stephan I. Böttcher
a0f7135898 Merge branch 'master' into step_v7_dev 2021-09-20 14:50:13 +02:00
Stephan I. Böttcher
9832d437fb step v8: activate V7.3 calib unconditionally for the FS 2021-07-26 10:52:21 +02:00
Stephan I. Böttcher
04a4d9a875 step patch v7.3 fix calibration for acq_time=6
Set the acq_time=6 (as in v7).
Fix large pixel calib for T=-36°C.  The fix is based on IFTP data from
July 4 to July 20 with acq_time=6 and acq_time=1.

For each IX a rought estimate was obtained for the shift of the pedestal
and the 160keV pulser peaks.  The shift was applied to all large pixels.
2021-07-25 22:48:08 +02:00
Stephan I. Böttcher
04f78cce62 step patch v7.3 fix calibration for acq_time=6
Set the acq_time=6 (as in v7).
Fix large pixel calib for T=-36°C.  The fix is based on IFTP data from
July 4 to July 20 with acq_time=6 and acq_time=1.

For each IX a rought estimate was obtained for the shift of the pedestal
and the 160keV pulser peaks.  The shift was applied to all large pixels.
2021-07-22 12:34:27 +02:00
Stephan I. Böttcher
b89074bdf7 Merge branch 'master' into step_dps 2021-07-10 23:54:45 +02:00
Stephan I. Böttcher
2521acd8a8 step_temp_calib: fix warnings 2021-07-10 23:54:18 +02:00
Stephan I. Böttcher
6b91d280fb Merge commit '0565a37a11' into step_dps 2021-07-09 14:54:28 +02:00
Stephan I. Böttcher
e33ed13c51 step_dps: comments explaining the L3 binning 2021-07-09 14:48:13 +02:00
Jan Christoph Terasa
0565a37a11 Fix comments in step_config.l3. 2021-07-09 12:10:21 +00:00
Jan Christoph Terasa
88bf9058c9 Change STEP PHA buffering strategy: Buffer number is the (logical) pixel number. 2020-04-20 11:52:23 +02:00
Jan Christoph Terasa
00fc4df34b solo/step/l3: New calibrations based on bootstrap analysis.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@7544 bc5caf13-1734-44f8-af43-603852e9ee25
2019-05-27 13:40:11 +00:00
Sebastian Boden
e25ab9c28a solo/l3: updated *.gold files
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@7144 bc5caf13-1734-44f8-af43-603852e9ee25
2018-12-03 11:56:20 +00:00
Jan Christoph Terasa
4f326aa618 step_fs_temp_calib.l3: Updated temp calib based on bootstrap data. Only slight alterations.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@7077 bc5caf13-1734-44f8-af43-603852e9ee25
2018-11-05 14:07:14 +00:00
Jan Christoph Terasa
1d086a0235 python/solo/step/l3/step_calib_multi.l3: L3 trigger which calibrates all hit pixels. (WIP)
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6996 bc5caf13-1734-44f8-af43-603852e9ee25
2018-10-02 22:14:01 +00:00
Jan Christoph Terasa
8138973294 temp_calib.py: Script to read l3 temp_calib back to numpy arrays.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6945 bc5caf13-1734-44f8-af43-603852e9ee25
2018-08-15 14:17:37 +00:00
Jan Christoph Terasa
9aa68fdf58 step_temp_calib.l3: Set correct default temperature.
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6845 bc5caf13-1734-44f8-af43-603852e9ee25
2018-05-24 13:32:18 +00:00
Sebastian Boden
8e81b26395 ... done
git-svn-id: svn+ssh://asterix/home/subversion/stephan/solo/eda/python@6675 bc5caf13-1734-44f8-af43-603852e9ee25
2018-03-08 10:05:06 +00:00