Actions
Feature #505
openSupport #502: Completion of libsbsdig
Add decoded data into the output
Status:
Resolved
Priority:
Normal
Assignee:
-
Responsible:
Description
In addition to the data words, we want ADC and TDC values
Actions
Support #502: Completion of libsbsdig
Added by Eric Fuchey about 5 years ago. Updated almost 5 years ago.
Description
In addition to the data words, we want ADC and TDC values
Added decoded ADC and TDC values. ADC lack pedestal subtraction, and TDC lack a reference trigger time.
Decoded ADC values have been added in the output file as <detname>_adc, and are pedestal subtracted.
Decoded TDC values have been added in the output file as <detname>_tdc_l (for leading times), and <detname>_tdc_t (for trailing times)
They both appear relative to the "trigger" time, which by our convention is 0 (the trigger jitter is already included in the evaluation of the leading and trailing times).
For the non ADC words (headers or TDCs), <detname>_adc have been filled with a "stupid" value of -1000000, which cannot correspond to any value -subtracted or not-reachable by any ADC or TDC.
Same logic has been applied for the two different types of TDC values e.g for a non-leading time TDC word, the field <detname>_tdc_l is filled with the same "stupid" value.
One may just look at the data safely basically requiring the considered variable to be above that value.
That allows to have all output vectors of the same size, and going through each hit while analyzing the data, it ensure that looking into all vectors corresponding to that hit, the right dataword corresponds to the right channel number, and to the right decoded value, etc.