|
DDASToys for NSCLDAQ
6.2-000
|
Unpack raw hit data from DDAS event files. More...
#include <DDASFitHitUnpacker.h>


Public Member Functions | |
| const void * | decode (const void *p, DDASFitHit &hit) |
| Decode the current event and unpack it into a DDASFitHit. More... | |
Unpack raw hit data from DDAS event files.
The DDASHitUnpacker is capable of unpacking raw hits from NSCLDAQ event data which include hit extension data. Hit extensions are data structures which contain additional information appended to each hit which cannot be obtained from the digitizer module, for example from post-processing traces. A typical trace analysis may involve fitting traces and performing further analysis with the fit output (event classification, measuring physics observables, etc.). This class is an extension of ddasfmt::DDASHitUnpacker and retains all the funcitonality of the base class.
| const void * ddastoys::DDASFitHitUnpacker::decode | ( | const void * | p, |
| DDASFitHit & | hit | ||
| ) |
Decode the current event and unpack it into a DDASFitHit.
| p | Pointer to the ring item to decode. For an event built fragment, this is normally the FragmentInfo's s_itemhdr pointer. Note the difference from DDASHitUnpacker which expects a pointer to the body. |
| hit | Hit item that we will unpack data into. |
| std::length_error | An unexpected hit or extension size is encountered. |
The decode function:
DAQ::DDAS::DDASHitUnpacker::unpack().The first 32 bits of the body contain the number of 16-bit words in the hit data.