NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | List of all members
DAQ::DDAS::FitHitUnpacker Class Reference

#include <FitHitUnpacker.h>

Inheritance diagram for DAQ::DDAS::FitHitUnpacker:
DAQ::DDAS::DDASHitUnpacker

Public Member Functions

const void * decode (const void *p, DDASFitHit &hit)
 
- Public Member Functions inherited from DAQ::DDAS::DDASHitUnpacker
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

- Protected Member Functions inherited from DAQ::DDAS::DDASHitUnpacker
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)
 

Detailed Description

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.

Member Function Documentation

const void * DAQ::DDAS::FitHitUnpacker::decode ( const void *  p,
DDASFitHit hit 
)

decode

  • Determines the limits of the old style hit.
  • Determines where, or if, there's an extension block.
  • Unpacks the original hit using DDASHitUnpacker::unpack.
  • Sets the extension if there is one.
    Parameters
    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.
    Returns
    Pointer just after the ring item.

The documentation for this class was generated from the following files: