GUPPIUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2010 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __GUPPIUnpacker_h
10 #define __GUPPIUnpacker_h
11 
12 #include "dsp/HistUnpacker.h"
13 
14 namespace dsp {
15 
17  class GUPPIUnpacker : public HistUnpacker {
18 
19  public:
20 
22  GUPPIUnpacker (const char* name = "GUPPIUnpacker");
23 
24  protected:
25 
27  virtual void unpack ();
28 
30  virtual bool matches (const Observation* observation);
31 
32  unsigned get_output_offset (unsigned idig) const;
33  unsigned get_output_ipol (unsigned idig) const;
34  unsigned get_output_ichan (unsigned idig) const;
35 
36  };
37 
38 }
39 
40 #endif // !defined(__GUPPIUnpacker_h)
Bit unpacker that keeps a histogram and optimal statistics.
Definition: HistUnpacker.h:25
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
unsigned get_output_ipol(unsigned idig) const
Definition: GUPPIUnpacker.C:35
virtual void unpack()
The unpacking routine.
Definition: GUPPIUnpacker.C:46
virtual bool matches(const Observation *observation)
Return true if we can convert the Observation.
Definition: GUPPIUnpacker.C:20
std::string name
Operation name.
Definition: Operation.h:153
unsigned get_output_offset(unsigned idig) const
Definition: GUPPIUnpacker.C:29
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
unsigned get_output_ichan(unsigned idig) const
Definition: GUPPIUnpacker.C:41
GUPPIUnpacker(const char *name="GUPPIUnpacker")
Constructor.
Definition: GUPPIUnpacker.C:15
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