GBTSampler.h
Classes
- GBTSampler -- (full description)
Interface
- Public Members
- GBTSampler(const GBTBackendTable &backendTab, Int nIFrows)
- GBTSampler(const GBTSampler &other)
- ~GBTSampler()
- GBTSampler &operator=(const GBTSampler &other)
- uInt nrows() const
- const String &bankA(uInt whichRow) const
- const String &bankB(uInt whichRow) const
- Int portA(uInt whichRow) const
- Int portB(uInt whichRow) const
- Bool hasCross() const
- uInt nchan(uInt whichRow) const
- Private Members
- GBTSampler()
Review Status
- Date Reviewed:
- yyyy/mm/dd
- Programs:
- Tests:
Prerequisite
- GBT FITS files.
- GBT ACS FITS file.
- GBTBackendTable
Etymology
This holds information typically found in the SAMPLER table of the GBT
backend FITS files.
Motivation
It is useful to provide a common interface to access the information
in the sampler table. In addition, since only the GBT ACS
follows the full convention and provides a complete sampler table, it
is useful to make the other backends appear as if they had this
table so that downstream code need not know about the differences.
Member Description
construct from an existing GBTBackendTable and
possibly using the number of IF rows (SP backend only)
GBTSampler(const GBTSampler &other)
Copy-constructor, uses copy semantics.
GBTSampler &operator=(const GBTSampler &other)
Assignment operator, uses copy semantics.
uInt nrows() const
The number of rows (samplers) present.
const String &bankA(uInt whichRow) const
BANK_A for a given row.
For ACS, returns value in BANK_A column
SP receiver row is now correctly translated to BANK_A
values for Sqr/Cross mode and Square modes.
For the DCR, returns value of INPBANK keyword.
const String &bankB(uInt whichRow) const
BANK_B for a given row.
For ACS, returns value in BANK_B column.
SP receiver row is now correctly translated to BANK_B
values for Sqr/Cross mode and Square modes.
For DCR bankB==bankA.
Int portA(uInt whichRow) const
PORT_A for a given row.
For ACS, returns value in PORT_A column.
SP receiver row is now correctly translated to PORT_A
values for Sqr/Cross mode and Square modes.
For DCR, this is the value of CHANNELID + 1.
Int portB(uInt whichRow) const
PORT_B for a given row.
For ACS, returns value in PORT_B column.
SP receiver row is now correctly translated to PORT_B
values for Sqr/Cross mode and Square modes.
For DCR portB==portA.
Does this SAMPLER have any cross-polarization data.
For ACS, this returns True if POLARIZE=="CROSS"
For SpectralProcessor this returns true in SquareCross mode.
For DCR data this always returns False.
uInt nchan(uInt whichRow) const
Return the number of channels for this row of the sampler table.