Some components required to be able to design and use their own formulas for time and charge reconstruction from the samples received from the Digital Cards (although this can now also be done by writing a new DSP-code and booting this code on the appropriate Digital Cards). A provision was made in the CALDAQ-system to make this possible.
To reconstruct time and charge in this way is a slow process (typical maximum readout rate 5 Hz) and is meant only for testtriggers and standalone runs (e.g. 'means-and-sigma' runs). A full description can be found in [6].
For the LED-component RPN-logic file names are read from a file
in directory calec_rc/leopard, named rpnlogic.files.
The first file in rpnlogic.files contains a list of formula identifiers,
10 per channel (channels in the order they appear on the Digital Cards in
the VME-crate), the first 5 of which are for time reconstruction and the
other 5 for charge reconstruction, ordered by testtrigger type as follows:
![]()
![]()
0 Empty
1 Qinj
2 LED (run-type != LED.QINJ)
3 LED (run-type = LED.QINJ = 20)
4 LASER
The rest of the files in the list in rpnlogic.files contain the reconstruction formulas, one formula per file, the formula identified by its position in rpnlogic.files (first file contains formula 0, second file contains formula 1, etc.). All files listed in rpnlogic.files are in ZEBRA-format.