FourBitUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Classes/dsp/FourBitUnpacker.h
10 
11 #ifndef __FourBitUnpacker_h
12 #define __FourBitUnpacker_h
13 
14 #include "dsp/BitUnpacker.h"
15 
16 namespace dsp {
17 
19  class FourBitUnpacker: public BitUnpacker
20  {
21 
22  public:
23 
25  FourBitUnpacker (const char* name = "FourBitUnpacker");
26 
28  void get_histogram (std::vector<unsigned long>&, unsigned idig) const;
29 
30  protected:
31 
32  void unpack (uint64_t ndat, const unsigned char* from, const unsigned nskip,
33  float* into, const unsigned fskip, unsigned long* hist);
34 
35  };
36 }
37 #endif
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
std::string name
Operation name.
Definition: Operation.h:153
Converts N-bit digitised samples to floating point using a BitTable.
Definition: BitUnpacker.h:26
virtual void get_histogram(std::vector< unsigned long > &, unsigned) const
Get the histogram for the specified digitizer.
Definition: HistUnpacker.C:183
virtual void unpack()
Unpack all channels, polarizations, real/imag, etc.
Definition: BitUnpacker.C:48
void get_histogram(std::vector< unsigned long > &, unsigned idig) const
Get the histogram for the specified digitizer.
Definition: FourBitUnpacker.C:29
void set_nstate_internal(unsigned _nstate)
Set the number of states in the internal representation of the histogram.
Definition: HistUnpacker.C:101
virtual void set_nstate(unsigned nstate)
Set the number of states in the histogram.
Definition: HistUnpacker.C:88
FourBitUnpacker(const char *name="FourBitUnpacker")
Null constructor.
Definition: FourBitUnpacker.C:19

Generated using doxygen 1.8.17