NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
#include <FitHitUnpacker.h>
Public Member Functions | |
const void * | decode (const void *p, DDASFitHit &hit) |
![]() | |
std::tuple< DDASHit, const uint32_t * > | unpack (const uint32_t *beg, const uint32_t *sentinel) |
const uint32_t * | unpack (const uint32_t *beg, const uint32_t *sentinel, DDASHit &hit) |
Additional Inherited Members | |
![]() | |
const uint32_t * | parseBodySize (const uint32_t *beg, const uint32_t *sentinel) |
const uint32_t * | parseModuleInfo (DDASHit &hit, const uint32_t *beg) |
const uint32_t * | parseHeaderWord0 (DDASHit &hit, const uint32_t *beg) |
const uint32_t * | parseHeaderWords1And2 (DDASHit &hit, const uint32_t *beg) |
const uint32_t * | parseHeaderWord3 (DDASHit &hit, const uint32_t *beg) |
const uint32_t * | parseTraceData (DDASHit &hit, const uint32_t *beg) |
std::tuple< double, uint32_t, uint32_t, uint32_t > | parseAndComputeCFD (uint32_t ModMSPS, uint32_t data) |
double | parseAndComputeCFD (DDASHit &hit, uint32_t data) |
void | SetTime (DDASHit &hit) |
Compute and store CFD-corrected time in nanoseconds. More... | |
void | SetEnergySums (DDASHit &hit, uint32_t data) |
Append energy sum to stored energy sums. More... | |
void | SetQDCSums (DDASHit &hit, uint32_t data) |
Append qdc sum to stored qdc sums. More... | |
uint64_t | computeCoarseTime (uint32_t adcFrequency, uint32_t timelow, uint32_t timehigh) |
Append trace values to stored trace data. More... | |
const uint32_t * | extractEnergySums (const uint32_t *data, DDASHit &hit) |
const uint32_t * | extractQDC (const uint32_t *data, DDASHit &hit) |
const uint32_t * | extractExternalTimestamp (const uint32_t *data, DDASHit &hit) |
DAQ::DDAS::DDASHitUnpacker is capable of unpacking raw hits from DDAS files. Typical trace analysis may involve fitting traces to one or two pulses. This class extends the DDASHitUnpacker class to support access to the results of the fit which have been tacked on the back end of a hit by CDDASAnalyzer.cpp.
const void * DAQ::DDAS::FitHitUnpacker::decode | ( | const void * | p, |
DDASFitHit & | hit | ||
) |
decode
pRingItem | - points 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. |