LWAUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2014 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __LWAUnpacker_h
10 #define __LWAUnpacker_h
11 
12 #include "dsp/HistUnpacker.h"
13 #include "dsp/BitTable.h"
14 
15 namespace dsp {
16 
18  class LWAUnpacker : public HistUnpacker {
19 
20  public:
21 
23  LWAUnpacker (const char* name = "LWAUnpacker");
24 
25  protected:
26 
27  BitTable *table;
28 
30  virtual void unpack();
31 
33  virtual bool matches (const Observation* observation);
34 
35  unsigned get_output_offset (unsigned idig) const;
36  unsigned get_output_ipol (unsigned idig) const;
37 
38  };
39 
40 }
41 
42 #endif // !defined(__LWAUnpacker_h)
LWAUnpacker(const char *name="LWAUnpacker")
Constructor.
Definition: LWAUnpacker.C:18
Bit unpacker that keeps a histogram and optimal statistics.
Definition: HistUnpacker.h:25
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
virtual void set_ndig(unsigned ndig)
Set the number of digitizers (histograms)
Definition: HistUnpacker.C:64
void set_order(Order)
Set the order of the samples in each byte.
Definition: BitTable.C:76
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
std::string name
Operation name.
Definition: Operation.h:153
unsigned get_output_offset(unsigned idig) const
Definition: LWAUnpacker.C:33
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
unsigned get_output_ipol(unsigned idig) const
Definition: LWAUnpacker.C:39
virtual void unpack()
Unpack.
Definition: LWAUnpacker.C:44
virtual bool matches(const Observation *observation)
Return true if we can convert the Observation.
Definition: LWAUnpacker.C:26
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194
virtual void set_nstate(unsigned nstate)
Set the number of states in the histogram.
Definition: HistUnpacker.C:88

Generated using doxygen 1.8.17