EDAFourBit.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2011 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __EDAFourBit_h
10 #define __EDAFourBit_h
11 
12 #include "dsp/FourBitUnpacker.h"
13 
14 namespace dsp
15 {
17  class EDAFourBit: public FourBitUnpacker
18  {
19  public:
20 
23 
25  bool matches (const Observation*);
26 
28  void unpack ();
29 
31  void get_histogram (std::vector<unsigned long>&, unsigned idig) const;
32 
33  };
34 }
35 
36 #endif
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
unsigned get_ndim() const
Return the dimension of each datum.
Definition: Observation.h:80
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
unsigned get_npol() const
Return the number of polarizations.
Definition: Observation.h:90
bool matches(const Observation *)
Return true if this unpacker can handle the observation.
Definition: EDAFourBit.C:23
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
Look-up table for converting N-bit digitized to floating point numbers.
Definition: BitTable.h:22
virtual void get_histogram(std::vector< unsigned long > &, unsigned) const
Get the histogram for the specified digitizer.
Definition: HistUnpacker.C:183
EDAFourBit()
Constructor initializes bit table.
Definition: EDAFourBit.C:15
void set_table(BitTable *table)
Set the digitisation convention.
Definition: BitUnpacker.C:35
void unpack()
Over-ride the default BitUnpacker::unpack method.
Definition: EDAFourBit.C:36
Reference::To< BitTable > table
The bit table generator
Definition: BitUnpacker.h:55
void get_histogram(std::vector< unsigned long > &, unsigned idig) const
Over-ride the default FourBitUnpacker::get_histogram method.
Definition: EDAFourBit.C:68
Converts 4-bit digitised samples to floating point.
Definition: FourBitUnpacker.h:24
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194

Generated using doxygen 1.8.17