JeffersonLab / hcana

Hall C++ Analyzer
7 stars 118 forks source link

TIBlobModule: Use custom decoder for this module's data format #489

Closed hansenjo closed 1 year ago

hansenjo commented 1 year ago

The original assumption that the TI module is a PipeliningModule is incorrect. The module's data format differs from that of PipeliningModules, which led to occasional decoding errors in single block mode and would have failed in multi-block mode.

This change supports both single and multi-block mode. Multi-block mode has not been tested yet due to lack of example data, but should work if the data format specs are accurate. The code assumes that the TI module's data are in a unique CODA bank for each ROC, and that there is only one TI module and no other modules in that bank. This is the case in the current Hall C DAQ setup.

Closes Redmine issue 676.

sawjlab commented 1 year ago

Seems to work for me. (THcHelicityReader and THcHitList get the TI time reliably)